Thinking in Pine - Study References Too Many Bars In the History

Welcome to "Thinking in Pine" short video series on the topics of Pine Script.

Today's topic is handling the error - "The study references too many candles in the history" and other bar_index related issues.

If you are not familiar with Pine Script time series concepts, please go through our previous videos.



🎲 Points Discussed
  • When do we get the error "Study references too many candles in the history" and how to overcome this issue.
  • bar_index limitations with drawing objects on the chart.


🎯 Example Program - Historical Reference Alternative Implementation



🎯 Example Program - Drawing Object Limitations with Bar Index


Beyond Technical Analysishewhomustnotbenamedthinkinginpinetrendoscope

Related publications

Disclaimer