Login Page - Create Account

Support Board


Date/Time: Sat, 21 Dec 2024 17:48:24 +0000



Tool Text

View Count: 1449

[2015-03-18 11:38:22]
User96015 - Posts: 55
Hi, I need an information if it' s possible.
I' m making a custom study and I would like to draw some horizontal line with a date as text below.
I try in this way:
Tool.Text = Coperture_Var_Data;
Coperture_Var_Data is a SCDateTime variable, but I' ve this problem in the complier:
no match for 'operator=' (operand types are 'SCString' and 'SCDateTime')
Thanks for answer.
[2015-03-18 16:17:38]
Sierra Chart - Max - Posts: 5756
You cannot directly assign a SCDateTime to a SCString.

To work with text and strings refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#WorkingWithStrings

SCDateTime documentation can be found here:
https://www.sierrachart.com/index.php?page=doc/doc_SCDateTime.html

For the location of examples see:
https://www.sierrachart.com/index.php?page=doc/doc_CreatingDLLs.html#CodeAndExamples
Sierra Chart Support
[2015-03-20 14:42:48]
User96015 - Posts: 55
Thanks for the answer.
I' ve another problem, I would have to add some days to a date excluding Saturday and Sunday. Is it possible?
Thanks again and Bye.
[2015-03-20 16:12:52]
Sierra Chart Engineering - Posts: 104368
Yes this is possible. Simply iteratively add the days but do not add the days when you encounter Saturday or Sunday.

This function is available in ACSIL:
inline int IsWeekend(int Date)
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