Function ArrayMinimum/ArrayMaximum can not be implemented to arrays of structure. You should use CopyLow/CopyHigh to get arrays of doubles or make your own realization of function ArrayMinimum to use MqlRates array.
Documentation on MQL5: Timeseries and Indicators Access / CopyLow
- www.mql5.com
Timeseries and Indicators Access / CopyLow - Documentation on MQL5
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
Hi
I am trying to get the index of the lowest low of a range of bars. The following idea is not working. Could you please suggest. thx
//--- code heading
MqlRates rates[];
//--- insdie the OnInit
ArraySetAsSeries(rates,true);
CopyRates(name,myPeriod,0,200,rates);
//--- inside the OnCalculate
ArrayMinimum(rates, 1, 22);