Custom series using formulae

I have a number of formulae that return 0 or 1 depending on some market timing condition
e.g. $up_employment = Eval(EMA(2,0,#UNEMP)<=EMA(2,3,#UNEMP), 1, 0).
Can I view the chart as a custom series? If I create a series with the rule $up_employment an error is thrown: Invalid command ‘$up_unemployment’

Thanks
Malcolm

Malcolm,

Try;

SetVar(@Employ,UnivAvg("True","Eval(EMA(2,0,#UNEMP)<=EMA(2,3,#UNEMP), 1, 0)"))

I think this should work, too

SetVar(@Employ,UnivAvg("True","$up_employment"))

But remember that Custom Series is a cross-sectional tool. It’s going to calculate your formula for each member of the universe. If you can, limit the number of iterations with something like UnivSubset(“IBM”).

Walter

Thanks Walter - that worked.

Malcolm