Login Page - Create Account

Support Board


Date/Time: Wed, 05 Feb 2025 12:56:44 +0000



Post From: How To Setup AUDIO ALERT when Moving Average Slope CHANGES

[2020-03-04 13:54:36]
Trader8188 - Posts: 20
How To Setup AUDIO ALERT when

MOVING AVERAGE – HULL SLOPE < 0 (TURNS DOWNWARD)

MOVING AVERAGE – HULL SLOPE > 0 (TURNS UPWARD)

What code do I input in the ALERT CONDITION AREA (ALERTS TAB in study settings)??

I followed the instructions below and inputted this but got an error message:

=OR(AND(SG1[0] > SG1[-1],SG1[-1] < SG1[-2]), AND(SG1[0] < SG1[-1],SG1[-1] > SG1[-2]))

ERROR MESSAGE >> ERROR #SYNTAX!

Simple Alert Condition Formula for Change of Slope of a Study Subgraph Line: To get an alert when a study Subgraph line changes its slope, then use this Simple Alert Condition Formula: =OR(AND(SG1[0] > SG1[-1],SG1[-1] < SG1[-2]), AND(SG1[0] < SG1[-1],SG1[-1] > SG1[-2])). This formula is meant for study Subgraph 1. This will work fine for any of the Sierra Chart Moving Average studies.

In the case where this formula is used on another study other than the study being referenced, like in the case of Color Bar Based on Alert Condition, it is necessary to change SG1 to include the study ID number. Refer to Referencing Other Studies for complete details.