Support Board
Date/Time: Fri, 07 Feb 2025 15:17:52 +0000
[User Discussion] - alert based on slope of EMA
View Count: 2369
[2016-03-31 21:43:00] |
freestyler - Posts: 35 |
Hi: Trying to figure out the easiest way to do the following: When the EMA slope is between certain angles, say, 45% to 60%, color the EMA slope with a different color than the default. How do I do this? I assume I need to use the Color Bar Based on Alert Condition study. Where to go next? |
[2016-04-01 00:07:45] |
Sawtooth - Posts: 4173 |
One way to do it is to use the Study Angle study to get the angle of the EMA in degrees: Add the Study Angle study. -set the 'Based On' to the EMA study, -the 'Input Data' to 'Avg. Then add the Color Bar Based On Alert Condition study, -Set the Based On to the EMA study -Set the Chart Region to 1 -Set the 'Output When Condition True' to 'Use Input Data' -Set the 'Input Data' to 'Avg' -Set the Draw Style to 'Line - Skip Zeros' -Use a formula like this on the Alerts tab: =ID2.SG1>10 where the Study Angle study is ID2. Add another color bar study for negative angles, with this formula: =ID2.SG1<-10 |
[2016-04-01 00:23:31] |
freestyler - Posts: 35 |
Thank you so much tomgilb! It's exactly what I'm looking for. I used ABS to cover both positive and negative angle, and voila, it's beautiful! Now it's time to tinker with it. Really appreciate it! Mark |
To post a message in this thread, you need to log in with your Sierra Chart account: