Carl Schreiber:
How do I get the handle of an indicator? I do:
Now the compiler tells me:
What's wrong with it?
ENUM_APPLIED_PRICE getAppPRC(€ApplPRC p) {.. }what's that ?
I widely use them - no problem anywhere!
Carl Schreiber:
I widely use them - no problem anywhere!
I widely use them - no problem anywhere!
HdlRSI = iRSI(_Symbol,(ENUM_TIMEFRAME)TFMigrate(TF),PER,(ENUM_APPLIED_PRICE)getAppPRC(PRC)); // Line 108, at 23 is i of iRsi HdliMA = iMA(_Symbol,(ENUM_TIMEFRAME)TFMigrate(TF),PER,(ENUM_APPLIED_PRICE)getAppPRC(PRC)); // Line 109, at 24 is i of iMA
does this work ?
I'm not sure why but I suspect your snippet to return the timeframe as a integer (in seconds)ENUM_APPLIED_PRICE getAppPRC(€ApplPRC p){ switch (p) { case €Cls: return((ENUM_APPLIED_PRICE)PRICE_CLOSE); ... }... this should work also
I tried your variation no change :(
Carl Schreiber:
I tried your variation no change :(
'iRSI' - wrong parameters count Test_Rsi.mq4 108 23 'iMA' - wrong parameters countTest_Rsi.mq4 109 24
That's mql5 code, not mql4.
Alain Verleyen:
That's mql5 code, not mql4.
:D
Carl Schreiber:
I tried your variation no change :(
Btw your problem3 compiles well also!!!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How do I get the handle of an indicator? I do:
Now the compiler tells me:
What's wrong with it?