I want to have the system I'm developing go into an index by default instead of cash. So whenever I get a sell in the portfolio in a watchlist of a stock it goes into SPY instead of cash. Positionsize of stocks would be set to 20% of the total portfolio, but the SPY position size could be at times 100% of the portfolio just like cash can by default.
Would anyone know how to do this? Thank you!
