![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
Hi ydrol the real problem is max = highest[10](formula), I don't know how to code...
can you help me to find an example?
Hi ydrol the real problem is max = highest[10](formula), I don't know how to code...
can you help me to find an example?
angevoyageur this is not the solution, you can't use (close - moving average) in highest command.
This thread is about finding the Max and Min of an array, if you need help on something else you are off topic so start your own thread and explain what "highest[10](formula)" means . . .
Dear RaptorUK, I'm not off topic, I'm looking for the max of an array where the elements of the array are the last n values of a difference between the close and the moving average (the formula).
Dear RaptorUK, I'm not off topic, I'm looking for the max of an array where the elements of the array are the last n values of a difference between the close and the moving average (the formula).
OK, then use array_name[MaximumArray(array_name)]
Can you give me an example of another indicator? Thank you.