Support Board
Date/Time: Mon, 25 Nov 2024 20:20:34 +0000
HOW TO PROGRAM A TRAILING STOP ORDER USING ACSIL
View Count: 2118
[2014-01-29 13:22:19] |
User82615 - Posts: 106 |
Hello can anybody tell me where can I see an example on how to program (in a trading system) a trailing stop order using ACSIL, because all the examples in the files only have attached order examples. Thank you very much |
[2014-01-29 17:54:02] |
Sierra Chart Engineering - Posts: 104368 |
Refer to the documentation here: http://www.sierrachart.com/index.php?l=doc/doc_ACSILTrading.html#s_SCNewOrder 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 |
[2014-02-25 01:19:05] |
Sierra Chart Engineering - Posts: 104368 |
Here is the example: {
// Trailing stop order. This has no Attached Orders. // The trailing offset is the difference between the current market price for the Symbol of the chart the trading study is applied to // and the price set by NewOrder.Price1 // Create an s_SCNewOrder object. s_SCNewOrder NewOrder; NewOrder.OrderQuantity = 2; NewOrder.OrderType = SCT_ORDERTYPE_TRAILING_STOP; NewOrder.Price1 = sc.BaseData[SC_LAST][sc.Index] - 10*sc.TickSize; sc.SellOrder(NewOrder); } 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 |
[2014-02-25 11:44:01] |
User82615 - Posts: 106 |
THANK YOU VERY MUCH FOR YOUR HELP
|
To post a message in this thread, you need to log in with your Sierra Chart account: