Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 20:39:37 +0000



How to Find Symbol Root in ACSIL

View Count: 1166

[2014-08-24 19:53:01]
Marmany - Posts: 303
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: 104368
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. 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
Date Time Of Last Edit: 2014-08-25 09:10:01
[2014-09-07 11:39:26]
Marmany - Posts: 303
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: 104368
We will try for this week.
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
[2014-10-08 06:32:26]
Marmany - Posts: 303
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: 104368
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. 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
[2014-10-08 07:04:50]
Marmany - Posts: 303
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: 104368
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. 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