In my ninjascript, I use Add(Plot) to draw indicators on chart. However I found I have to set indicator series value at every tick. If only do it at FirstTickOfBar == true, the plot is not drawn correctly. The chart update interval has been set to 0. And actually I saw the indicator value was set at the beginning every new bar including those realtime bars. Why the indicator is not shown on realtime bars in my testing script? The attached testing script should be run on YM M8 1min chart so that the bold red line is visible.
- Clearpicks
Comment