Login Page - Create Account

Support Board


Date/Time: Thu, 09 Apr 2020 19:24:52 +0000



How to Find Symbol Root in ACSIL

[2014-08-24 19:53:01]
Marmany - Posts: 233 | Ending Date: 2021-04-16
In process of converting spreadsheet to ACSIL and need to be able to bring daily trading limit levels for futures into the program. Not able to find any information in the Sierrra documentation on how to manipulate strings in ACSIL. Specifically would like to replicate the spreadsheet command with Symbol in A1 RIGHT(LEFT(A1,3),2). I guess there is an easy way of doing this in C++ but with no formal program training am having difficulty finding the command.
Also would like to know the most efficient way to implement next line in spreadsheet = IF(OR(J6="LE",J6="HE"),3,IF(J6="ZC",0.4,IF(J6="ZS",0.7,IF(J6="ZW",0.6,IF(J6="CT",3,"NL")))))

Would be most grateful if someone could either advise the code or a source of info on C++ intelligible to a "Layman"


[2014-08-25 09:09:28]
Sierra Chart Engineering - Posts: 83322 | Ending Date: 2020-06-09
We will add Right and Left functions to the SCString class type.

We will try to get this out, this week.



Here is an example comparing strings:


SCString TextString;
TextString = "ABC";
if (TextString == "ABC" && TextString == "ABC")
{
//Do something if the strings match
}

Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2014-08-25 09:10:01
[2014-09-07 11:39:26]
Marmany - Posts: 233 | Ending Date: 2021-04-16
I know you have a lot on at Sierra, but it is now a week past the period you were going to try to release the string functions Right and Left.
Please advise when you anticipate being able to complete the addition.
[2014-09-07 19:18:26]
Sierra Chart Engineering - Posts: 83322 | Ending Date: 2020-06-09
We will try for this week.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2014-10-08 06:32:26]
Marmany - Posts: 233 | Ending Date: 2021-04-16
I keep a watch on the version update notes, but have been on vacation so may have missed some. Please advise if you have managed to add Right and Left functions to the SCString class type.
[2014-10-08 06:37:15]
Sierra Chart Engineering - Posts: 83322 | Ending Date: 2020-06-09
Yes. This was done about three weeks ago. Definitely this is available in the latest version.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2014-10-08 07:04:50]
Marmany - Posts: 233 | Ending Date: 2021-04-16
Not able to locate reference to these functions in SC documentation. Please supply a link or code example of how to use the functions.
[2014-10-09 09:02:40]
Sierra Chart Engineering - Posts: 83322 | Ending Date: 2020-06-09
Here are the function declarations:

SCString SCString::Left(int Count) const
SCString SCString::Right(int Count) const
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

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

Login

Login Page - Create Account