To avoid calling Dll interface 10000 times at starting time, my current code have to change as following:
protected override void OnBarUpdate()
{
if (Historical)
return;
//Call Dll Interface, and plot
}
But after filtering out Historical OnBarUpdate() call, my program will only show the indicator drawing after real-time new bar incoming. If opening the chart window after market time, the indicator will not draw anything because there is no real-time new bar incoming after market time. So how to get OnBarUpdate() call just one time for history bars? Or is there any property or method which tells it's the last OnBarUpdate() call from the last historical bar? Thanks.
Comment