Login Page - Create Account

Support Board


Date/Time: Mon, 12 May 2025 17:53:31 +0000



Post From: Bar time calculations

[2017-03-16 13:35:51]
User921987 - Posts: 239
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