![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
Searches for the element with maximum value. The function returns position of this maximum element in the array.
It will be the index of the element, not the element itself.
zzuegg, thanks for the help. I'm beginner, but I'll study how to do that you wrote. I think the first one is easier, but I still not knowing how to implement this in my formula. If possible, give me an example.
Thanks again.
i think option 2 is easier. He already gave you the pseudocode you need. just replace the function header, put in some brackets, and replace RSI(i) with the iRSI function. Pretty straightforward and there's no need to mess with additional arrays. This is how i would do it.
Searches for the element with maximum value. The function returns position of this maximum element in the array.
It will be the index of the element, not the element itself.
Yeah, I tested it and did not work.
Searches for the element with maximum value. The function returns position of this maximum element in the array.
It will be the index of the element, not the element itself.
So think for a change
Thanks... worked very well this change! I didn't know that it was allowable.
Great job. I will finish the indicator and post here.
Thanks everybody! I finished the indicator.
hi i need a code for EA based mainly not for indiactor or script only for EA code
RSI for
RSI >40 means BUY
and
RSI<20 means SELL
am new to mt4.so plss help me frnds..... thank u all
Hi guys,
I am a newbie and I need a code to determine the value of RSI at the end of each period (at the end of M1, M5, ....)
Thanks in advance
Hi guys,
I am a newbie and I need a code to determine the value of RSI at the end of each period (at the end of M1, M5, ....)
Thanks in advance
I want to determine the value of a custom indicator at the end of each period (at the end of M1, M5, ....),
I want to find the value of X= value of the buffer at the end of each periode (M1, M5, M15,....)
Please help