The inspiration for this is from the “In and out strategy” developed by people much more intelligent than I on quantconnect.

It's probably too crazy to ask, perhaps worth a shot. Coding Multiple assets no easy task. Would it even be possible to code something like this?
 

agressive_indicator : SPY 200 MA / SPY 30 Day Current Draw Down > 1
passive_indicator: SPY 200 MA / SPY 30 Day Current Draw down <=1 and >= -1
defensive_indicator: SPY 200 MA / SPY 30 Day Current Draw Down <-1
agressive portfolio: SPY=50%, QQQ=50%
passive portfolio: TLT = 40%, BIL = 20%, SPY 40%
defensive_portoflio: TLT = 30%, BIL = 70%
30 minutes before daily close check if indicator changes then rebalance assets

 

Author