Support Board
Date/Time: Mon, 03 Mar 2025 21:39:08 +0000
Multiple drawing elements per bar
View Count: 546
[2021-11-08 02:46:38] |
KylieV1618 - Posts: 67 |
Hi, I know I can create a subgraph to display an drawn item per bar index. Be that a cricle, square, or text or whatever. But what if I want to draw something at every price level at a bar?? How do I go about doing that. Kinda like the numbers bars and their histograms. Or the Large Volume Indicator and the circles per filter on a traded price. Do I have to use custom drawings for this? Or is there a Subgraph that then divides further into "per bar" array, if you know what I mean. So price levels per bar, and drawn elements at each price level/index. Or do I have to just use all the subgraphs and cycle through them per bar?? So have 60 repeated elements, and for each caluclated thing, find the next subgraph and use that, until we run out. (thus limiting every par to 60 events) Please let me know Thanks Kylie |
[2021-11-08 20:37:44] |
KylieV1618 - Posts: 67 |
Was my question clear enough? I hope so Basically the way I think I have to solve this....is use all 60 Subgraphs, and loop through them per bar, to be able to draw 60 seperate elements onto that bar. Which kinda is not ideal, because if the prices move more than 60 ticks within a bar, I run out of drawing indexes. Is there a better way to achieve this?? Like is there a way a subgraph can draw elements from the sc.SubGraph.Arrays[0][] arrays? ( I doubt it right? ) Perhaps I can solve with custom drawings/GDI? But from what I understand the GDI doesn't have access to any variables outside of the original draw on startup, so I don't think thats possible. Thanks Kylie Date Time Of Last Edit: 2021-11-08 20:39:48
|
[2021-11-10 04:02:02] |
Sierra_Chart Engineering - Posts: 18631 |
This is the recommended method: Or do I have to just use all the subgraphs and cycle through them per bar?? So have 60 repeated elements, and for each caluclated thing, find the next subgraph and use that, until we run out. (thus limiting every par to 60 events) Otherwise, you would need to look at using Chart Drawings: Using Drawing Tools From an Advanced Custom Study 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, use 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: