In the Initialzie(), the CalculateOnBarClose is set false, the OnBarUpdate() is called on each incoming tick, it seems my indicator code in (BarsInProgress == 0){} only get processed once per primary bar.
how to make my indicator being processed on each incoming tick?
Thanks
---------here is the code ---------
protectedoverridevoid Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
Add("ES 12-11", 1, MarketDataType.Last);
}
protectedoverridevoid OnBarUpdate()
{
if (BarsInProgress == 0){
Print(CurrentBars[1]+Closes[1][0]+vBars); //<--
}
elseif (BarsInProgress == 1)
{
vBars = (int)((SMA(Volume, 12)[0] - SMA(Volume, 26)[0])/40);
}
Comment