Login Page - Create Account

Support Board


Date/Time: Wed, 05 Nov 2025 23:43:10 +0000



Need help to setup alert based on a specific condition

View Count: 54

[2025-11-03 01:22:58]
RK123 - Posts: 4
Hello, I'm looking to setup an alert that should be generated as soon any ONE of these two conditions are met - 1) when the most recent candle is closed in RED but delta is positive 2) when the most recent candle is closed in GREEN but delta is negative

FYI - Delta is Ask Vol Bid Vol Difference
[2025-11-03 15:49:17]
John - SC Support - Posts: 42801
A "Red" candle is one in which the Close is less than the Open, and a "Green" candle is one in which the Close is higher than the Open. Therefore, to check if a candle is red, you would use the following:
=C < O

Where C is the Close and O is the Open. Refer to the following:
Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables

For the delta, you need to get that information from somewhere. The easiest source is the "Numbers Bars Calculated Values" study, where it is Subgraph 1. So to check is the Delta is positive, you would have the following:
=ID1.SG1 > 0

Where ID1 is the ID of the "Numbers Bars Calculated Values" study. Refer to the following:
Numbers Bars: Displaying Numeric Information Below Numbers Bars

To put these together, you use an AND() function, like the following:
=AND(C < O, ID1.SG1 > 0)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-11-03 21:13:00]
RK123 - Posts: 4
I'm using study "Numbers Bars Calculated Values" and it shows ID:2 in my chart (because I'm using another study as well).
Refer to attached screenshot showing how I've tried to setup the alert condition (Chart --> Chart Settings --> Alert). The condition I've specified is -

=OR(AND(C < O, ID2.SG1 > 0),AND(C > O, ID2.SG1 < 0))

Alert Only once per bar - YES
Evaluate on Bar close - YES
Reset alert condition on New bar - YES

Can you confirm if everything looks correct?
Date Time Of Last Edit: 2025-11-03 21:14:03
Private File
[2025-11-03 21:42:45]
John - SC Support - Posts: 42801
Everything we see should be fine, as long as those are the conditions you want (such as "Evaluate On Bar Close").
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-11-03 22:36:22]
RK123 - Posts: 4
I want the alert to be generated only after the candle is closed (not while its forming) so that's why I set "Evaluate On Bar Close" to YES.

But I need one additional input - along with alert generation, is there any way to configure some visual representation in my chart which would highlight that particular candle that meets my criteria?
[2025-11-04 14:05:51]
John - SC Support - Posts: 42801
Refer to the following:
Color Bar Based on Alert Condition
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account