Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:11:36 +0000



Post From: Assist in creating a condition

[2024-07-08 20:47:47]
John - SC Support - Posts: 34450
We can only give you the information for what you need to do. It is beyond the scope of our support to do it all for you.

To begin with, we will give you the information for just situation a) as b) is just a changing of some of the information. To start with, a red candlestick is one where the Close is lower than the Open (in general). Therefore the formula for this is fairly straightforward as:
=C < O

Then to check the Delta for the bar, you need a study from which to gather that information. The Numbers Bars Calculated Values is one of the easiest to get it from, and since you are on Package 11, you have access to this, so you would just need to look at subgraph 1 (Ask Volume Bid Volume Difference) of the "Numbers Bars Calculated Values" study. So that formula would be the following where ID1 is the ID of the Numbers Bars Calculated Values study:
=ID1.SG1 > 0

Things get harder from here, as we assume you are wanting to test every price level for the Bid/Ask imbalance. In which case, you need to spell out what you want at each level. Since you are using a Range bar, this limits the number of times you need to do this, since you know how many levels there are in each bar. For the imbalance tests at the bottom two levels of a bar, it would look like the following:
=OR(AND(AVAP(L, 0) > BVAP(L, 0), AVAP(L, 0) > BVAP(L - TICKSIZE * 1, 0)), AND(AVAP(L + TICKSIZE * 1, 0) > BVAP(L + TICKSIZE * 1, 0), AVAP(L + TICKSIZE * 1, 0) > BVAP(L, 0)))

Refer to the following for information on AVAP and BVAP:
Study/Chart Alerts And Scanning: Special Functions

Note that the multiplication by 1 for the ticksize is not necessary, but we put it there so you understand how to deal with the data at further up price levels. The 'L' is the Low of the bar.

You then have to put everything together using the AND() function.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-07-08 20:48:14