Support Board
Date/Time: Tue, 22 Apr 2025 04:42:48 +0000
Flatten Order By Id
View Count: 51
[2025-04-14 10:03:02] |
kam2001 - Posts: 86 |
Hi, please correct me if i am wrong but my understanding is that i can cancel an open order using an InternaOrderlId via sc.CancelOrder(InternalOrderID) but if i want to flatten a filled order i have to use sc.FlattenPosition() which will Flattens the current Trade Position for the Symbol. My question is that if i have two different filled orders for the same Symbol how can i only flatten just one of them, is there a function that also takes InternalOrderId and flatten the filled order with given Id. Thanks
|
[2025-04-14 15:14:46] |
Sierra_Chart Engineering - Posts: 19290 |
This inherently does not make sense. If you want to reduce the quantity of a Trade Position, you simply submit an order to reduce the quantity of the Position by submitting an order of the opposite side of the Position, and of the quantity you want to reduce it by. Inherently there is no concept of flattening a prior filled order. This concept does not exist. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-04-14 15:15:43
|
To post a message in this thread, you need to log in with your Sierra Chart account: