Support Board
Date/Time: Fri, 07 Feb 2025 09:40:25 +0000
Attached orders with BitMex
View Count: 722
[2020-05-18 21:29:33] |
User980227 - Posts: 7 |
Hi Sierra Chart team, I am using attached orders with BitMex. Once a parent order is filled, the attached stop loss and profit target become active. Let's say a very rare event occurs, such as I manually cancel the stop loss via BitMex. Is there a way of identifying this situation within SC where I have an open position with a missing attached stop? So far I have failed attempting to identify a change in order status with below lines. s_SCTradeOrder TradeOrderData;
int OrderStatusStop = sc.GetOrderByOrderID(StopInternalOrderID, TradeOrderData); sgStatusStop[sc.Index] = (float)OrderStatusStop; Thank you very much for your help. Sebastian |
[2020-05-19 19:17:23] |
Sierra Chart Engineering - Posts: 104368 |
If there is a status change, the study function will be called and you need to access the status through this member variable: Automated Trading From an Advanced Custom Study: [Type: integer] OrderStatusCode And if the order is not found it, it means it no longer exists. 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 Date Time Of Last Edit: 2020-05-19 19:18:08
|
[2020-05-26 12:29:32] |
User980227 - Posts: 7 |
Thank you for pointing me in the right direction. Other question please, I have the following options enabled : - (1) "Auto-Send Market Order on Rejected Stop Attached Order" - (2) "Reactivate Attached Order when Rejected Modification During Fill" I understand when an order is rejected, it gets the status of SCT_OSC_ERROR. But when (1) or (2) happen, does the order status change or does it remain SCT_OSC_ERROR ? |
[2020-05-29 15:51:53] |
Sierra Chart Engineering - Posts: 104368 |
1. Stays as SCT_OSC_ERROR 2. Will change to current status of reactivated order. 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: