Dear Sir,
What if I were to code, in MQL4, the highest and the lowest value of any indicator, let`s say CCI(n), accross the period(n) only, within the same timeframe, so as to calculate and plot the line; Y=(highestCCI(n) + lowestCCI(n))/2, how would I do it?
It is very hard to do, as in MQL4 we only have the function for "MathMax" and "MathMin" between the two values only and not across any array of values; we cannot code the function of "iHighest" or "iLowest" for an indicator at all,
as we can do it across the candle values. Let`s name it the "mean value" as would any "average" of any indicator be, but this time, not the average, but Y=(highestCCI(n)+lowestCCI(n))/2, the mean value of CCI(n). So, how do I do it?
- Overlaying indicators
- Recognize Break and Retest of price level
- how to do indicator of another indicator mql4?
Robbyboby: in MQL4 we only have the function for "MathMax" and "MathMin" between the two values only and not across any array of values; we cannot code the function of "iHighest" or "iLowest" for an indicator at all,
-
Perhaps you should read the manual. You read the values into an array and use the Array Functions.
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
Why can't you code an iHighest for an indicator? Did you try? Show your attempt.
there is ArrayMaximum and ArrayMinimum
ArrayMaximum - Array Functions - MQL4 Reference
- docs.mql4.com
ArrayMaximum - Array Functions - MQL4 Reference
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