Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 08:56:49 +0000



Swing High and Low Simple Alerts

View Count: 380

[2023-12-06 19:40:23]
StephenL - Posts: 98
Hi guys,

I'm trying to Simple Alert Trigger for the Swing High and Low. Once price crosses past any line but I can't get it to work correctly.

I've screenshotted the code. ID2.SG1 is the Current Price Line.

Thanks
Date Time Of Last Edit: 2023-12-06 19:40:57
imageScreenshot 2023-12-06 193732.png / V - Attached On 2023-12-06 19:39:57 UTC - Size: 18.87 KB - 102 views
[2023-12-06 21:44:47]
John - SC Support - Posts: 36286
If this is being added to the Swing High and Low study, then SG3 does not do what you think it does. That subgraph is there just to define the colors and thickness of the extension lines, it does not hold any information, so you can not use it in an Alert.

Additionally, the subgraphs for the actual Swing High and Swing Low are only "true" (have a value) at the bar on which the arrow is displayed. Every other bar has a value of 0.

For what you are doing, you would need to use the Spreadsheet Study and first create a set of lines for each of the Swings in order to be able to test against them. Then you could create the alert to see if the Current Price Line crosses one of the lines.

Refer to the following:
Using the Spreadsheet Study
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-12-08 09:50:46]
StephenL - Posts: 98
okay, thanks John

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

Login

Login Page - Create Account