Support Board
Date/Time: Sun, 08 Sep 2024 00:19:34 +0000
[Programming Help] - Extended Rectangle Properties Anchor Values
View Count: 177
[2024-07-26 00:05:24] |
User303857 - Posts: 72 |
Hello Support Looking for ways to access the Anchor Values and use them with a Study Sub Graph Add and a Study Sub Graph Subtract with the current price. I would like to be able to have a count down of the number of ticks from the price as it moves towards an extended rectangle. For Example if the price is 19000 and the extended rectangle is at 19145 it would count down as it moves closer to the anchor values. I have one rectangle with these values from the manage drawings window. Extending Rectangle | NQU4.CME | | | | A1(2024-07-19 06:15:00, 20009), A2(2024-07-19 06:17:00, 19987.25) | -107 | ============================== Is there a study that can do this or do I have to learn ASCIL ? ------------------------ Programmatically Accessing Chart Drawings | Exporting Drawings You can access a list of all of the Chart Drawings on a chart through the Manage Chart Drawings Window. You are able to programmatically access the Chart Drawings through ACSIL. Use the sc.GetUserDrawnChartDrawing function. There are other functions as well. Once you get a Chart Drawing in ACSIL, you can then output the data of it to a Spreadsheet. Refer to Direct Programmatic Interaction with Spreadsheet Sheets. You are also able to write the Chart Drawing data to a file through the ACSIL File Functions. Thanks for any help |
[2024-07-26 17:02:17] |
John - SC Support - Posts: 34254 |
There is a way to access the Anchors within the built-in studies in Sierra Chart. You need to use the "Spreadsheet Formula" to do this. Despite it's name, this study uses the Alert syntax, and drawing anchors can be accessed through the alerts. Refer to the following: Study/Chart Alerts And Scanning: Reference by Anchor Therefore, in the the Spreadsheet Formula study, you would enter something like the following: =UDID[107].A1 This will then give you the value of the A1 anchor in the Spreadsheet Formula subgraph. You can then use this however you want. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-07-26 21:40:11] |
User303857 - Posts: 72 |
Clarification Is the line ID -40 OR 40 , negative or positive? 37. Alert when High of the Current Bar Goes Higher than a Chart Drawing: The Chart Drawing has a line ID of -40. Formula: H > UDID[40][0]. Study/Chart Alerts And Scanning: Reference by Anchor |
[2024-07-29 14:32:18] |
John - SC Support - Posts: 34254 |
You use the positive value of the number. So if the ID is -40, you enter the value of "40" in the formula, as you have shown.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-08-04 03:43:19] |
User303857 - Posts: 72 |
It worked! But to clarify from the documentation. There are two ways to reference a Chart Drawing for an alert. The format is UDID[x].Ay No = sign --------- And in a Spreadsheet Formula study, you would enter something like the following: =UDID[107].A1 You have to have the = sign for the formula in the spreadsheet study but not an alert using a chart drawing. Thanks |
To post a message in this thread, you need to log in with your Sierra Chart account: