douglas14:
Hi, I trying to get the index of the last left bar visible in the chart... or the total amount of visible bars.
The following code does not work:
Bars(_Symbol, _Period)
because it tells the total number of bars in history which is greater than the amount of bars visible.
Sorry guys, already found the solution.. I used:
ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR,0)
Chart Price Max/Min - MQL4 programming forum (2017.06.16)

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, I trying to get the index of the last left bar visible in the chart... or the total amount of visible bars.
The following code does not work:
Bars(_Symbol, _Period)
because it tells the total number of bars in history which is greater than the amount of bars visible.