Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 19:55:37 +0000



[Programming Help] - Simple price crossing moving avg alert

View Count: 1479

[2020-12-23 19:49:14]
HeyUgly - Posts: 247
so ive got moving avg on chart
i go to study settings / Alerts

how can i trigger an alert for a simple price crosses mov avg to trigger i dont see it here in the options


Alert When Moving Average Crosses over Close Price of Bar: Enter the following Alert Condition Formula on a Moving Average study: =CROSSOVER(SG1, C).
Alert When Moving Average Crosses over Price Bar: Enter the following Alert Condition Formula on a Moving Average study: =OR(CROSSOVER(SG1, H) <> 0, CROSSOVER(SG1, L) <> 0).


is it one of those? i just want it to trigger when price crosses said mov avg.
[2020-12-23 21:12:12]
John - SC Support - Posts: 36277
The first one gives you what you are asking for, but it will go true if the crossing is from above or from below. If you want a specific crossing direction, then you would want to use either CROSSFROMBELOW or CROSSFROMABOVE. Refer to the information here and the item after it:
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#CROSSFROMABOVE_Function
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-12-23 22:17:01]
HeyUgly - Posts: 247
awesome i got it thank you, is there a pop up option when triggered? or do i have to have that alert window open?
[2020-12-23 22:47:23]
John - SC Support - Posts: 36277
Refer to the following:
General Settings Window: Add Alert to Compact Alert Popup Window (Global Settings >> General Settings >> Alerts >> Additional Settings)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-13 20:36:53]
User584084 - Posts: 262
You have an extra left parenthesis =AND((CROSSOVER... Replace with =AND(CROSSOVER...
Date Time Of Last Edit: 2024-02-13 20:41:18
[2024-02-13 20:54:10]
User14953 - Posts: 236
DOH!

Thank you '84

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

Login

Login Page - Create Account