Bars predefined variable question

 

Quick question...

The MQL4 reference says that Bars outputs the "Number of bars in the current chart."

Does this mean all the bars that are currently visible on my chart window right now?

Or all the bars in the history of the chart, visible or not?

It seems like the former, but I wanted to see who knows for sure.

Documentation on MQL5: Timeseries and Indicators Access / Bars
Documentation on MQL5: Timeseries and Indicators Access / Bars
  • www.mql5.com
Bars - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

rrsch:

Does this mean all the bars that are currently visible on my chart window right now?

Or all the bars in the history of the chart, visible or not?

All bars on the chart. Not just visible. Not all bars in history.

Reason: