Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 12:43:20 +0000



Post From: TRAILING STOP TRIGGER Help

[2018-04-14 22:33:44]
Sierra Chart Engineering - Posts: 104368
In regards to this, understand that these variables set an actual price value and not an offset in points.
order.Target2Price = target02_;
order.Stop2Price = stop02_;


t1 - Target for the first order as absolute value in points
t2 - Target for the attached order as absolute value in points
s1 - stop for the first order as absolute value in points
s2 - stop for the attached order as absolute value in points

All of these are describing Attached Orders related to the main parent order price specified with:
Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::Price1


You did not specify this price or order type in the code above.

They are all Attached Orders. An attached order cannot have a target or a stop. They themselves are a target and stop. So it would appear as though you have a misunderstanding.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-04-15 04:13:02