How to do constant for time frame?
-

Would the constant be a double, string or int?
Also when inputting the constant in mt4 do I just write the number or write M/H with it, for example if I wanted it on the 15 minute chart would I just write 15 or M15 and same question for H4 would it be H4 or 240?
-
@gtoat777 in the type of constant write ENUM_TIMEFRAMES

you can also find more on the forum typing Enumeration
-
@ambrogio Thank you I appreciate that
-
@gtoat777 don't mention it !
-
@ambrogio The other part of the question i asked how do i write it in MT4
M15 or just 15 -
@gtoat777 You don't have to write anything. The drop-down menu will appear. Try it!
-
@ambrogio On MT4?
-
@gtoat777 Yes, this is what you will see on MT4 if you make the example I showed you above:

-
@ambrogio ah you legend, I appreciate that
-
@gtoat777 you're welcome