What would be the equivalent of :
[FONT=Consolas][COLOR=#0000ff]protected override void[/COLOR] OnBarUpdate()[/FONT] [FONT=Consolas]{[/FONT] [FONT=Consolas][COLOR=#008000] // If the profit on real-time trades is > $1000 stop trading[/COLOR][/FONT] [FONT=Consolas] [COLOR=#0000ff]if[/COLOR] (SystemPerformance.RealTimeTrades.TradesPerformance.Currency.CumProfit > 1000)[/FONT] [FONT=Consolas] return;[/FONT] [FONT=Consolas]}[/FONT]
Alternatively,
I tried using AccountItem via:
If(AccounItem.GrossRealizedProfitLoss > 500) return;
Comment