Login Page - Create Account

Support Board


Date/Time: Mon, 10 Aug 2026 11:24:09 +0000



Post From: Bar time calculations

[2017-03-16 13:35:51]
R1sk - Posts: 259
Is this the correct way to calculate a time difference (in seconds) between 2 consecutive bars ?

double DifferenceInSeconds = (sc.BaseDateTimeIn[sc.Index] - sc.BaseDateTimeIn[sc.Index - 1]) * 86400.0;

Date Time Of Last Edit: 2017-03-16 13:36:43