Support Board
Date/Time: Sun, 23 Feb 2025 18:52:27 +0000
ACSIL DRAWING_LINEAR_REGRESSION: ExtendRight
View Count: 536
[2021-02-17 13:59:35] |
ZenAlchemist - Posts: 23 |
Similar to ACSIL DRAWING_LINEAR_REGRESSION : How to change calc based on | Post: 250101 how to check or change ExtendRight for DRAWING_LINEAR_REGRESSION? There doesn't appear to be a way to do this. Thanks |
[2021-02-17 16:37:15] |
John - SC Support - Posts: 38116 |
ExtendRight is a member of s_UseTool. So you would just use this to determine the state. Refer to the information here: Using Drawing Tools From an Advanced Custom Study: s_UseTool::ExtendRight The other post is asking for Calc Based On, which is not currently a member of s_UseTool. That is something we would need to add, but there are many other priorities right now. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-02-17 17:58:44] |
|
Yes you need to use s_UseTool::ExtendRight
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 |
[2021-02-17 18:58:32] |
ZenAlchemist - Posts: 23 |
Hmm, the help says "When using DRAWING_RETRACEMENT, DRAWING_EXPANSION, or DRAWING_PROJECTION, this member..." and doesn't mention DRAWING_LINEAR_REGRESSION. When I checked the value of this property on a channel that was extending forward it returned a -1. I will do some more tests. I must have made a mistake.
|
[2021-02-17 20:24:48] |
|
We updated the documentation today and we will make sure it is set when getting a Chart Drawing when using ACSIL. We see that it is not, and that will be in done in the next release. 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: 2021-02-17 20:38:17
|
[2021-02-17 20:41:57] |
ZenAlchemist - Posts: 23 |
I am stumped on this. Here is a simple study to test: SCSFExport scsf_RegressionToolTest(SCStudyInterfaceRef sc) { s_UseTool Tool; Tool.Clear(); if (sc.GetUserDrawnChartDrawing(0, DRAWING_LINEAR_REGRESSION, Tool, -1)) { SCString MessageText; int iExtend = Tool.ExtendRight; MessageText.Format("Extend Right %d", iExtend); // Always shows -1 in the log sc.AddMessageToLog(MessageText, 1); Tool.ExtendRight = 1; sc.UseTool(Tool); } } Setting ExtendRight to 1 when it is off does work, but when I read the value it is always -1. http://www.sierrachart.com/image.php?Image=1613594431746.png ?? |
[2021-02-19 02:06:47] |
ZenAlchemist - Posts: 23 |
Thanks. I appreciate it.
|
[2021-02-19 03:28:32] |
|
You have to wait for the next release. We do not think the necessary change has been released yet to set that flag.
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: