Login Page - Create Account

Support Board


Date/Time: Sun, 07 Sep 2025 19:27:27 +0000



[Programming Help] - plotting an arrow up or down based on angle study on two assets

View Count: 213

[2025-08-05 04:33:11]
User38682 - Posts: 23
I'm attaching a chart that I have been trying to get to plot an up arrow when using ID 24 and ID 25 "color based on Alert Condition" using the angle study when both assets have a greater than 45 degree angle, or -45 degree angle. ID 21 and ID 22 are the assets that are plotting correctly, however can't get an audio alert or a visual alert when both conditions are true. The logic i'm using is: =OR(AND(ID26.SG1 > 45, ID27.SG1 > 45), AND(ID26.SG1 < -45, ID27.SG1 < -45))

https://www.sierrachart.com/image.php?Image=1754367568719.png
[2025-08-05 15:21:18]
John - SC Support - Posts: 41652
The image you supplied shows the current angle as being -8.379 and 0.179. They do not show that they were anywhere near 45 degrees, therefore the bars would not be colored.

Do you have a part of the chart where the angles were 45 degrees and the bars were not colored?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-08-07 22:42:23]
User38682 - Posts: 23
https://www.sierrachart.com/image.php?Image=1754601603285.png
[2025-08-08 13:52:41]
John - SC Support - Posts: 41652
Again, the angles are nowhere near 45 degrees. The range of the scale for those studies is showing from -2.00 to 3.00, so none of the data in the visible charting area is even close to 45 degrees.

You need to keep in mind that you can not visualize the angle from what you see on the screen. The angle is going to be determined based on changes in the price over time, where the time is per bar, so a change from one bar to the next is a change in time of 1 unit. Since you can change how the time scale is displayed, this affects how you visualize the graph.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-08-08 20:33:37]
User38682 - Posts: 23
it appears your'e not looking at the chart angle study? The study I'm referring to is in Scale 3 the dotted lines are clearly >45 degrees, orange dotted line is .671 and
dotted blue line value is 2.148. Is that not what I should be alerted on?
[2025-08-08 21:00:43]
John - SC Support - Posts: 41652
We are looking at the Angle Study in Region 3 from your image. The connecting lines in that region does not mean anything. That is not a reflection of the angle of the study that you are wanting to view. You need to look at the actual value at each bar. For instance, the angles of the studies at the current bar are 0.671 and 2.148.

Also, as we have stated previously, if you look at the range of the scale, the values for the angle studies within the visible view are between the values of -2.00 and 3.00.

Refer to the following for more information on the Study Angle study:
Study Angle
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-08-09 21:07:39]
User38682 - Posts: 23
Then could you help me configure my alert correctly please?
[2025-08-18 12:31:44]
User38682 - Posts: 23
Since no response in over a week? Does that mean you can't help me?
[2025-08-18 21:39:03]
John - SC Support - Posts: 41652
You need to determine what you want to view and how you want to view it. The Input on the "Study Angle" for "Value per Point" can significantly change how the numbers will work out. But you need to determine what it is that works for what you are looking for. We really can not help you, as you have the control over what to do.

We recommend reading through this section, which is referenced from the Study Angle documentation:
Chart Drawing Tools: Drawing a Line with a Specific Angle or Slope

You need to understand how that "Value per Point" works in order to get the angles as you want them and then adjust your alert based on how those angles are displaying.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-08-18 22:44:40]
Sawtooth - Posts: 4261
The Study Angle study's output ranges from -100 to +100.
Positive numbers indicate an upsloped line of the referenced study, negative a downsloped line, both relative to the Length setting.
There is no correlation to degrees, and definitely not to visual angles.

The Study Angle's output can be downsloped while the referenced line is upsloped, and vice versa
This happens when the slope of the referenced line decreases but doesn't change direction.

You might want to alert when the Study Angle study increases/decreases by a certain amount, say 1.0, from the previous bar, like this:
=OR(AND(ID26.SG1-ID26.SG1[-1] > 1.0, ID27.SG1-ID27.SG1[-1] > 1.0), AND(ID26.SG1[-1]-ID26.SG1 > 1.0, ID27.SG1[-1]-ID27.SG1 > 1.0))
Date Time Of Last Edit: 2025-08-18 22:48:03

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

Login

Login Page - Create Account