Support Board
Date/Time: Sun, 24 Nov 2024 04:56:01 +0000
How to set sc.ChartDataStartDate and sc.ChartDataEndDate with ACSIL
View Count: 101
[2024-10-28 17:25:43] |
PS2004 - Posts: 47 |
Hi! In the documentation provided here: https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Variables_And_Arrays.html#scChartDataStartDate, for me it is unclear how to set the start and end date on the Chart throught ACSIL, if sc.LoadChartDataByDateRange is set to 1.The part If this is set to 0, then the earliest date available in the chart data file is loaded into the chart. is clear.But I am missing the part about a non-zero value. The type of the variable is integer. How does that correlates to the start date? Should I set it to a number of days since a given date? Best regards, thanks in advance, Sandor |
[2024-10-28 17:35:09] |
User431178 - Posts: 541 |
Did you already try getting date part of datetime variable? auto dt = SCDateTime(2024,1,1,0,0,0); sc.ChartDataStartDate = dt.GetDate(); |
[2024-10-28 17:38:44] |
PS2004 - Posts: 47 |
Not yet, I will definitely try and give a response if it works. The main goal of the post is to ask for clarification about the documentation. |
[2024-10-28 20:14:41] |
John - SC Support - Posts: 36238 |
Refer to the following: Working with the SCDateTime Variables and Values For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-29 05:55:30] |
PS2004 - Posts: 47 |
Thank you for the responses! #2 solved my problem, it works fine. |
To post a message in this thread, you need to log in with your Sierra Chart account: