Obtain maxim and minimum price from specific time range.
Search the CodeBase for sample code for a Donchian channel. Study the various examples, then apply what your learn to your own requirements.
Also study the documentation for the following functions:
Returns the index of the bar corresponding to the specified time
Returns the index of the highest value found on the corresponding chart (shift relative to the current bar)
Returns the index of the smallest value found on the corresponding chart (shift relative to the current bar)
- www.mql5.com
Oh yes, iBarShift is what I need.
Thank you Fernando! :)
Hello!
I would like to obtain the maximum and the minimum price of an asset from a specific time range, lets say I want to obtain the max and min between 0:00 and 06:30 AM.
How can I retrieve that? Thank you!!