Attached is an indicator that calculates seconds per bar. It does it using 2 methods:
1. Using a secondary (PeriodType.Second,1) period and a counter which is reset in the primary period
2. Calculating total seconds between Time[0] and Time[1] bars.
I expect seconds count in both methods to be at least close if not equal but instead there are huge differences (I tested on a sim connection). Could you explain why the seconds count in method 1 would be so off?
Thanks,
Tim
Comment