sharteel:
Hi,
I use this code for my MTF indicator on chart in MQL4, i'm working for move to mql5:
With MQL5 EDITOR, i have this error when i compile: 'tframe' - can't convert enum
Anyone can help me for updating the code in mql5 ?
Regards.
To present TFs an enumeration is used now, so define your TF variable as an enum:
ENUM_TIMEFRAMES tframe[] = { PERIOD_M1, PERIOD_M5, PERIOD_M15, PERIOD_M30, PERIOD_H1, PERIOD_H4, PERIOD_D1, PERIOD_W1, PERIOD_MN1 };
hasayama:
To present TFs an enumeration is used now, so define your TF variable as an enum:
Thanks!
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
Hi,
I use this code for my MTF indicator on chart in MQL4, i'm working for move to mql5:
With MQL5 EDITOR, i have this error when i compile: 'tframe' - can't convert enum
Anyone can help me for updating the code in mql5 ?
Regards.