Support Board
Date/Time: Sat, 04 Jan 2025 08:12:20 +0000
Post From: Capture rejected OCO condition with Transact
[2016-05-25 14:28:25] |
flyboy615 - Posts: 56 |
Hi, Had a situation where the OCO was rejected after the initial entry order was filled. The OCO is controlled by the Sierra dome with targets and stops defined by a TWConfig file. This effectively left the filled order sitting naked, no stop and no target. The initial order as submitted correctly and it was only on the fill of the initial order where I got the error. Is there a way that I can capture this kind of error from within the automated trade study? I would like to flatten the position when it occurs again to limit the risk should I not notice it right away. I guess I can check to see of there are targets or stops existing by using getNearestStop. Is there a better way? Thanks |