Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 11:44:10 +0000



Question about Volume At Price Threshold Alert V2 study

View Count: 224

[2024-10-12 16:27:10]
User993440 - Posts: 16
Hi,

I'm using the Volume At Price Threshold Alert V2 study to show imbalances in Ask Volume/Bid Volume. The output is a blue (buy imbalance) or red (sell imbalance) extension line at the price level of the imbalance.

What I'm looking to do is highlight bars where there is divergence, i.e. a down bar that has a buy imbalance or an up bar that has a sell imbalance.

I've tried using the Color Bar Based On Alert Condition study to facilitate this using this alert condition: =AND(ID1.SG1 > 0, C > O) however the bar coloring isn't correct.

Any ideas that could help?

Thanks in advance
imageScreenshot 2024-10-12 at 17.03.42.png / V - Attached On 2024-10-12 16:22:48 UTC - Size: 4.51 KB - 49 views
Attachment Deleted.
[2024-10-14 14:33:00]
John - SC Support - Posts: 36203
Your formula is correct for the situation where any "Volume at Price Threshold Alert V2" signal is encountered on an Up bar. Is that part of it not working for you?

Or, are you wanting something more specific?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-14 15:17:08]
User993440 - Posts: 16
Yes more specific. So for the alert condition to color the bar when either:

There's an up bar with a sell imbalance.
There's a down bar with a buy imbalance.
[2024-10-14 17:09:21]
John - SC Support - Posts: 36203
As we stated, from the formula you have above, you will get an alert when there is at least a single Volume at Price Threshold Alert on a bar and the bar is an Up bar.

We assume you have set the "Volume at Price Threshold Alert V2" to give you the imbalance you are looking for, so from what you have stated, the formula should be working fine for this situation.

If you are wanting something else, then we need more information on what exactly you want to test.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-14 18:31:57]
User993440 - Posts: 16
Ok let me explain more clearly.

I'm using 2 instances of the "Volume at Price Threshold Alert V2" study. It's set up to compare 'Ask Volume/Bid Volume Diagonal Ratio', one instance with a +300% Percentage Threshold, the other with -300% Percentage Threshold.

The subgraph 'Extension Line Properties' colours are set to blue for the +300% Percentage Threshold instance and red for the -300% Percentage Threshold instance.

What I'd like to do is color fill candles where it's an up candle and the "Volume at Price Threshold Alert V2" study has a -300% Percentage Threshold showing via the red extension line. Then also color fill candles where it's a down candle and the "Volume at Price Threshold Alert V2" study has a +300% Percentage Threshold showing via the blue extension line.

So just using the Color Bar Based On Alert Condition study for these 2 states.
[2024-10-14 20:42:00]
John - SC Support - Posts: 36203
This formula:
=AND(ID1.SG1 > 0, C > O)

will give you what you are wanting for the Up bar condition with any single imbalance alert occurring at any price level within the bar.

You would need to change that condition for the down bar condition - we leave that to you.

Your original statement was that this was not working properly. What about it is not working as you are expecting.

--

We think you may be looking for a Stacked Imbalance situation. What exactly are you looking for in terms of the imbalance? Is one price level of imbalance enough, or are you looking for multiple consecutive levels? Do the levels need to be at any particular price level (i.e. at the top of the bar for an Up bar, etc.)?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-14 21:50:35]
User993440 - Posts: 16
Yes its targeting stacked imbalances. So I only want to highlight candles where there has been a buy imbalance on a down candle or a sell imbalance on an up candle. These imbalances can be at any price within the range of the candle.
[2024-10-14 22:00:11]
John - SC Support - Posts: 36203
Is a single imbalance enough, or do you need multiple levels in a row?

If a single imbalance is enough, then the original formula is fine for an Up bar:
=AND(ID1.SG1 > 0, C > O)

Where ID1 is the Volume at Price Threshold Alert V2 and SG1 is the first alert.

Again, if this is not working, then we need to know what is not working about it.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-14 22:36:00]
User993440 - Posts: 16
I think its SG60 on Volume at Price Threshold Alert V2 as this is the extension line.

So I only want to highlight candles where there has been a buy imbalance shown via SG60 on a down candle or a sell imbalance on an up candle shown via SG60. These imbalances can be at any price within the range of the candle and can be single or multiple.

Currently using either:
=AND(ID1.SG1 > 0, C > O) or =AND(ID1.SG60 > 0, C > O) doesn't give the intended output of a coloured candle for the above conditions
[2024-10-15 13:17:22]
John - SC Support - Posts: 36203
SG60 of the Volume at Price Threshold Alert V2 is only to define the properties of the extension lines. It does not actual hold any data, so it can not be used in an alert.

Your original formula is fine. We wonder if you have something wrong with the setup of the Color Bar Based on Alert Condition if that is not working for you.

Please get us your chart by following these instructions and we will take a look:
Support Board Posting Information: Providing Chartbook with Only a Single Chart
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-16 14:21:06]
User993440 - Posts: 16
Ok thanks I've attached the chart, examples of the condition I'd like to highlight are the candles at these times:
15th Oct 20:50:13 UK Time
15th Oct 20:55:05 UK Time
Private File
Attachment Deleted.
[2024-10-16 15:47:41]
John - SC Support - Posts: 36203
Your "Color Bar Based on Alert Condition" study is Hidden, so nothing will be colored. Disable the option for "Hide Study" in order for the bars to be colored when the condition is met.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-10-16 16:53:41]
User993440 - Posts: 16
Hi,

Yes it's hidden because the output when it's not hidden is to color every up bar which is incorrect.
[2024-10-16 17:25:09]
John - SC Support - Posts: 36203
If you want to view your candles, then you would need to remove the "Numbers Bars" study from your chart, and possibly remove it from your Study Collection.
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