Timeframe as input
-
Is it possible? I tried this but it seems to be not working.
-
For the Constant that is the timeframe, the data type should be ENUM_TIMEFRAMES instead of double. And the default value should be something like PERIOD_H1.
https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes
-
-
Does it also work for MT4? I do not get Error messages but it's not working. Could you help me?
TIA Daniel

-
@daniel95 Sovled the problem by name the timeframe not "timeframe"...
-
Oh yes, there was some problem when you have a constant/variable named like "Timeframe", because there is a parameter with the same name already (that Timeframe below Symbol). It's some weird problem that I have to somehow fix, but I'm also scared to touch this part of fxDreema, because I can easily broke something else

-

please help, I encountered the same problem -
ENUM_TIMEFRAMES

-
@fxDreema said in Timeframe as input:
NUM_TIMEFRAMES
And for a variable that is a timeframe, what should the data type be?
-
it's enum, add how mql5 says: https://docs.mql4.com/constants/chartconstants/enum_timeframes
-
Thank you jstap!
-
