RSI EA - code problem (need help)

 

I wrote this EA and received a parameter error when I compiled. I would appreciate someone correcting this problem.

thanks....

rsi_ea.mq4

Files:
rsi_ea.mq4  7 kb
 
Vman:
I wrote this EA and received a parameter error when I compiled. I would appreciate someone correcting this problem.

thanks....

rsi_ea.mq4

You have to add one more parameter to the iRSI call.

iRSI(symbol, period, rsiperiod, 0, 0);

The First 0 represents the PRICE_CLOSE (or PRICE_OPEN, PRICE_TYPICAL etc). The second 0 corresponds to the bar number (0=current bar, 1=previous bar etc).

fxd01

 
fxd01:
You have to add one more parameter to the iRSI call.

iRSI(symbol, period, rsiperiod, 0, 0);

The First 0 represents the PRICE_CLOSE (or PRICE_OPEN, PRICE_TYPICAL etc). The second 0 corresponds to the bar number (0=current bar, 1=previous bar etc).

fxd01

I am interested abouth you EA.. If you can fix it an re-upload I verry appreciat... Thanks for sharing.

PipeTrader.

 

That seems to have resolved the issue.

Thanks so much !

 

Currently road-testing

rsi_ea.mq4

Here is the corrected version thanks to fxd01. I am currently road-testing this EA in a demo..... It is set to go long when RSI goes over 50 and short when it goes under 50.

Files:
rsi_ea.mq4  7 kb
 

Thanks for sharing you EA.. I will test this an post the result.

Reason: