Support Board
Date/Time: Fri, 24 Jan 2025 06:45:34 +0000
[Programming Help] - moving averages
View Count: 708
[2018-12-31 15:32:01] |
User635423 - Posts: 51 |
Is it possible to have a vertical background bar generated if a series of conditions is met? All moving averages are based on the close of each bar. So when the 10 ema > 20 ema AND the 20 ema > 50 ema I would like to have a dark green background bar paint on the chart. And when the 10 ema < 20 ema AND the 20 ema < 50 ema I would like to have a vertical dark red background bar populate. Is this possible and if so how can I configure this? Thank you! |
[2018-12-31 16:16:34] |
Sawtooth - Posts: 4162 |
Use two instances of the Color Background Based On Alert Condition study, one for each color. Use formulas like these, respectively: =AND(ID2.SG1>ID2.SG2>ID2.SG3) =AND(ID2.SG1<ID2.SG2<ID2.SG3) Edit the ID# and/or SG# of each EMA as needed. |
To post a message in this thread, you need to log in with your Sierra Chart account: