Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 19:30:37 +0000



Post From: Apparent issue with Swing H/L study & Alert Conditions

[2021-07-25 21:49:12]
BenjaminR - Posts: 168
I have an alert condition w/ multiple conditions that works perfectly for 'long' signals; however, it doesn't function correctly at all for 'short' signals. There are no errors in the formula. I've spent hours trying to identify the problem, & it comes down to the Swing High/Low study. I have created a simplified chart & alert condition to illustrate the problem. I have attached a screenshot of a 1 min. chart, with a 10 Simple Moving Average, a Swing High/Low study, & two alert conditions- one for the low above the SMA at a swing low, & one for a high below the SMA at a swing high.

The color bar is blue for above, & pink for below. The blue bars in the attached chart image are enclosed in a rectangle, for easy identification. The green & red arrows are the Swing Highs & Swing Lows, respectively.

As you can see, when there the alert condition is true for the 'above' color bar study, only one bar is colored blue. When the alert condition is true for the 'below' color bar study, multiple bars are colored. On the study & chart where I am having a problem creating an accurate 'short' signal, I use arrows, & receive multiple arrows. This is simplified for the support ticket.

ID1.SG1 = 10 Simple Moving Average
ID2.SG1 = Swing High
ID2.SG2 = Swing Low

The alert conditions for below are:

AND(ID2.SG1<ID1.SG1,H<ID1.SG1)

The alert conditions for above are:

AND(ID2.SG2>ID1.SG1,L>ID1.SG1)

http://www.sierrachart.com/image.php?Image=1627249601211.png
Date Time Of Last Edit: 2021-07-25 21:50:57