Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 05:09:13 +0000



Copy drawings to another chartbook that were created with ACSIL?

View Count: 1926

[2013-07-18 15:24:53]
User45685 - Posts: 36
I have a working custom study running which creates drawings in pure ACSIL and is not tagging them as userdrawings so that i dont have to delete evrything manually:

s_UseTool Tool;
    Tool.Clear();
    Tool.ChartNumber = sc.ChartNumber;
    Tool.DrawingType = DRAWING_RECTANGLEHIGHLIGHT;
    Tool.LineNumber = LOW_LINENUMBER_BASIS + sc.Index-2;
    Tool.BeginIndex = sc.Index-2;
    Tool.BeginValue = sc.BaseData[SC_RENKO_CLOSE][sc.Index-3];
    Tool.EndIndex = sc.Index;
    Tool.EndValue = sc.BaseData[SC_RENKO_OPEN][sc.Index-2];
    Tool.Color = LOW_COLOR;
    Tool.SecondaryColor = LOW_COLOR;
    Tool.TransparencyLevel = TRANSPARENCY_LEVEL;
    Tool.LineWidth = RECTANGLES_LINE_WIDTH;
    sc.UseTool(Tool);

The drawings are done/performed on renko bars, but it seems that i cannot transport/overlay these drawings onto lets say a 1 Minute timeframe chart.

Is there any solution to this? I tried useing the Study/Price overlay study but it does not seem to work. Suggestions?
[2013-07-18 17:48:32]
Sierra Chart Engineering - Posts: 104368
You can do this by setting Tool.AddAsUserDrawnDrawing = 1.

And then specify the Tool.ChartNumber to output the drawings to.

Refer to:
http://www.sierrachart.com/index.php?l=doc/doc_DLLTools.html

To delete a drawing programmatically use:
http://www.sierrachart.com/index.php?l=doc/doc_DLLTools.html#scDeleteUserDrawnACSDrawing
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-07-18 17:49:44
[2013-07-18 18:33:28]
User45685 - Posts: 36
Quick followup:

If i set the Chartnumber to output the drawings to to a different chart, will the original chart where the study is run also have the drawings?

Example:

The rectangles are currently drawn into chartnumber 3 where my renko bars are displayed, assuming i want a copy of this onto chart number 1 where a 1 minute timeframe is running and i adjust the code to include the AddAsUserDrawnDrawing and set the chartnumber output to 1... will chart number 3 also have the rectangles or will ONLY chart number 1 where the output has been selected to have the drawings?
[2013-07-18 22:12:23]
Sierra Chart Engineering - Posts: 104368
The drawings will be added only to the chart specified by Tool.ChartNumber. So you need to add the drawing to each chart. And delete it from each 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
[2013-07-18 23:55:11]
User45685 - Posts: 36
Ah this clarifies it, time to rewrite the code then i guess =/

Is drawing to multiple chart numbers supported? I.e Specifying:

Tool.ChartNumber = 1, 2

in order to draw it to chartnumber 1 and 2 ?
[2013-07-19 00:33:28]
Sierra Chart Engineering - Posts: 104368
No. You have to make 2 separate sc.UseTool calls.
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
[2013-07-19 00:44:06]
User45685 - Posts: 36
Thanks!

Consider the support request resolved :)

Good night!

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

Login

Login Page - Create Account