still getting used to programming and ninja script so here is a simple question - how do I work backwards in my custom indicator to start from the most recent bar and go back to only 50 bars to perform certain calculations, instead of starting from the extreme left of the chart and working it's way through all the bars to the most recent one. this I'd like to achieve in the interest of saving time.
also, if I assign a certain indicator value to a bar' during that most recent 50bars rolling window and the bar falls out of it with passage of time, does the chart lose that indicator value or does it keep it as long as that particular chart is open ?
sorry I have no script for this, only a generic question and I hope I'm clear in what I'm asking here...
many thanks in advance for your help
Comment