Login Page - Create Account

Support Board


Date/Time: Sun, 05 Jan 2025 23:41:08 +0000



Color bar based on alert condition

View Count: 113

[2024-12-13 18:06:43]
MarketBeast - Posts: 39
Hello SC Team,

How can I apply the "Color Bar Based On Alert Condition" study on a "TICK" chart? It seems to be working fine on time based chart but doesn't work on a 5000 intraday tick chart. Any suggestions? Can I overlay study in this case? Please advise.
[2024-12-13 18:07:31]
John - SC Support - Posts: 36980
The "Color Bar Based on Alert Condition" will work on a "Number of Trades" chart. If you are not getting what you expect, then most likely this has something to do with your alert condition.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-13 22:01:32]
MarketBeast - Posts: 39
Hello John,

I'm using 2 studies "Ask/Bid Volume Difference Bars" and "Cumulative Delta Bars-Volume". ID.3 and ID.2
I want to color the bar when there is a new consecutive higher high in both of the studies.

The "Output When Condition True" is set to "Use Input Data"
My alert condition code is
=AND(ID2.SG2 > ID2.SG2, ID3.SG2 > ID3.SG2)

SG2 is for the "High" pretty sure I'm missing something to get the higher high.
Date Time Of Last Edit: 2024-12-14 01:28:01
[2024-12-16 14:32:31]
John - SC Support - Posts: 36980
You are checking a bar against itself. If you want to test against the previous bar, then you need to use a [-1] modifier, so your condition would be the following:
=AND(ID2.SG2 > ID2.SG2[-1], ID3.SG2 > ID3.SG2[-1])

Refer to the following:
Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart
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