baokydev:
Use iHighest() and iLowest() to get the bar numbers for the highest and lowest values you want, then High[] or iHigh(), Low[] or iLow(), Open[] or iOpen() etc. with the bar numbers.
Rgd: Coding on Getting High & Low of Chart
Hi guys..
I am currently trying to code a Indicator that can get me the HIGH & LOW that is from
Current Bar to 150 bars ago..
I tried to google and try various method but seems to have issue getting the proper data.
![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
Rgd: Coding on Getting High & Low of Chart
Hi guys..
I am currently trying to code a Indicator that can get me the HIGH & LOW that is from
Current Bar to 150 bars ago..
I tried to google and try various method but seems to have issue getting the proper data.
Anyone can give me a sample with alert to tell me what is the highest / lowest point of the chart which is Current bar to 150 bars ago.
THANKS