Support Board
Date/Time: Wed, 05 Feb 2025 17:04:24 +0000
Alert Identifier to Reference Chart Time Frame or Tick Value
View Count: 129
[2025-01-14 21:23:06] |
CoCoHimself - Posts: 14 |
Is there an identifier to check the charts time frame or tick value? For Example I'd like to have an alert that goes off when conditions are met but only when I'm viewing the chart in either 5min time frame or 2000tick. Thanks Date Time Of Last Edit: 2025-01-14 21:28:48
|
[2025-01-15 16:13:31] |
John - SC Support - Posts: 37753 |
There is not a specific Alert item that can check the bar parameters for a chart. But there are a few ways to do this. The simplest is to add the "Spreadsheet Study" to a chart. Within the spreadsheet itself is specific information for the chart in columns I and J. For instance, the "Seconds Per Bar" and "Number of Trades Per Bar" are listed. You can then reference that cell into one of the formula columns and then use that information in your alert. For instance, if the Seconds per Bar (cell J36) is set to 300 (5 minute chart), then you would enter the following in cell K3: =$J$36 Then in your alert formula, you would add an item to test that the subgraph for Column K is set to 300, like the following: =AND(..., ID1.SG1 = 300, ...) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-01-15 18:50:54] |
Sawtooth - Posts: 4167 |
The Spreadsheet System/Alert study and the Spreadsheet System for Trading study further expand the bar types of J36-J39 in J97-J101. Spreadsheet Systems, Alerts and Automated Trading: Bar Period Type (read-only) [J97] |
[2025-01-15 22:02:17] |
CoCoHimself - Posts: 14 |
Awesome! I pulled it together. So for others that may come across this my setup is this: ID1 - Bollinger Bands ID2 - Color Bar Based On Alert Condition ID3 - Spreedsheet Study I wanted to color the outline of my candles when the Bands started to get tight which on the 2k chart I liked a difference of less then 4. So in the color bar study: =ID1.SG1 - ID1.SG3 < 4 On the Spreedsheet as John stated I added $J$37 Now to add that into the alert formula on the Color bar study: =AND(ID1.SG1 - ID1.SG3 < 4, ID3.SG1 = 2000) ...and then add the others because different charts have the bands at different widths. =OR( AND(ID1.SG1 - ID1.SG3 < 4, ID3.SG1 = 2000), AND(ID1.SG1 - ID1.SG3 < 3.5, ID3.SG1 = 1000), AND(ID1.SG1 - ID1.SG3 < 3, ID3.SG1 = 500) ) Boom-shaka-laka thanks again! Date Time Of Last Edit: 2025-01-15 22:10:28
|
To post a message in this thread, you need to log in with your Sierra Chart account: