Support Board
Date/Time: Mon, 13 Jan 2025 09:39:36 +0000
[User Discussion] - Suggestions for this Crossover System?
View Count: 2298
[2014-03-25 11:07:42] |
infpz - Posts: 826 |
Any thoughts on how to code this alert using the DME and ADX and ADXR study: If ADX is above 20 and DI+ is above DI- then draw "up arrow" on the price chart. If ADX is above 20 and DI- is above DI+ then draw "down arrow" on the price chart.
|
[2014-03-25 14:35:56] |
Sawtooth - Posts: 4149 |
Try this: Add two instances of the Color Bar Based On Alert Condition study, one for each arrow. Up arrow instance: set Output When Condition True to Use Input Data set Input Data to Low set the Draw Style to Arrow Up put this formula on the Alerts tab: =OR(AND(ID1.SG1[-1]<ID1.SG2[-1],ID1.SG1>ID1.SG2,ID1.SG3>20),AND(ID1.SG1>ID1.SG2,ID1.SG3<=20,ID1.SG3>20)) Down arrow instance: set Output When Condition True to Use Input Data set Input Data to High set the Draw Style to Arrow Down put this formula on the Alerts tab: =OR(AND(ID1.SG1[-1]>ID1.SG2[-1],ID1.SG1<ID1.SG2,ID1.SG3>20),AND(ID1.SG1<ID1.SG2,ID1.SG3<=20,ID1.SG3>20)) The formulas assume the DMI & ADR & ADXR study is ID1. |
[2014-03-25 16:23:12] |
infpz - Posts: 826 |
Works perfectly. Thank you.
|
To post a message in this thread, you need to log in with your Sierra Chart account: