special time frames
-
Hello, I want to use "ENUM_TIMEFRAMES" but I don't want it to show all the time frames, only some special time frames (For saving time in optimizing) Like this screenshot

-
In mt4 you can only use them, on mt5 you have more to choose.
-
Actually, now I look again this is a pre-set enum list.
-
@amiinkiaei yes it is pre-set enum list but i can't use it in time frame section (in blocks) in mt5
-
That is already fixed in your indicator? You can create one for your EA but it will only use the three already set.
-
@amiinkiaei I did not understand what you mean but the photo above is related to this project
https://fxdreema.com/shared/cbeiMdUxd -
Use this ENUM_TIMEFRAMES instead of enum, call it whatever you want, and use this PERIOD_CURRENT in value
This will give you the full list in a drop down -
@amiinkiaei i know but when i use ENUM_TIMEFRAMES it show all of time frames in mt5 but i don't want this i want only some special time frames
-
Not sure how you would set up a enum to do this
-
@amiinkiaei Who can do this?
i really need this -
You can try this: https://fxdreema.com/shared/lsmeC5aJb I do not know if it will work but it compiles, let me know what happens.
-
@amiinkiaei thanks
why you changed this PERIOD_M1 to this M1_PERIOD -
Just to keep the text used a little different, encase using the same as standard causes a conflict.
-
@amiinkiaei
Check
https://docs.mql4.com/constants/chartconstants/enum_timeframesActually, it is the number represented by the string that matters