Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 23:19:20 +0000



AddLineUntilFutureIntersection & Color Based On Alert Condition

View Count: 816

[2024-11-29 22:42:55]
User688525 - Posts: 284
Hello Sierra,
This post is not programming help.

I have a few questions about the “AddLineUntilFutureIntersection” function and the “Color Based On Alert Condition” study.

For AddLineUntilFutureIntersection:
1. Is it possible to display values on the right-hand edge, as I have found that if values are displayed, they are on the line itself and this can’t be customized?
2. How can I customize the function either directly or through ACSIL so that the intersection of extended lines can be calculated based on an aggregated time frame separate to the current chart bar’s period?

For Color Based On Alert Condition:
1. Where is the source code for this study as I would like to add support for more than one subgraph instead of relying on multiple “Color Based On Alert Condition” studies?

Thank you
[2024-12-02 17:14:00]
John - SC Support - Posts: 39428
AddLineToFutureIntersection():
1. What you seeing is the only option that is built in with that function.

2. You can not customize the function.

Color Bar Based on Alert Condition:
1. The source code is not available.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-02 18:06:56]
User688525 - Posts: 284
Hi John,
As using multiple instances of the "Color Bar Based on Alert Condition" appears to be the only solution, is there a way to add show/hide a group of studies without having to either "Clear existing studies on chart" or create a separate study collection, i.e., show/hide the group with the click of a button without prompts/notifications?

Cheers
[2024-12-02 18:11:49]
John - SC Support - Posts: 39428
There is not a built-in method to show/hide a group of studies. The other options you mention are the best ways to do this.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-02 18:19:18]
User688525 - Posts: 284
Noted
[2024-12-13 18:24:58]
User688525 - Posts: 284
Hi Sierra/John,
I've solved the challenge of intersecting lines based on aggregated time frames.

For displaying AddLineUntilFutureIntersection values on the right-hand edge, how is this being achieved with the "Color Based On Alert Condition" study which the source code isn't available on? Is there a "hack/workaround" that can be used to display the value on the right-hand edge, but not the line as well which is what happens when the DrawValueLabel flag is set to TRUE?

Thanks
[2024-12-13 18:35:06]
John - SC Support - Posts: 39428
There is no option for displaying values with the "Color Bar Based on Alert Condition", at least not with the default settings. How are you setting up the Color Bar Based on Alert Condition to get a value displayed on the Right-Hand Edge?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-13 19:26:45]
User688525 - Posts: 284
Hi John,
The Color Bar Based on Alert Condition setting I am using are:

Settings and Inputs Tab:
Draw Extension Lines at Color Bar Value: Extend to Further Intersection

Subgraphs Tab:
Extension Lines (SG2):
Value Label (Checked)
Reverse Colors (Checked
Horizontal Align: Right Side Values Scale
Vertical Align: Center

The above displays values on the right side values scale.

Note, I meant displaying on the values scale (Right Side Values Scale), not the right edge.

Screenshots attached.
Date Time Of Last Edit: 2024-12-13 19:43:31
Private File
Private File
Private File
[2024-12-13 20:08:28]
John - SC Support - Posts: 39428
We see what you are referencing with the "Color Bar Based on Alert Condition" extension lines and there must be some special handling when the "Value Label" is being used.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-19 18:45:21]
User688525 - Posts: 284
Hi John,
Three questions:
1) Will the "Color Bar Based on Alert Condition" source code be made available?
2) Will support for multiple subgraphs (Study Subgraph Reference Value When True) be added to the study?
3) If built-in, how is the special handling working?

Thank you
[2024-12-19 19:26:34]
John - SC Support - Posts: 39428
1) No. There are some studies that require internal handling, and this is one of them.

2) We do not even know how this would work. What exactly are you wanting to do?

3) The label is handled separately in this case. It is not part of the "Extension Line until Future Intersection" code that is shared with the ACSIL function that does this.
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