Support Board
Date/Time: Sat, 23 Nov 2024 21:04:26 +0000
Is there a way to detect user drawn lines (numbers) ?
View Count: 1678
[2013-08-05 13:41:02] |
marcovth - Posts: 61 |
Hello ... Is there a way to detect user lines? I want to make a script that detects a user (horizontal) line, started from e.g. a price bar low with a certain length ... and have this script drawing the same line (length & angle) starting at the low from the delta bar (with the same index). I could not find a good example in de codes. I probably have to use either sc.ActiveToolIndex or sc.GetUserDrawingByLineNumber() ? Do user drawn lines get unique numbers? And if so, is there a way to grab these numbers without having the loop through 1..100000000 with if(sc.UserDrawnLineExists(sc.ChartNumber,n))? Thanks for any suggestion. |
[2013-08-05 17:48:26] |
Sierra Chart Engineering - Posts: 104368 |
Use this function: https://www.sierrachart.com/index.php?l=doc/doc_DLLTools.html#scGetChartDrawing User drawn lines do not have unique numbers. They all have a LineNumber of 0. You do not need very many iterations to a look for particular line because there's only going to be so many horizontal lines on the chart. 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: 2013-08-05 17:49:32
|
To post a message in this thread, you need to log in with your Sierra Chart account: