Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 20:39:36 +0000



EXAMPLE

View Count: 1358

[2014-01-30 19:19:15]
User82615 - Posts: 106
COULD ANYBODY TELL ME WHERE COULD I FIND AN EXAMPLE OF A TRADING SYSTEM PROGRAMMED WITH ACSIL THAT USES STOP OR TRAILING STOP ORDERS , NOT ONLY MARKET OR ATACHED ORDERS THAT ARE THE ONLY EXAMPLES THAT ARE IN THE FILES IN SIERRA CHARTS OR IN THE TABLE OF CONTENTS.

THANK YOU

(P.D. IS THERE ANY PLACE WHERE IS POSIBLE TO SEE MORE EXAMPLES OF TRADING SYSTEMS PROGRAMMED IN ACSIL OTHER THAT THE FILES IN SIERRACHARTS?)
[2014-02-04 02:54:21]
Sierra Chart Engineering - Posts: 104368
We can provide you an example for trailing stops. Did you just want a single order as a trailing stop or did you want a trailing stop as one of the Attached Orders attached to a main/parent order?

Please do let us know and we will happily put this together.
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-04 02:59:01]
Tonkadad - Posts: 235
I would also be interested in this. If it is not to much trouble could you do one with each? Just started with your intra-day futures data feed, working very well, thanks for the hard work.
[2014-02-25 01:29:54]
Sierra Chart Engineering - Posts: 104368
We apologize for the long wait.

We have finally created the examples here:

    {

      // 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);
    }

    {

      // Trailing Stop Attached Order
      // The trailing offset is set by NewOrder.Stop1Offset

      // Create an s_SCNewOrder object.
      s_SCNewOrder NewOrder;
      NewOrder.OrderQuantity = 2;
      NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
      NewOrder.AttachedOrderStop1Type = SCT_ORDERTYPE_TRAILING_STOP;
      NewOrder.Stop1Offset = 10 * sc.TickSize;
      sc.BuyOrder(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:31:53]
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:

Login

Login Page - Create Account