Support Board
Date/Time: Tue, 24 Dec 2024 18:13:38 +0000
[User Discussion] - Multiple stochastics crossing over the 50 line
View Count: 758
[2015-11-11 16:20:50] |
User180442 - Posts: 2 |
I have tried to come up with an alert when 2 stochastics cross up or down over the 50 line. I have put an alert on the chart with the ID# but I still cant figure out the formula. So one stochastic crosses before the other one but when they both finally get on the same side of the 50 line, I would like an alert. Can you help me with that formula? Also, I know how to get an alert when one stochastic crosses the 80 or 20 line but I don't want it to alert when it keeps going back and forth over these lines.. Just an alert when it crosses up over the 80 line or crosses down over the 20 line. How can I do that? |
[2015-11-11 23:01:39] |
Sawtooth - Posts: 4142 |
For the two Stochastics crossing the 50 line, try this: =OR(AND(50>ID1.SG1[-1],ID1.SG1>50,ID2.SG1>50), AND(ID1.SG1>50,50>ID2.SG1[-1],ID2.SG1>50), AND(50<ID1.SG1[-1],ID1.SG1<50,ID2.SG1<50), AND(ID1.SG1<50,50<ID2.SG1[-1],ID2.SG1<50)) To only get an alert once when the Stochastics crosses a line, check 'Alert Only Once Per Bar' if you want an alert the first time it happens, or check 'Evaluate On Bar Close' if you want the alert at bar close. |
To post a message in this thread, you need to log in with your Sierra Chart account: