Support Board
Date/Time: Fri, 09 May 2025 20:02:11 +0000
[User Discussion] - 2 MA Background Color Alert based on Slopes
View Count: 2501
[2019-02-11 14:07:06] |
User371906 - Posts: 141 |
Hello, I have two different set Moving Averages set to slope (green - red) from which I take signals to enter once both have the same slope color. I would like to have a alert set as a background color once both MA have same color. (Not looking so much as to a cross over but simply once they both have a positive or negativity slope) I have =OR(AND(SG1[0] > SG1[-1],SG1[-1] < SG1[-2]),AND(SG1[0] < SG1[-1],SG1[-1] > SG1[-2])) but don't know how to integrate signal alert for both MA together to render the background color alert. Any help would be helpful. Thanks g |
[2019-02-11 15:11:29] |
Sawtooth - Posts: 4214 |
Use 2 instances of the Color Background Based On Alert Signal study, one for each color, with formulas like these on their respective Alerts tabs: =AND(ID1.SG1>ID1.SG1[-1],ID2.SG1>ID2.SG1[-1]) =AND(ID1.SG1<ID1.SG1[-1],ID2.SG1<ID2.SG1[-1]) where ID1.SG1 is one MA, and ID2.SG1 is the other MA; edit as needed. |
[2019-02-11 20:36:34] |
User371906 - Posts: 141 |
Ackin & Tom, Thank you both for information. Kudos. Kindly g |
To post a message in this thread, you need to log in with your Sierra Chart account: