Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 10:46:25 +0000



[User Discussion] - How to highlight the bar

View Count: 718

[2023-02-22 03:32:58]
User988006 - Posts: 1
How to highlight or change the color of the bar based on bid/ask >1000
imageScreenshot_63.png / V - Attached On 2023-02-22 03:30:40 UTC - Size: 42.27 KB - 125 views
[2023-02-22 15:29:39]
JohnR - User831573 - Posts: 306
This is not exactly what you are asking to do, but very similar.

Highlight the whole number bar body based on the volume

Hope this helps,
JohnR
[2023-02-22 20:46:14]
John - SC Support - Posts: 36350
There is not a way to do this using the Numbers Bars Candle display. But, if you setup the Main Price Graph to be a Candlestick Hollow then you can use the Study Price Overlay to overlay the Main Price Graph onto the Numbers Bars, which will look the same as what you have now.

Then you can use the Color Bar Based on Alert Condition to color the bar based on whether the Bid/Ask is above a certain amount. You will need to change the Subgraph Draw Style for the Color Bar to Color Bar Hollow.

In terms of setting up the alert condition for the Color Bar Based on Alert Condition, you will have to check each level of the bar individually, and you will have to guess as to how many levels there are within the longest bar you expect. You will then create an Alert condition that looks like the following to check if either the Bid or the Ask is above 1000 for the first two levels starting at the low:
=OR(BVAP(L, 0) > 1000, AVAP(L, 0) > 1000, BVAP(L + TICKSIZE * 1, 0) > 1000, AVAP(L + TICKSIZE * 1, 0) > 1000, ...)

You will have to add the rest to do the test. Refer to the following for the information on BVAP and AVAP functions:
Study/Chart Alerts And Scanning: Special Functions
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