Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 04:49:21 +0000



Difference between the current and previous indicator values

View Count: 460

[2023-09-16 22:11:36]
User14953 - Posts: 236
Can a sierra chart study produce a visual que in the RSI study's chart region indicating that the difference between the current and previous RSI values is less than 10, without the use of acsil or a spreadsheet? It could be an arrow, a red/green status light, a 2-digit number, etc.
[2023-09-18 15:39:24]
John - SC Support - Posts: 36309
You could use the "Color Bar Based on Alert Condition" to do this. Your Alert condition would look like the following:
=ABS(ID1.SG1 - ID1.SG1[-1]) < 10

Where ID1 is the ID of the RSI study on your chart.

Refer to the following, in particular note the section on "Drawing Arrows/Text or Other Styles at the High or Low of Bars":
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
[2023-09-20 00:48:05]
User14953 - Posts: 236
Works great, Thank You.
Could a sierra chart study give visual que alerts for engulfing patterns, without using acsil or a spreadsheet? The Sierra Chart's Engulfings use a different formula than what is required. If there is a way to edit those, great, but if not, the original question remains.
Date Time Of Last Edit: 2023-09-20 02:00:16
[2023-09-20 15:11:59]
John - SC Support - Posts: 36309
We are assuming that you are using the "Candlestick Pattern Finder". If so, then the source code for this can be found in Studies4.cpp including the formulas. So you can modify this and create your own study to do what you want. Refer to the following:
How to Build an Advanced Custom Study from Source Code

Otherwise, you could try to use the Color Bar Based on Alert Condition, as you should be able to create the condition using the alert syntax without too much trouble.
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: 2023-09-20 15:12:59
[2023-09-21 15:24:42]
User14953 - Posts: 236
"We are assuming that you are using the "Candlestick Pattern Finder"."
No, Sierra Chart's "candlestick pattern finder's" Engulfings use a different formula than what is required.

Troubleshooting -
This Chart Study Color Background Based On Alert Condition will alert correctly in hindsight when the study is re-applied to the chart, only to miss new realtime occurances. It often fails to perform in real time.

After reapplying the Chart Study, the Color Background appears where none existed before for multiple bars that qualify for color background.

Interestingly, a Red Highlight Does appear appropriately and correctly behind the Study Name in the Chart Header during bar formation
but upon bar completion these bars themselves do not become 'color backgrounded' unless the study is re-applied to the chart again.
What to do?
Date Time Of Last Edit: 2023-09-21 15:31:19
[2023-09-21 16:13:59]
John - SC Support - Posts: 36309
What are the following Inputs set to:
- Number of Days to Calculate
- Automatically Clear from Before 'Number of Days to Calculate'

Also, on the Alerts tab, do you have the option for "Evaluate on Bar Close" enabled or not?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-09-21 17:10:49]
User14953 - Posts: 236
The following Inputs are set to:
2000 - Number of Days to Calculate - 2000
No - Automatically Clear from Before 'Number of Days to Calculate' - No

not - "Evaluate on Bar Close" enabled or not? - not
[2023-09-21 17:25:38]
John - SC Support - Posts: 36309
Please get us a copy of the chart that has this setup on it and we will take a look. Follow the instructions at the following link:
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-09-25 15:20:10]
User14953 - Posts: 236
Attached is a chartbook containing the chart and study of interest.

Troubleshooting -
This Chart Study Color Background Based On Alert Condition will alert correctly in hindsight when the study is re-applied to the chart, only to miss new realtime occurances. It often fails to perform in real time.

After reapplying the Chart Study, the Color Background appears where none existed before for multiple bars that qualify for color background.

Interestingly, a Red Highlight Does appear appropriately and correctly behind the Study Name in the Chart Header during bar formation
but upon bar completion these bars themselves do not become 'color backgrounded' unless the study is re-applied to the chart again.
What to do?
Date Time Of Last Edit: 2023-09-25 15:21:36
attachmentA LERT BK slim.cht - Attached On 2023-09-25 15:15:06 UTC - Size: 12 KB - 466 views
[2023-09-25 18:27:26]
John - SC Support - Posts: 36309
Your Alerts have '[1]' in them instead of '[-1]'. By having a +1 in there, it is trying to look forward, which is why the current bar never colors, but it will color previous bars when you apply the study later (those bars then have a bar forward of them).
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