Login Page - Create Account

Support Board


Date/Time: Sun, 08 Sep 2024 01:38:47 +0000



[User Discussion] - Suggestions for this Crossover System?

View Count: 2254

[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: 4083
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:

Login

Login Page - Create Account