Login Page - Create Account

Support Board


Date/Time: Thu, 18 Apr 2024 19:18:27 +0000



MOVE TO BREAK EVEN ORDERS

View Count: 2791

[2014-02-21 17:16:19]
User82615 - Posts: 106

HELLO I'M TRYING TO CREATE A TRADING SYSTEM WITH ACSIL , AND I WANT TO INCLUDE ATTACHED ORDERS WITH "MOVE TO BREAKEVEN FOR STOP " OPTION AND WITH THE BREAKEVEN TYPE OF ORDER : "OFFSET IN TICKS TRIGGERED".

I TRYED AND I CAN PROGRAM ORDERS WITH THE TYPE "TRAIL TO BREAKEVEN " BECAUSE THERE IS AN EXAMPLE IN THE TRADING SYSTEMS IN THE FILES BUT NOT WITH "OFFSET IN TICKS TRIGGERED.

COULD ANYBODY HELP ME WITH THIS OR SEND ME AN EXAMPLE OF HOW TO PROGRAM WITH ACSIL THIS KIND OF ORDERS?

THANK YOU VERY MUCH
[2014-02-21 19:26:18]
User40117 - Posts: 56
http://www.sierrachart.com/index.php?l=doc/doc_ACSILTrading.html#Price1
[2014-02-21 20:23:23]
Sierra Chart Engineering - Posts: 104368
We will work on an example.
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-24 18:25:02]
User82615 - Posts: 106
COULD YOU PLEASE PUT UP AN EXAMPLE

THANK YOU VERY MUCH
[2014-02-24 22:11:06]
Sierra Chart Engineering - Posts: 104368
We will be getting to this today.
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 00:45:52]
Sierra Chart Engineering - Posts: 104368
    {


      //Move to breakeven on Stop Attached order

      // Create an s_SCNewOrder object.
      s_SCNewOrder NewOrder;
      NewOrder.OrderQuantity = 2;
      NewOrder.OrderType = SCT_ORDERTYPE_MARKET;

      //Define the Attached Orders to be attached to the main Market order
      //Target 1
      NewOrder.Target1Offset = 10*sc.TickSize;
      NewOrder.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT;

      //Common Stop
      NewOrder.StopAllOffset = 10*sc.TickSize;
      NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_STOP;


      // Set up a move to breakeven action for the common stop.

      // This is a common setting and applies to all Stop Attached Orders set on the main order.
      NewOrder.MoveToBreakEven.Type=MOVETO_BE_ACTION_TYPE_OFFSET_TRIGGERED;

      //After 5 ticks of profit, the stop order will be moved to breakeven
      NewOrder.MoveToBreakEven.TriggerOffsetInTicks= 5;
      NewOrder.MoveToBreakEven.BreakEvenLevelOffsetInTicks= 0;

      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:41:45]
User82615 - Posts: 106
THANK 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:

Login

Login Page - Create Account