Max Position Buy Rule

Geov,

In p123,

Is it possible
sim to sell 50% of all 10 position(stocks) when market timing turned ON (SPY<SMA(200))
sim to buy 100% of all 10 positions(stocks) when market timing turned off OFF (SPY>SMA(200))

Here, we don’t have ETF,
only 100% stocks asset allocation in good/bullish market; 50% stocks asset allocation in bearish market.

Thank you for sharing knowledge.
Kumar