Support Board
Date/Time: Fri, 31 Jan 2025 12:04:29 +0000
Post From: Horizontal line color change based on MACD
[2019-04-25 14:44:20] |
John - SC Support - Posts: 37621 |
You would need to add the Horizontal Lines study to start with, in order to get the lines you want at those levels. Here is the documentation for the Horizontal Lines study: Horizontal Lines Then you need to add two Color Bar Based on Alert Condition studies, one for when the MACD is above 0.5 and the other for when the MACD is below -0.5. You will need to setup the Color Bar Based on Alert Condition to change the Horizontal Lines subgraph. All of this is explained in the documentation for the study. You will find the documentation here: Color Bar Based on Alert Condition The alert condition is pretty simple, it will just be something like ID1.SG1 > ID2.SG1 where ID1.SG1 is the MACD and ID1.SG1 is the line at 0.5. The other one would be ID1.SG1 < ID2.SG2. You will need to work out the exact IDs and Subgraphs. You will find the information on referencing subgraphs in Alerts here: Study/Chart Alerts And Scanning: Referencing Study Subgraphs If all of this is confusing, then look at the following Study Collection that does something similar. You should be able to work from it to get what you want. https://www.sierrachart.com/AdditionalFiles/ColorCurrentBarLastAboveBelowOpen.StdyCollct The information for how to use the Study Collection can be found here: How to Use an Advanced Custom Study or a Study Collection: How to Use a Study Collection For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |