Login Page - Create Account

Support Board


Date/Time: Sun, 18 Aug 2019 08:36:03 +0000



[User Discussion] - 2 MA Background Color Alert based on Slopes

Support Request:
[2019-02-11 14:07:06]
User371906 - Posts: 130
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 14:51:24]
Ackin - Posts: 277
Hi,

via Alerts
but don't know how to integrate signal alert for both MA together to render the background color alert.

Boolean algebra :)
study subgraphs Add -> study1 + study2 -> if sum>0 then Signal color alert


via ACSIL
I have study for basic Moving Averages (Exponential ,Linear Regression,Simple,Weighted,Wilders,Simple Skip Zeros, Smoothed)



free download in our forum

https://www.sierrachart.com/SupportBoard.php?PostID=170827#P170827
Date Time Of Last Edit: 2019-02-11 15:35:41
imageMA alert trend slope.png / V - Attached On 2019-02-11 15:34:12 UTC - Size: 71.25 KB - 118 views
imageMA alert non trend slope.png / V - Attached On 2019-02-11 15:34:20 UTC - Size: 135.02 KB - 117 views
[2019-02-11 15:11:29]
tomgilb - Posts: 2221
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: 130
Ackin & Tom,

Thank you both for information.

Kudos.

Kindly

g

To post a message in this thread, you need to login with your Sierra Chart account:

Login

Login Page - Create Account