I´m going to have to chew on that a bit. Basically you are looking for a buy opportunity, or averaging down, if SPY drops below -15% of yesterdays SPY close? Then averaging if it drops -30%, just to get back, to break even of yesterday´s close.
I´m looking at a sideways market, of indefinite duration. But I have a rising low, due to a rising trend line.
My stuff is still BULLISH eventually, same as your program. But the volatility has definitely gone out of the QQQ´s. A reversal has not yet happened, but it is inclining that way. A trigger event, like a sell off could do it. Otherwise, the price will hopefully rise back to at least breakeven, but not to give me the profit I originally expected. Since I made the BUY and am holding, the market is not doing what I had expected, so my rule is to get the heck out, particularly if I can get a break even, or even if I only lose commissions.
This is not working out like I had expected. I want to minimize my loss though and perhaps even make something, a leeetle, instead. I believe the market is trying to find a turnaround in the QQQ´s but has not yet. Somebody panicking could upset the apple cart and start a free fall. Which would make my loss much greater. Though right now I´m within my margines of FLUTTER in the price action.