Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 20:51:45 +0000



Triggered Stop order in ACSIL

View Count: 522

[2023-07-06 02:01:24]
User769783 - Posts: 182
Is there an example of using a triggered stop order type in ACSIL? I do not want to use the trading window because my entry order prices are not standard prices. Also, the price will be changing too fast to enter manually. Do I have to access the trade window programmatically, and then set the prices? Any feedback is greatly appreciated, thanks.
[2023-07-06 10:41:57]
Sierra_Chart Engineering - Posts: 17198
We will put together an example for you. All of the relevant variables are set from the study function.
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
Date Time Of Last Edit: 2023-07-06 10:42:04
[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
[2023-07-07 02:54:37]
User769783 - Posts: 182
So this will act as a market order? Do I have to change the sct_ordertype? I want to send a limit order only once a trigger price has been touched. Apologies if my intention isn't clear.
[2023-07-07 11:07:32]
Sierra_Chart Engineering - Posts: 17198
We apologize. We thought you were referring to Triggered Trailing Stop. That is not what you are asking about.

What you are looking for is this order type:
s_SCNewOrder NewOrder;
  NewOrder.OrderQuantity = 1;
  NewOrder.OrderType = SCT_ORDERTYPE_TRIGGERED_LIMIT;
  NewOrder.Price1 = 0;//set this to the Limit price
  NewOrder.Price2 = 0;//set this to the Trigger price
  sc.BuyEntry(NewOrder, sc.ArraySize - 1);//This can also be SellEntry

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
Date Time Of Last Edit: 2023-07-07 11:08:10
[2023-07-10 00:27:12]
User769783 - Posts: 182
Its not waiting to hit the trigger price, then come up to Limit order. It is entering upon hitting the Limit order. Can you explain why, and how to fix this. Thanks
[2023-07-10 08:03:16]
Sierra_Chart Engineering - Posts: 17198
No we cannot explain why because we do not know any details at all.

Here is the documentation for that Order Type:
Order Types: Triggered Limit

We recommend working with it in Trade Simulation Mode to understand how it works:
Trade Simulation
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

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

Login

Login Page - Create Account