Support Board
Date/Time: Thu, 06 Nov 2025 21:44:19 +0000
Post From: CalculateTimeSpanAcrossChartBars for remote chart
| [2017-09-19 04:29:46] |
| onnb - Posts: 664 |
|
I've been working with this new method "CalculateTimeSpanAcrossChartBarsInChart" Seeing something strange which I am not sure of. I call the function with start and end indexes that are from a 1-tick chart. The timestamps of the start/end indexes, as seen in the tools value window on the tick chart are: StartIndex Timestamp: 14:40:59.003 EndIndex Timestamp: 14:42:00.041 EndIndex+1 Timestamp: 14:42:00.042 I get the span variable back and do something like this: int hour, minute, second; span.GetTimeHMS(hour, minute, second); In the above example I am getting 56 seconds Obviously those two minutes are continuous trading times. I am expecting 61 seconds, What am I missing? |
