How to check the alltime low and alltime high of the price, with iLowest() and iLow(), they are new functions and the documentation doesnt explain it very clearly, so please help.
- How to build this strategy?
- How to get today's high/low?
- Data Analyzer for MT4
Proximus: How to check the alltime low and alltime high of the price, with iLowest() and iLow(), they are new functions and the documentation doesnt explain it very clearly, so please help.
- They are not new. iLowest was renamed from Lowest about 10 years ago.
- What part of "Returns the shift of the lowest value over a specific number of bars depending on type." is unclear? It searches from the start for the count bars and returns the shift of the lowest bar.
If you want the lowest low, given how much history you have (controlled by Max bars on chart.) double GetBarsOnChartLL(){ int iLL = iLowest(NULL, 0, MODE_LOW); return( Low[iLL] ); }
If you want the all time low, use D1 history double GetAllTimeLow(){ int nD1 = iBars(NULL, PERIOD_D1); if(nD1 == 0) return(0.); // Likely GLE=ERR_HISTORY_WILL_UPDATED int iD1LL = iLowest(NULL, PERIOD_D1, MODE_LOW); return( iLow(NULL, PERIOD_D1, iD1LL) ); }
WHRoeder:
- They are not new. iLowest was renamed from Lowest about 10 years ago.
- What part of "Returns the shift of the lowest value over a specific number of bars depending on type." is unclear? It searches from the start for the count bars and returns the shift of the lowest bar.
If you want the lowest low, given how much history you have (controlled by Max bars on chart.) If you want the all time low, use D1 history
return( iLow(NULL, PERIOD_D1, iD1LL, nD1) );
Why 4 parameters?
GumRai: Why 4 parameters?
Typo, iLow has only three
![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