Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 21:06:04 +0000



[Programming Help] - Color bar based on alert condition

View Count: 1817

[2017-09-10 03:41:58]
Neo - Posts: 198
I use a simple alert formula in a color bar study that is based on a study that repaints at each bar, so the color bars in real time are different to those based on historical data.

Is there any solution in ACSIL to not prevent a recalculation happening? Or something so I could freeze or record real time color bar alerts?
[2017-09-11 19:50:38]
Neo - Posts: 198
See image attached illustrate what i'm referring to.

Color bar alerts are correct based on Real-time data, however, some alerts are not recorded based on historical data( This is to be expected based on my alert conditions).

I want to some how record or store the Real-time alerts, or at least keep them from recalculating so that I would have to remove and re-add the study in order to recalculate.

Is there any potential solution to this?
imagecolor abr example.png / V - Attached On 2017-09-11 19:30:19 UTC - Size: 107.07 KB - 339 views
[2017-09-12 18:57:18]
Sierra Chart Engineering - Posts: 104368
Possibly you could use the Spreadsheet Study and use this functionality:
Spreadsheet Studies Special Tasks: Locking the State of a One Time Condition

Or use ACSIL and set a persistent variable with the particular alert state for a particular bar index:
sc.GetPersistentInt()
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-09-12 19:48:30]
Neo - Posts: 198
Is source code provided for the "Color Bar Based on Alert Condition" study? If so, I can't find it.
[2017-09-12 20:08:03]
Sierra Chart Engineering - Posts: 104368
No. It is not in a format which can be used externally. But we will see if we can implement that. Will put down a task to make it an ACSIL function.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2017-09-13 20:09:52]
Neo - Posts: 198
Does this still occur when you have "Evaluate On Bar Close" selected on alert tab?

Yes. What i'm referring to has nothing to do with "Evaluate on Bar Close"

The alert condition involves a rolling window( like a polynomial regression channel), which repaints at each bar. This means that a condition could have been true eg 200 bars ago, however, could appear not to be true based on the last bar- Because historical values of the polynomial regression change at each new bar.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account