Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 23:48:18 +0000



Post From: Bar time calculations

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