Store current minutes/hour values in internal variable
-
Dears,
Hope you are having a nice time,
I tried to save current minute value in a variable, but have no clue how to do it, i found in the value drop down list that you can chose time, but this will save the whole time date/hour/min/sec

is there any option to have only min value, or hour value only and store them in separate variable?
This for MT5 project
Thanks in advance
-
You will need custom code to get that. No option in fxDreema can do it, I'm afraid.
-
I am not 100% sure what you want. This will save the new time into a global variable and then show you the result. As is, it is shown in seconds after 1970, but you can change it if you like. Run it on a backtest, and you will see how it works. I think this will give you an idea of how to achieve what you need. https://fxdreema.com/shared/29LcQTxQc
-
@Salmuranda
I guess you are talking about the minute of an hour.Try setting a variable, say,
x = TimeMinute(TimeCurrent())Don't know if it would work in backtest. I often used Time[candle_id] instead. Time[candle_id] returns the start time of candle