Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 20:50:57 +0000



Post From: Triggered Stop order in ACSIL

[2023-07-06 10:57:11]
Sierra_Chart Engineering - Posts: 17198
Here is the code example:

s_SCNewOrder NewOrder;
  NewOrder.OrderQuantity = 1;
  NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
  //NewOrder.Price1 = 0;
  NewOrder.Target1Offset = 20 * sc.TickSize;
  NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;
  NewOrder.AttachedOrderStop1Type = SCT_ORDERTYPE_TRIGGERED_TRAILING_STOP_3_OFFSETS;

  NewOrder.Stop1Offset = 20 * sc.TickSize;
  NewOrder.AttachedOrderStop1_TriggeredTrailStopTriggerPriceOffset = 10 * sc.TickSize;
  NewOrder.AttachedOrderStop1_TriggeredTrailStopTrailPriceOffset = 5 * sc.TickSize;

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, use the Teton service:
Sierra Chart Teton Futures Order Routing