I have this indicator running on a tick chart. I may be missing something very stupid but I dont understand why this jumps up when ever the bar contains an hour change.
- My goal here is to get the Time per bar on a tick chart.
Code: Select all
//Time per bar
Vars:
Time_per_bar(0),
Rolling_Time(0);
If Date<> Date[1] then
Time_per_bar = Time_s else
Time_per_bar = Time_s - Time_s[1];
Rolling_Time = Rolling_Time+Time_per_bar;
Plot1(Time_per_bar);