I want to test Two trading system In one backtest
so if Buy1 then that trade will exit on sell1
if buy2 it will exit on sell2 only
if trade is open with 100 Qty and if second buy signal is tru it will buy 100 qty again
then if sell signal of first symbol is true it will exit only 100 and second trade is running
Buy1= Cross(C,MA(C,20));
Sell2= Cross(MA(C,20));
buy2= Cross(RSI(14) ,50);
sell2= Cross(50,RSI(14));
This are sample code