![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Then learn to code.
MT4: Learn to code it.
MT5: Begin learning to code it.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
how can I get the total number of bars visible in the chart?
Bars(_Symbol, _Period) does not work as it tells the total number of bars in history
how can I get the total number of bars visible in the chart?
Bars(_Symbol, _Period) does not work as it tells the total number of bars in history
Sorry guys, already found the solution.. I used:
ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR,0)
I just newly registered a demo account of MT5 with <Deleted>. I tried out one of the simplest indicator creation but the buffer is always storing the 'ZERO' value. Appreciate someone can help me !
i am not a pro coder, however, if you dont want the 0 to be stored, shouldnt your "for" line be this? Try it anyway.
Drawing Indicators With SetIndexBuffer()
Actually I followed this simplest tutorial by JiimDandy 1958. I suspect something is not right with the data at my end.