Hi all,
I try to build some general functions to be used on several different time frames (5 min, 10 min, hour and so on). The time frame is chosen from the security window but I can’t see how to find that value inside the code.
Therefore I try to get the difference of each bar time by stating time-time[1] with strange results. And then I just tried with “graph time” in 5 and 10 minutes time frames. To my surprise it didn’t produce a straight showing higher and higher. Instead there is a step when coming between xx:40 and xx:50 minutes. Why? I don’t understand.
Is there some other way to find the selected time frame inside the code?
Thanks
Patrick