Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 18:04:34 +0000



bid volume vs ask volume as absolute value above 0 line

View Count: 114

[2024-04-10 05:05:03]
User488241 - Posts: 18
Hello,

I was wondering if there was a way to take the difference in volume from bid vol vs ask volume study and display in a manner where it has an absolute value above the 0 line but still maintain its green or red color. Currently the bid vs ask vol study shows the difference as a positive value and a negative value. I've attached a picture of the studies.

https://www.sierrachart.com/image.php?Image=1712725448506.png

First study : Uptick and down tick volume plotted on top of each other
Second study: Difference btwn bid/ask vol
Third study: Absolute value of difference btwn bid/ask vol but unable to color bars according to if value was from uptick vol or downtick vol

Thank you!
[2024-04-10 15:35:21]
John - SC Support - Posts: 31362
What you are doing is a good way to solve the problem. The only item you are missing is the use of the "Color Bar Based on Alert Condition". In this case, you would need to keep the "Bid Volume v Ask Volume" study with the difference on the chart, but you can eventually hide it. You will use this to determine the coloring for when the difference was negative.

In the Color Bar Based on Alert condition, you will set an Alert formula that looks like the following:
=ID2.SG5 < 0

Where ID2 is the ID of the "Bid Volume v Ask Volume" study and SG5 is the Difference Subgraph.

Then set the color for the "Color Bar" Subgraph to be red (or whatever color you want). Just make sure that you also set the "Color Bar" subgraph to be the same Draw Style and Width as what you are using for the display. And that the Based On is set to the "Study Subgraph Absolute Value" study with the Output set to the Input value and the Input value set to the Subgraph you are displaying there. And that the Region is set correctly.

Refer to the following:
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-11 04:45:39]
User488241 - Posts: 18
I have managed to get the alert condition working using =id6.sg5<0 which corresponds to the correct study and input. I don't have any issues placing it on the main price graph but can't get it to color bars in charge region 2 where the absolute value study is. I've atttached images of the settings I've tried, one being on main price graph which works, and the another where it will not color on region 2.

Thank you!
imageMaingraph.PNG / V - Attached On 2024-04-11 04:45:09 UTC - Size: 293.19 KB - 15 views
imageRegion2.PNG / V - Attached On 2024-04-11 04:45:19 UTC - Size: 249.98 KB - 16 views
[2024-04-11 14:48:35]
John - SC Support - Posts: 31362
The "Based On" needs to be set to the study that you want to color (we think you have this correct, but we do not know for certain). Then the "Output When Condition True" needs to be set to "Use Input Data".

Then make sure that the Subgraph settings match the same as the study you are trying to color (i.e. it should be Bar and whatever width you have set on the other study).
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-04-11 15:22:21]
User488241 - Posts: 18
Thank you it was the subgraph setting that was keeping it from working. I had it on Color bar instead of bar. Interesting how colorbar will work for main graph but not for other studies.

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

Login

Login Page - Create Account