SetVar no longer displaying in "Screen Factors" report

Until today, I used to be able to use setVar to show variables on the “Screen Factors” report under the Screen Results. I no longer see the custom variable, but now just see the underlying data elements used to build custom variables. I think both features are useful, but I really need to be able to see the results of custom formulae in order to “sanity check” my calculations.

Please bring this feature back! Maybe you could add a toggle to give preference to the calculated variables versus the underlying raw data?

  • David

So… did you just modify the setVar and showVar??? Does setVar set the variable w/o explicity displaying, while showVar sets the variable while explicitly displaying the variable in the “Screen Factors” report?

If so, then I like.

See this:

https://www.portfolio123.com/mvnforum/viewthread_thread,7794

Please see the new, updated documentation for ShowVar() & SetVar(). It was really confusing before.

The only difference now is that ShowVar() is the only way to display a formula in the screen reports when using ‘Use Screen Factors’. They both still set the ‘@variable’ that can then be used in rules below.

There was also a minor logic change: they now both return TRUE so they can be used standalone in a rule and not have to worry about the stock being screened out. ShowVar() used to return the value of the expression so that it could be used in the middle of a rule, but it could also inadvertently eliminate a stock when used standalone and the formula evaluated to NA or 0. Luckily I don’t think anyone was using this ShowVar() “feature”.

So once again, if you are not seeing your variables, use ShowVar().

Sorry it took so long to clean this up.

Thank you, davidbv. I like the new functionality better.

new servers are loading… ETA 10 min