Support Board
Date/Time: Thu, 28 Nov 2024 18:39:38 +0000
Post From: Stage 5 Trading Live Account Activation
[2023-04-18 21:21:54] |
User889351 - Posts: 4 |
To clarify, I have intraday session start time set to 18:00:00 // Get index of start of trading day based upon Date-Time at current index - offset. This code assumes automatic looping. SCDateTime StartDateTime = sc.GetTradingDayStartDateTimeOfBar(sc.BaseDateTimeIn[sc.Index]); int StartBarIndex = sc.GetContainingIndexForSCDateTime(sc.ChartNumber, StartDateTime); int BarIndexSinceOpen = sc.Index - StartBarIndex; At start of session, BarIndexSinceOpen = 0. At 09:30 bar index should be 929. However that is not the case since live account activation. It is off by 2, or two minutes on a minute chart. |