Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 14:30:25 +0000



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

[2021-07-25 23:30:40]
Sawtooth - Posts: 3993
The Swing High And Low study will output a zero at bars between those with an arrow, and a price value at bars with an arrow.
The 'above' formula is only true at an arrow because the Swing L is always >0 when the L is above the SMA, so the intermediate zeros don't affect the result.
The Swing H is zero between arrows so the 'below' formula is true every time the H is below the SMA, which is more often than at each arrow.

So that the 'below' alert only occurs at a Swing H arrow, add a condition to the 'below' formula that the Swing H must also be > zero:
=AND(ID2.SG1<ID1.SG1,H<ID1.SG1,ID2.SG1>0)

Suggestion:
When there is an alert issue that appears to make no sense, add the Spreadsheet Study study so that you can see exactly what the respective studies will output at each bar.
Each spreadsheet row is a chart bar, and the current bar is in row 3 with earlier bars in rows below.
Study outputs are in columns AA and above.