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
Hello To the group
I just started studying MQL5 and I found myself having to solve a simple question for those who are more advanced.
I have a period during the day definable by inputs.
I check if I'm on period or if period has passed but I'm still on the day.
I add the data of the candles in an array with CopyRates and look for the highest value.
The strange thing is that when I open the graph from Debug it shows me in the Print first the values of H1 and moving to M1 they vary even if
the Candles that I am going to memorize are all at M1.
I add the code
What I would like to get is to know the maximum value of the period and which candle has generated it.
Thanks to anyone who can give me a suggestion