Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 14:38:26 +0000



Tick gap studies/alerts

View Count: 265

[2024-03-04 12:44:21]
User135088 - Posts: 3
Hi,

Is there any available study or function as part of another study which would allow for identification of bars with tick gaps? A tick gap being a gap in price between the close of the prior bar and open of the next (ex. prior bar closes at 100 and current bar opens at 100.25 or higher). Attached is an image from tradingview of an indicator (fair value and tick gaps) I have showing this functionality with the label 'TG' above or below the bar to indicate the direction and bars colored for tick gaps of more than 1 tick. I was hoping to replicate the tick gap functionality and have a label/marker under or above a footprint bar when this occurs (and confirmed based on bar close) and possibly the value of the gap. As I did not see anything like this, I was thinking possibly a color bar based on alert condition could work?

Any help/ideas appreciated. Thanks
imageTick gaps.png / V - Attached On 2024-03-04 12:27:56 UTC - Size: 67.82 KB - 81 views
[2024-03-04 17:02:06]
John - SC Support - Posts: 36243
There are a number of ways that you could get something to mark this kind situation. The "Color Bar Based on Alert Condition" is one of them. In this case, by default, the bar will be colored where this occurs.

The alert condition you would need would look like the following:
=O <> C[-1]

So any time the Open of the bar is not equal to the close of the previous bar it will highlight that bar.

If you want one color for an up gap and another for a down gap, then you would need two copies of the "Color Bar Based on Alert Condition", where one is set to one color with an alert like the following:
=O > C[-1]

And the other is set to another color with an alert like the following:
=O < C[-1]

Refer to the following:
Color Bar Based on Alert Condition
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