For example:
ES Active Trade= 100
NQ Active Trade= -50
Net amount= 50.
I would like to get this net amount and quickly act on it.
See code below:
if (Positions[0].MarketPosition != MarketPosition.Flat)
{
Print("ES is up " + Positions[0].GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0]));
Print("NQ is up " + Positions[2].GetUnrealizedProfitLoss(PerformanceUnit.Currency, Closes[2][0]));
}
Any help would be much appreciated.
Comment