Support Board
Date/Time: Sun, 24 Nov 2024 11:50:50 +0000
[Programming Help] - Formula help - color bar based on alert condition
View Count: 231
[2024-06-02 17:42:23] |
User21243 - Posts: 48 |
Trying to set up an alert with the color bar based on alert condition study. Using two instances of the study, one for a down bar and one for an up bar. First instance of study --- I want an alert if a down bars volume is 2x the previous 10 bar average. Using this formula ---- =AND(C < O, V >= 2 * AVERAGE(V, 10)) Second instance of study --- I want an alert if an up bars volume is 2x the previous 10 bar average. Using this formula ---- =AND(C > O, V >= 2 * AVERAGE(V, 10)) Not getting any results and not sure what the issue is. Also need to have it reset once it triggers, so once it triggers then it starts averaging again from that next bar. Can I do this with this study, or do i need to write a custom indicator? |
[2024-06-02 19:57:30] |
User21243 - Posts: 48 |
Disregard, figured out a different way to do it
|
[2024-06-02 19:58:22] |
Sawtooth - Posts: 4118 |
Not getting any results and not sure what the issue is.
You need to use the proper syntax:=AND(C > O, V >= 2 * AVERAGE(V[0:-10])) Study/Chart Alerts And Scanning: Referencing A Range of Data |
To post a message in this thread, you need to log in with your Sierra Chart account: