Ident current timeframe (MT5)
-
Hello community,
does anybody know a way to ident the current timeframe (for MT5) to put it into a variable?
I need the current timeframe in seconds (or minutes) as a variable. It works well for MT4 (market properties/timeframe) but in mql5 it only works for timeframes <H1. In H1 timeframe I get an output of "16385".
Does anybody know an other reliable way to do this?Thanks in forward and have a good day!
Tommi
-
Created this a long time ago, but this should do it: https://fxdreema.com/shared/LpSPypV5