Hi
The function int WindowBarsPerChart() returns the number of bars visible on the chart.
You can search for it in the documentation here:
https://docs.mql4.com/search/WindowBarsPerChart
Cheers
Jellybean
Jellybean:
Hi
The function int WindowBarsPerChart() returns the number of bars visible on the chart.
You can search for it in the documentation here:
https://docs.mql4.com/search/WindowBarsPerChart
Cheers
Jellybean
Shit, I was sure to check all of the stuff before asked the question...
Thanks Jellybean!
cornelius

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
To have bar counter is very simple. Something like:
Comment("Bar count on the current symbol is ",iBars(NULL,0));
But it shows at some timeframes over 2000 bars.
How to count the bars visible on the chart?
cornelius