Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 07:50:20 +0000



Post From: Questions about OrderStatusCode

[2023-09-18 18:05:42]
WeroTrader - Posts: 46
thanks for the reply.

I'm trying to program a grid strategy.

The entire strategy is based on placing both sell and buy limit orders; at a specific distance from each other.

I start by placing two entry orders, a short and a long. Then I track each one through the order status so that, when (either of the two) has a filling status, I can place an exit order for it.

It happens that when I follow up on the second order (the outgoing one), its status returns as SCT_OSC_UNSPECIFIED even though they have been filled in, which causes the rest of my logic to stop working.