Support Board
Date/Time: Wed, 30 Oct 2024 22:55:58 +0000
Color ZigZAG line based on a subbgraph study.
View Count: 2600
[2015-09-10 17:44:53] |
User890810 - Posts: 6 |
Any help from anyone would be much appreciated. I have spent countless hours trying to change the color of the ZIGZAG line to a color of my choosing based on a sub-graph indicator I created. I can color the bars in the Main Chart based on this study but i cant do it for the zigzag study. I used the color bar based on above/below study to make it function in the main chart. Its really simple too. I want to color the zigzag line blue if id31.sg1>0 color red if id31.sg1<0. I used the add sub-graph study to create this study and its value is found at id31.sg1.. I am stumped. I have tried many differnet combinations of color bar on alert, color bar based on above below study etc.. Thank you. Date Time Of Last Edit: 2015-09-10 17:45:22
|
[2015-09-10 18:39:09] |
Sierra Chart Engineering - Posts: 104368 |
This can be done by using the Color Bar Based on Alert Condition study: https://www.sierrachart.com/index.php?page=doc/doc_TechnicalStudiesReference.html#s245 Specifically refer to this subsection: Coloring Subgraphs of Other Studies 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: 2015-09-10 18:40:00
|
[2015-09-15 02:43:09] |
User890810 - Posts: 6 |
Thank you. I finally was able to code it. Still having one issue. The Zigzag is missing sections of its line. I used line skipzeros just like the instruction stated. I used the alertcondition =id31.sg1>0 and id31.sg1<0 for two instances of the colorbar based on alert condition. Below is a screen shot. http://www.sierrachart.com/image.php?l=1442284518162.png |
[2015-09-15 17:50:34] |
User890810 - Posts: 6 |
Anyone have a clue? my brain gave out :)
|
[2015-09-15 18:40:22] |
Sierra Chart Engineering - Posts: 104368 |
Did you hide the original Zig Zag 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-09-15 18:55:45] |
User890810 - Posts: 6 |
No its not hidden. Id1.sg1 set to line skip zeros for draw study. BUT within the zig zag study i turned off color zigzag line to none. As i do not want to use slope, trend confirmed volume or confirmed volume. My logic says turn off so the color based on alert condition is being used properly... But when turned on to confirmed volume it does fill in the blanks on the chart i posted. But why?? doing it this way i need to recaclulate often as the underlying line color gets squiggly making it distracting. |
[2015-09-16 04:24:26] |
Sierra Chart Engineering - Posts: 104368 |
Thinking about this some more, it is not possible to color the Zig Zag study with the Color Bar Based on Alert Condition study reliably because the Zig Zag study changes at bars earlier than the last bar. Also because the Zig Zag line is continuous, there should be no need to use Line-Skip Zeros when coloring it. 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: 2015-09-16 04:25:00
|
To post a message in this thread, you need to log in with your Sierra Chart account: