Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 22:25:55 +0000



[Programming Help] - Order flow 'indiocators'

View Count: 825

[2023-10-03 17:10:10]
rjhand99 - Posts: 13
I use order flow footprint chart extensively, but I'd like to set up a few things and I wondered if you could help show me how to?

1) something to spot 'exhaustion', where selling (below a certain number of defined trades) occurs at the top of a bar and conversely, where selling falls below a defined level at the bottom of a bar
2) Delta divergence: where a bar price moves up despite a selling delta total for the bar, conversely where a bar price moves down for a buying delta total for the bar
3) Stacked imbalances: highlighting where a defined number of imbalances, buy or sell side, appear directly next to one another within a bar
[2023-10-03 17:22:48]
John - SC Support - Posts: 36309
1. You can setup an alert to do this. Refer to the following items for Alert Conditions where you can test the Total Volume, Bid Volume, and/or Price Volume at specific price levels:
Study/Chart Alerts And Scanning: Special Functions

Therefore, if you want to be alerted when the Bid Volume at the High of the Bar is less than a certain value (say 20 for this example), your formula would look like the following:
=BVAP(H, 0) < 20

2. The same thing as above, where you could create an Alert for this. You would need the Bar Delta, which can be gotten from the "Numbers Bars Calculated Values" study. Then you would need to test the Bar type as Up or Down. Therefore, your condition would look like the following:
=AND(ID1.SG1 > 0, C > O)

Where ID1.SG1 is the first subgraph of the Numbers Bars Calculated Values study. You would need to change this for your specific study. 'C' is the Close of the current bar and "O" is the Open of the current bar.

3. Refer to the following:
Volume at Price Threshold Alert V2: Highlight Multiple Adjacent Bid or Ask Dominant Prices (Stacked Imbalance)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-03 20:06:30]
rjhand99 - Posts: 13
That's very helpful and I shall try those suggestions out. In each instance though, physically where and how do I create and add these alerts?
[2023-10-03 22:54:12]
Sierra_Chart Engineering - Posts: 17185
Refer to:
Study/Chart Alerts And Scanning: To Enter an Alert Condition on the Main Chart/Price Graph
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-04 13:37:08]
rjhand99 - Posts: 13
on point (1) I only want the alert to work when the bar CLOSES with either a bid value of less than X at the high of the bar at close or the of value is less than X at the bottom of the bar when it closes. Also, I would like to mark the bar on the chart itself, above or below the closed candle as appropriate, rather than just get an audible sound alert.
[2023-10-04 15:48:09]
John - SC Support - Posts: 36309
The alerts have an option for "Evaluate on Bar Close". Refer to the following:
Study/Chart Alerts And Scanning: Evaluate on Bar Close

To have a marker placed, you would need to use the "Color Bar Based on Alert Condition". Refer to the information at the following link:
Color Bar Based on Alert Condition

Note the specific section in the documentation for "Drawing Arrows/Text or Other Styles at the High or Low of Bars"
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-05 11:56:25]
rjhand99 - Posts: 13
I've added another alert study and used the formulae you provided to compare delta to close Versus open price, but I am getting the wrong alerts showing (red circles in attached screenshots). Have include study alert screen to. Please advise.
Date Time Of Last Edit: 2023-10-09 14:50:04
imageDivergance.jpg / V - Attached On 2023-10-09 14:49:46 UTC - Size: 1.01 MB - 125 views
[2023-10-09 20:31:41]
John - SC Support - Posts: 36309
What study is ID2?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-10 06:16:37]
rjhand99 - Posts: 13
Id2 is Numbers Bars Calculated as shown on the previously attached screenshot
[2023-10-10 15:37:38]
John - SC Support - Posts: 36309
Please get us a copy of that chart by following these instructions:
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
[2023-10-10 17:19:18]
rjhand99 - Posts: 13
Support footprint file attached as requested
attachmentSupport footprint.Cht - Attached On 2023-10-10 17:19:13 UTC - Size: 6.13 KB - 186 views
[2023-10-10 18:38:01]
John - SC Support - Posts: 36309
The reason you are having issues is because this is a Renko chart. Renko bars are displayed differently from what the actual Open/Close/High/Low values are. Therefore, your Alert is correct, but visually it may not appear to be so. Refer to the following:
Renko Bar Charts: Renko Open, High, Low, Close Values
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-11 09:27:46]
rjhand99 - Posts: 13
Ok thank you, I've had a read of the link and I now see the difference wit the close of candlesticks and Renko bars.

So with that in mind and that I am trying to alert delta divergence, how do you suggest I proceed?
1) do I change to a normal time based candlestick based footprint
2) stick with renko footprint, if so what would the divergence alert code need to be?
[2023-10-11 14:30:11]
John - SC Support - Posts: 36309
It really depends on what you want to do and how you want to see it. It is not something we can tell you to do.

The thing to keep in mind is whether you want to test the underlying Open and Close or the Renko Open and Close. If you are going to test the Renko Open/Close then you would need to reference those as ID0.SG22 and ID0.SG23 (instead of O and C).
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-11 15:37:10]
rjhand99 - Posts: 13
Thanks John

Completely understand that. I think I'll work with the renko Open and Close logic (and Ive also added V > 3000 and positive delta > 100 or negative delta < 100 to make sure the condition is tested on a more meaningful basis. Thanks very much for the help, really good to understand how alerts work generally. Can add further conditions as I feel necessary.

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

Login

Login Page - Create Account