I have created a composite called Nasdaq 52 week highs minus 52 lows (symbol is _NASDAQ_52WK_His_LOs). I want to use this composite using the MM script to optimize for buy-sell rules as follows:
Buy SPY when composite >a
Sell Spy when composite <b
So I would be optimizing for "a" and "b".
Thanks, this works. I tried to add a second rule to buy and sell so that in addition to the composite condition, I must satisfy an sma condition, but I get errors. Here is what I did.