Login Page - Create Account

Support Board


Date/Time: Tue, 30 Apr 2024 05:43:48 +0000



[Programming Help] - Alert for heiken ashi color change

View Count: 1030

[2021-07-23 13:51:33]
User601489 - Posts: 52
How would one write an alert to let me know the bars have changed from a down bar to an up bar on heiken ashi bars?
[2021-07-23 18:24:28]
Sawtooth - Posts: 3985
If the HA study is Displayed As Main Price Graph, you can reference the main price graph O & C:
=OR(AND(C[-1]<O[-1],C>O),AND(C[-1]>O[-1],C<O))

If the HA study is not Displayed As Main Price Graph, reference the ID#.SG# of its O & C instead of the main price graph O & C:
=OR(AND(ID1.SG4[-1]<ID1.SG1[-1],ID1.SG4>ID1.SG1),AND(ID1.SG4[-1]>ID1.SG1[-1],ID1.SG4<ID1.SG1))
where the HA study is ID1.

Actually the latter works for both settings, but the former is easier when applicable.

Study/Chart Alerts And Scanning: Alert Condition Formula Format

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

Login

Login Page - Create Account