Support Board
Date/Time: Tue, 22 Apr 2025 00:39:12 +0000
Post From: Auto trade strat only submitting once
[2025-02-22 21:42:51] |
Letmein - Posts: 2 |
I created a C++ strat that submits a sell limit order if price is below vwap and under a price that has a multiple of 10 with a 6 pt target price. The strat works but for some reason after the target gets hit a new order never gets submitted. Looking in the message log it says "Short position exists. No new sell order placed." even though there is no orders open. If I manually click clear trade simulation orders and data it then sends an order. So what am I missing in the code to have the script do this automatically?
|