Support Board
Date/Time: Mon, 25 Nov 2024 20:43:02 +0000
TRAILING STOP ORDER USING ACSIL
View Count: 1789
[2014-01-30 17:22:39] |
User82615 - Posts: 106 |
Hello , Can anybody send me an example on how to program a trailing stop order using ACSIL please? Thank you very much |
[2014-01-30 19:08:00] |
Sierra Chart Engineering - Posts: 104368 |
We will put together an example. Did you want the trailing stop order to be the main order or to use as an Attached order to a main/parent order?
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:38] |
Sierra Chart Engineering - Posts: 104368 |
{
// 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:45:16] |
User82615 - Posts: 106 |
THAK YOU VERY MUCH FOR YOUR HELP AND YOUR HARD WORK
|
To post a message in this thread, you need to log in with your Sierra Chart account: