I am concerned that the positive and negative values are not being calculated correctly.
Can I simply add the current profit with GetProfitLoss from each instrument, will this method calculate the positive and negative values correctly or is some additional math function required? thanks.
//ie
if (Positions[0].GetProfitLoss(Closes[0][0],PerformanceUnit.Currency) + Positions[1].GetProfitLoss(Closes[1][0],PerformanceUnit.Currency) >= 100
{
exit logic
}
Comment