Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 08:35:24 +0000



[User Discussion] - ACSIL - How to find the line style/color for earlier drawn line ( not user drawn )

View Count: 3129

[2014-01-13 15:04:54]
ejtrader - Posts: 688
SC Team - I am trying to find a way to get line style & color for a horizontal ray - which was drawn earlier using ACSIL(tried to use the following functions listed). However this functionality seems to be ONLY available for user drawn drawings and not ACSIL drawn drawings. Any hints/example code you can think of?

PS: Due to the number of lines involved - potential persistent variable approach is not likely to work in my case.

Thanks


sc.GetChartDrawing
sc.ChartDrawingExists
sc.GetUserDrawingByLineNumber

Date Time Of Last Edit: 2014-01-13 16:28:00
[2014-01-13 19:19:54]
ejtrader - Posts: 688
SC Team - Wondering why this is marked as user discussion. I am not asking for programming help. Just inquiring - whether it is possible to determine - the properties of ACSIL drawn drawings or not.

- If it is possible - would you please let me know which function to use?
- If it is not possible at present - would you please let me know whether this is something that can be implemented in the future.

Thanks
Date Time Of Last Edit: 2014-01-13 19:29:52
[2014-01-14 00:47:03]
ejtrader - Posts: 688
SC Team - I am still looking for a comment from you on this.

Tool.AddAsUserDrawnDrawing = 0; // Not 1

I have the value of Tool.LineNumber as well as the drawing type available but would like to get the line style & Color of the line somehow from ACSIL. Any functions available for this?

Thanks
Date Time Of Last Edit: 2014-01-14 00:52:37
[2014-01-15 06:19:04]
Sierra Chart Engineering - Posts: 104368
No, there is no provision for this. Since your study function is the one adding the drawings, you should be able to remember the line style and color.

If the drawing was added by ACSIL and marked as a user drawn drawing, then you can use this function:
http://www.sierrachart.com/index.php?l=doc/doc_DLLTools.html#scGetUserDrawingByLineNumber
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-01-15 06:19:24
[2014-01-15 13:52:58]
ejtrader - Posts: 688
SC team - Fair enough. Thank you.

The reason to add it as "AddAsUserDrawnDrawing" as "0" instead of "1" is to avoid deleting/moving these lines accidentally. Would it be possible to lock the drawing in ACSIL - for Tool.AddAsUserDrawnDrawing = 1;

Thanks

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

Login

Login Page - Create Account