Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 03:14:46 +0000



Issues with sc.GraphDrawType = GDT_CANDLESTICK;

View Count: 689

[2018-11-28 21:32:46]
User470516 - Posts: 78
Dear SC Team,

I have written a study which requires the follwing instruction "sc.GraphDrawType = GDT_CANDLESTICK;" to display data in the form of candles in a graph region which is region 2.

The study also includes a subgraph to draw basic lines. The lines wont draw except if I manually change the Graph Draw Type option from "candlestick bars" to "line on close" for instance in the study settings window. But that is not what I want.

Is it possible to have both candle sticks and lines coexist in the same study or should I write a separate study that will accomodate my lines? I would like to avoid this to keep the total number of studies low.

Thank you for your support and more generally for all the professionnal and efficient help we get from your team.

Regards,

Laurent
[2018-11-28 23:44:42]
Sierra Chart Engineering - Posts: 104368
You would need to create another study to draw the lines. This is described in the 9th paragraph in the documentation for the sc.GraphDrawType variable which states:

Additionally, it is not possible when you are drawing a price bar type of graph (sc.GraphDrawType not equal to GDT_CUSTOM), to also use standard study lines or other Draw Styles using sc.Subgraph[4] and higher which are not used by the price bar graph draw types. In this case you will need to use a separate study.

The link to this documentation is here:
ACSIL Interface Members - Variables and Arrays: sc.GraphDrawType
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:

Login

Login Page - Create Account