Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 10:46:32 +0000



[Programming Help] - Identify largest delta (bar) of the trading day

View Count: 2261

[2018-07-25 20:52:24]
User477191 - Posts: 10
I currently use the "Ask Volume Bid Volume Difference Text" study and apply it to a 6 tick chart. I would like to be able to identify the largest delta (bar) of the day and highlight it. Is there a study and/or formula that will achieve this?
[2018-07-26 18:07:30]
Sierra Chart Engineering - Posts: 104368
Yes. Use the Color Bar Based on Alert Condition and use the following formula for the Alert Condition =ID4.SG1 = MAX(ID4.SG1[0:-50])

Change the ID4 to the ID of the Ask Volume Bid Volume Difference Text study.

This will look for the Maximum value in the 50 most recent bars and highlight the bar that has this value. Change the -50 to a value that will work for your needs. The 0 is the most recent bar in the chart.

You can also change this to find the Minimum value by changing the MAX to MIN. You could then also combine these with AND and/or OR functions to give you various information.

You will find the documentation for the Color Bar Based on Alert Condition study here:
Color Bar Based on Alert Condition
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-08-06 15:38:27]
User477191 - Posts: 10
Will this work when the delta is negative as well? For example, if there is a +2000 and a -2001 will it highlight the "-2001" ?
[2018-08-06 15:51:00]
Sierra Chart Engineering - Posts: 104368
No you would have to modify the formula for that.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-08-06 15:59:59]
User477191 - Posts: 10
What would that formula be?
[2018-08-09 17:07:53]
User477191 - Posts: 10
Can you help me with the formula?
[2018-08-09 17:43:26]
Xfanman1 - Posts: 320
If you create a separate color bar alert study you can use the same formula but use MIN instead of MAX. That would be the simplest approach I think.

In addition you’d be able to color the alert a different color for each condition that way.


Scott

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

Login

Login Page - Create Account