MT4 RSI EA

 
I am using RSI Ea and needs a small modification. RSI EA sells when RSI value moves over 70. This sells when RSI is over 70 till 99.99. I need to restrict this to a range like RSI value 70 to 71 only and BUY for 30 to 31 only. I think the following line of code needs to be changed. RSi is attached for your review

if ((diRSI0>70)

Please help me to change the code as desired and I look forward to hear from you soon,

Regards,
Files:
rsi.mq4  6 kb
 
qazij wrote >>
I am using RSI Ea and needs a small modification. RSI EA sells when RSI value moves over 70. This sells when RSI is over 70 till 99.99. I need to restrict this to a range like RSI value 70 to 71 only and BUY for 30 to 31 only. I think the following line of code needs to be changed. RSi is attached for your review

if ((diRSI0>70)

Please help me to change the code as desired and I look forward to hear from you soon,

Regards,

like this maybe ...

if (diRSI0>70&&diRSI0<71){
OpenBuy();
return(0);
}

Reason: