How to code a price EMA in a RSI windows

 

Hello,

 

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.

 

Thierry

 
thierrybl:

Hello,

 

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. 

No picture attached . . .

 

 

Ok thanks I repost the picture

 

ThierryEMA + RSI 

 
thierrybl:

Hello,

 

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.

MA is a price, PSI is an index,  making a trade decision because one if above or below the other is arbitrary,  change the scale on the chart and your trading strategy goes out the window. 
 

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.