Hello, how can I get the highest and lowest price for the last 50 bars ? I'm new at mql and have no idea.
- Ordertype based on indicator
- Previous Bars Calculation
- What is the Formula of Fibonacci Retracement? I'm planning to put Fibonacci in SubWindow.
iHighest will tell you which bar made the highest price over the period specified (you want the last 50 bars). The bar number is called a shift.
iLowest will tell you which bar made the lowest price.
You can then retrieve the actual price using High (or Low).
So if iHighest told you the highest price was on bar 39, you would retrieve that price with High[39].
Links should explain along with examples.
Thank you very much I will try it now
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