Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 22:50:48 +0000



[Programming Help] - Market Structure Alert Buy and Sell Signal Help

View Count: 605

[2023-01-11 02:53:40]
OpNFreeK - Posts: 2
In simple terms I am testing out some things, and I want to set an alert in the "Trading System Based On Alerts Condition". With that being said, I am using study "Market Structure MSL/MSH" and would like to send a buy order only when the study plots a "HL", and a sell order when it plots a "LH". I currently have typed "=HL(C.ID2.SG1) as it is all I can come up with from a video. Obviously that doesn't work. Any help is appreciated.
[2023-01-11 15:35:49]
John - SC Support - Posts: 36350
You can not make an alert based on the labels themselves. You have to recreate the situation that creates those labels in the first place.

The code for this study can be found in Studies7.cpp. You would need to look through the code to determine how the labels are determined and then create your alert based on that information.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-01-11 16:16:14]
Sawtooth - Posts: 4122
The MSH/HL is SG1 and the MSL/LH is SG2, so try this:
HL:
=ID1.SG1>0
LH:
=ID1.SG2>0
-where ID1 is the Market Structure MSL/MSH study; edit as needed.

Note: You'll need two instances of the Trading System Based On Alert Condition study, one for each direction.

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

Login

Login Page - Create Account