Im trying to set a limit mumber of trades per session and not per day.
I have the following code wich is limiting trades per day and not by session.
Please assist.
Thanks
protected override void OnBarUpdate()
if (base.Bars.FirstBarOfSession)
if (Performance.AllTrades.Count >= MaxTradesPerSession && MaxTradesPerSession != 0)
{return;}
{

Comment