Support Board
Date/Time: Mon, 15 Sep 2025 03:22:23 +0000
Post From: Unsure About Datetime Functions and Values
[2021-11-29 13:24:19] |
maxpi - Posts: 188 |
I have tick data in chart #6. The following code reports 0 for the value of LastDateTime. I wonder if the problem is in the calculations or the message. I believe that SCDateTime values should work in the log as floating point values but am unsure. SCGraphData TickPriceData; sc.GetChartBaseData(6, TickPriceData); int tickArraySize =TickPriceData[SC_OPEN].GetArraySize(); SCDateTimeArray TickDateTimeArray; sc.GetChartDateTimeArray(6, TickDateTimeArray); SCDateTime LastDateTime; LastDateTime =TickDateTimeArray[tickArraySize -1]; MessageText.Format("LastDateTime %f", LastDateTime); sc.AddMessageToLog(MessageText, 0); |