in my strategy pair trading i cant enter at same time two symbols and exit by stop / profit same problem
some how to synchronize two symbols
if (Position.GetProfitLoss(Close[0], PerformanceUnit.Percent) + Position.GetProfitLoss(Closes[1][0], PerformanceUnit.Percent) > profit //|| Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) + Position.GetProfitLoss(Closes[1][0], PerformanceUnit.Currency) <=- Stop
)
{ if (BarsInProgress==0 );
entryOrder =ExitLong(0,Lot,"ExitBuy","Buy");
if (BarsInProgress==1 );
entryOrder =ExitLong(1,Lot1,"ExitBuy1","Buy1");
}

Comment