However, I have initialized
MarketData.MarketDataItem += new MarketDataItemEventHandler(MarketData_MarketDataIt em);
so I am processing incoming tick data.
When I set CalculateOnBarClose = true, my DrawText() statements to bar = 0, will not draw the text on the current bar, but the bar before. It will only draw on the current bar if I set CalculateOnBarClose=false. But then, the OnBarUpdate() event fires on every tick.
My question is if I set CalculateOnBarClose=false, is there a way for me to tell when the current bar will close and we are moving to the next bar in the OnBarUpdate() event?
Thank you.
Comment