Login Page - Create Account

Support Board


Date/Time: Fri, 09 May 2025 19:27:21 +0000



ACSIL 'Use Number of Days to Load'?

View Count: 1472

[2015-01-22 16:19:55]
Trade Nice - Posts: 75
Is there a function to program the value used in 'Use Number of Days To Load'?
[2015-01-22 16:47:01]
Sierra Chart - Max - Posts: 5825
You can use sc.DaysToLoadInChart:
https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scDaysToLoadInChart
Sierra Chart Support
[2015-01-22 19:57:50]
Trade Nice - Posts: 75
Yes, thank you, sc.DaysToLoadInChart is exactly what I need but when I try to code it, I get the error message; Error class "s_sc" had no member DaysToLoadInChart"

It does not show up in the drop down list of sc.xxx

Just to check I wasn't doing something obviously wrong, I tried the member prior to sc.DaysToLoadInChart on the page you sent; sc.DaysPerBar, and that does work and does show up in the drop down list.

.
[2015-01-22 20:35:50]
ejtrader - Posts: 688
You can check it out - the following test code works fine.


if (sc.UpdateStartIndex == 0) {
sc.DaysToLoadInChart = 5;
}

Date Time Of Last Edit: 2015-01-22 20:37:01
[2015-01-22 20:48:31]
Trade Nice - Posts: 75
Thank you, but does not work

I am programming in Microsoft Visual C++ 2010 Express, and it does not recognize sc.DaysToLoadInChart so I get the squigly line under it to indicate the program does not recognize it.

Also, if I type sc. into the program, it gives me a drop down of members associated with sc. and sc.DaysToLoadInChart is not there.

Are you able to replicate that drop down with members?


Date Time Of Last Edit: 2015-01-22 20:49:20
[2015-01-22 21:02:45]
Zosimus - Posts: 345
I am using VC++ 2010 too (not express though) and I do get the sc.DaysToLoadInChart in the drop down when I type sc.

I am attaching here the properties template file that I use for myu SC projects. perhaps it could help you find what is wrong.

You might want to pay attention to the settings under General, C/C++ and Linker.
Attachment Deleted.
Attachment Deleted.
[2015-01-22 22:19:05]
Trade Nice - Posts: 75
Thank you ejtrader and yon.

I replaced the version of ACS_Source I was using with the latest version, and sc.DaysToLoadInChart now works.





Date Time Of Last Edit: 2015-01-22 22:48:06
imageACSIL issue.png / V - Attached On 2015-01-22 22:25:41 UTC - Size: 19.18 KB - 335 views
[2015-01-24 08:38:23]
Sierra Chart Engineering - Posts: 104368
sc.DaysToLoadInChart was added in version 1216 . Therefore, the problem is the version of Sierra Chart you running is older. Update Sierra Chart.


Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account