If I am wanting to use...
for (int i = 0; i < 2; i++)
{
unrlzdPnl += Positions[i].GetProfitLoss(Closes[i][0],PerformanceUnit.Points);
}
is this equivalent to my old way of..
unrlzdPnl = ((Positions[0].GetProfitLoss(Closes[0][0],PerformanceUnit.Points)) + (Positions[1].GetProfitLoss(Closes[1][0],PerformanceUnit.Points)));
It doesn't seem to be from the print statements. Any idea how I can use the first way to replicate the second?
Comment