Unfortunately this doesn't work... any thoughts? Thanks
if (Positions[0].GetProfitLoss(Closes[0][0], PerformanceUnit.Currency)
+ Positions[1].GetProfitLoss(Closes[1][0], PerformanceUnit.Currency)
+ Positions[2].GetProfitLoss(Closes[2][0], PerformanceUnit.Currency)
+ Positions[3].GetProfitLoss(Closes[3][0], PerformanceUnit.Currency)
+ Positions[4].GetProfitLoss(Closes[4][0], PerformanceUnit.Currency) > 1000
&& ProfitLimit == false
)
{
ProfitLimit = true;
}
Comment