GBPMaster

Trader
Aug 29, 2024
7
0
7
37
Can I asking help for add DCA method to this ea, and tp as basket when first trade wrong direction with market!
 

linux_usr

Trader
Oct 20, 2023
72
3
19
39
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
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,404
1,566
144
Odesa
www.earnforex.com
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.
 

linux_usr

Trader
Oct 20, 2023
72
3
19
39
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: