I suppose that it has already been donne, but I can't find it in the forum.
I would like to code in an EA for MT4 a MA of price in a RSI window. My objective is to allow only buy orders when MA is under level 20 of RSI and sell orders when MA is over 80.
Close orders will be when MA cross RSI.
The difficulty is that the MA is based on price and NOT on RSI.
I joined a picture for comprehension.
Thanks a lot for your help.
No picture attached . . .
Ok thanks I repost the picture
MA of price will usually be in the 1.5 - 1.2 range for EURUSD. RSI will usually be 80 - 20 range. MA will almost always be under the RSI
If you want a MA of RSI, simply drag the moving average (from navagator) to the RSI window and select apply to indicator value.