Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 14:57:25 +0000



[Programming Help] - Attached Orders

View Count: 654

[2018-04-23 10:54:39]
User39772 - Posts: 311
When I use attached orders like:

NewOrder.Stop1Offset = Value1;
NewOrder.Target1Offset = Value2;

Other exit conditions that could happen between Value1 and Value2 and are verified via my code
are ignored. Also Exit Arrown are not drawn in the Chart, only entry arrows.

It would help to get some hints here if it is possible to have these attached orders,
Stop and/or Target and additional other exit criterieons.
[2018-04-23 18:30:22]
Sierra Chart Engineering - Posts: 104368
Make sure you have this automated trade variable set to True:
Automated Trading Management: CancelAllWorkingOrdersOnExit
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
[2018-04-24 10:39:31]
User39772 - Posts: 311
Thank you that helped for attached orders.

I have a similar problem now with non attached trailing orders like:

s_SCNewOrder NewOrder;
NewOrder.OrderQuantity = 2;
NewOrder.OrderType = SCT_ORDERTYPE_TRAILING_STOP;
NewOrder.Price1 = sc.BaseData[SC_LAST][sc.Index] - 10*sc.TickSize;

My BuyExit/SellExit conditions seem to have a lower priority than the trailing stop and are not executed.
Is there a similar solution available or do I have tu use an attached trailing stop to solve that ?

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

Login

Login Page - Create Account