Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 14:56:33 +0000



How to write alert condition for Volume at Price Greater than X located above the bar open

View Count: 354

[2024-02-27 07:37:53]
User120942 - Posts: 71
@Sierra Chart Engineering

I am using the Numbers Bars study on a 1-8 Point and Figure Bar Period.

How do I write an alert condition that identifies when the total volume at a price level in each bar that is:

1. Greater than or equal to 2,000 volume
2. AND the price level that meets the greater than or equal to 2,000 volume threshold is located above the bar Open AND above the bar close?

I tried using the Color Bar Based On Alert Condition study and the Volume at Price Threshold Alert V2 study to use text on chart and audio alerts but I cannot figure out the correct formula to use in the alert condition.

I tried searching for the answer on the support board but did not find anything that answered this question.

Thank You
Date Time Of Last Edit: 2024-02-27 14:48:47
[2024-02-27 16:34:46]
John - SC Support - Posts: 36244
You have the right idea. The Alert Condition you would want to use would be similar to the following.
=OR(AND(ID1.SG1 > O, ID1.SG1 > C), AND(ID1.SG2 > O, ID1.SG2 > C))

Where ID1 is the ID of the Volume At Price Threshold Alert V2 study which is set to alert when the volume is greater than 2000. Then this checks the first two alerts to see if either one is above both the Open and the Close of the bar. You would have to extend this to however many levels you think you might get in a bar to ensure you cover the full range.

Note that the Volume at Price Threshold Alert V2 works from the Low of the bar up, so the first alert (SG1) is always going to be the lowest.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-27 19:03:49]
User120942 - Posts: 71
Thanks @John - SC Support

Previously I wasn't clear on the alerts starting from the low of the bar. I have the alerts working now.

Thank You

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

Login

Login Page - Create Account