Chart Interval call

I wish to call the chart interval to the a drawing object so I can calculate the number of bars. Any advice on how to get this?

Can you please elaborate on what you’re trying to do and in what context. I’m having a hard time understanding your question.

If all you’re looking for is the number of bars loaded in NinjaScript, you should be able to get that from CurrentBars or BarsArray[0].Count - assuming there is only one data series, otherwise replace the index 0 in BarsArray[0] with the appropriate index for the desired data series.

1 Like