Is there a way to limit the periods available in the ea input for the ENUM_TIMEFRAMES like to only show and PERIOD_H1?
I tried few ways but could not get it to work.
You can refer to https://www.mql5.com/en/docs/basis/variables/inputvariables, specifically, under the header:
Enums are based on integers, so you can just create new
1 . enum like sugested above
2. # define
3 .just use integer variable
4 .do mix of define and enum - my advice is to use #define ...this is very very very very very very very very very very usfull. I recomend to invest time to lern everything about it :)
And how would you convert from tf to ENUM_TIMEFRAMES? as I am getting an error when the tf in used in some function parameters expecting ENUM_TIMEFRAMES.
The values are the same, so just cast it.