RSI negative - postive number

 

Hi all,

Is there any code to order RSI indicator like sample on picture?


BUY= if RSI ABOVE level 50 with RSI is UP condition ONLY.

(Do not BUY iif RSI is Above 50 but going down / negative)


SELL = If RSI BELLOW level 50 with RSI is DOWN condition only.

(Do not BUY iif RSI is  bellow 50 but going UP / postive)


Sample my code only Above/ bellow line.

SELL code:

(Bid < (iRSI(NULL, NULL,14,PRICE_CLOSE,0) < 50)

BUY CODE

(Bid < (iRSI(NULL, NULL,14,PRICE_CLOSE,0) > 50)


Thanks

Files:
rsisample.jpg  248 kb
 
You have to compare the rsi value with the last rsi values. Look at the documentation of iRSI especially shift parameter
 
Daniela Bluemel:
You have to compare the rsi value with the last rsi values. Look at the documentation of iRSI especially shift parameter
Yes, understood. Thanks
Reason: