RSI EA

Can I asking help for add DCA method to this ea, and tp as basket when first trade wrong direction with market!
 
Hello, Ive been playing with the RSI code and it really has made it easier to read the mt5 template.
Trying to change RSI to MFI.

I get just one error on compile
Line 664
IndicatorHandle = iMFI(Symbol(), Period(), MFIPeriod, MFIPrice);

Actual Error
'MFIPrice' - cannot convert enum

Any ideas what is going wrong? and the mt5 templates its amazing and what a gift.
This mt5 template will draw many hundreds if not thousands more MQL programmers. Superb. Thanx
 
Hello, Ive been playing with the RSI code and it really has made it easier to read the mt5 template.
Trying to change RSI to MFI.

I get just one error on compile
Line 664
IndicatorHandle = iMFI(Symbol(), Period(), MFIPeriod, MFIPrice);

Actual Error
'MFIPrice' - cannot convert enum

Any ideas what is going wrong? and the mt5 templates its amazing and what a gift.
This mt5 template will draw many hundreds if not thousands more MQL programmers. Superb. Thanx
iMFI doesn't use a price type - it uses a volume type: VOLUME_TICK or VOLUME_REAL.
 
Wow it compiled. Im a bit busy ill get back to this thread later. Incredible Template
IndicatorHandle = iMFI(Symbol(), Period(), MFIPeriod, VOLUME_REAL);
Gonna have to try it bit later
 
Last edited: