Support Board
Date/Time: Sat, 27 Apr 2024 05:25:45 +0000
Post From: Send Attached Orders By Position
[2021-01-11 23:39:09] |
User184576 - Posts: 20 |
Hi, I believe I can only modify the price and quantity on the existing "attached" stop order? So, my thought was to cancel the existing hard stop and replace it with a new "attached" trailing stop, so that the relation between my targets and a stop is retained. Am I incorrect that only price & quantity can be modified. Can I convert a hard stop into a trailing stop? Any assistance is much appreciated. Thanks! //Cancel Hard Stop int Result = sc.CancelOrder(StopOrderID); //Initiate New Trailing Stop Order To Open Parent Order s_SCNewOrder OpenParentOrder; OpenParentOrder.InternalOrderID = OpenParentOrderID; OpenParentOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_TRAILING_STOP; float stopOffset = 50.0; OpenParentOrder.StopAllOffset = stopOffset; int Result2 = (int)sc.SellEntry(OpenParentOrder);; |