protected override void OnBarUpdate()
{
// If not flat print our open PnL
if (PositionAccount.MarketPosition != MarketPosition.Flat)
Print("Open PnL: " + PositionAccount.GetUnrealizedProfitLoss(Performanc eUnit.Points, Close[0]));
}
but I get a compile error...
The name 'PositionAccount' does not exist in the current context how to fix? thx |
Comment