Login Page - Create Account

Support Board


Date/Time: Mon, 10 Feb 2025 01:51:07 +0000



Post From: How to enter two orders(no contracts)at the same time but with different targets/stop/trai

[2020-08-12 22:52:48]
User712062 - Posts: 14
Can somebody please assist me on how to enter two orders (no contracts)at the same time but with different targets,stop trailing etc. I do have 1 block working fine see bellow the block structure NewOrder.
s_SCNewOrder NewOrder;
NewOrder.OrderQuantity
NewOrder.OrderType
NewOrder.TimeInForce
NewOrder.Target1Offset
NewOrder.Target2Offset
NewOrder.StopAllOffset  
NewOrder.TriggeredTrailStopTriggerPriceOffset
NewOrder.MoveToBreakEven.Type = MOVETO_BE_ACTION_TYPE_OCO_GROUP_TRIGGERED;

I thought that declaring the new bracket with a different name like s_SCNewOrder NewOrder1 sierra would accept that as a different order block but it does not . I have try a variation but the further I got was to trigger the other entry but no child's or limit orders as the first one.So the first order perform as it suppose to but the new entry block don't . I need assistance.Regards. and Thanks in advance.
PD:yes I am using sc.AllowMultipleEntriesInSameDirection = true;sc.SupportTradingScaleIn = 1;