Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 16:27:06 +0000



Post From: TradeOrder not matching PositionData

[2025-02-27 21:53:41]
LTSys - Posts: 68
Hi,

Got an issue with the code saying there are no orders open when there is an open order.

Running on Sim1 account here are the steps to replicate this issue...

1. Buy 10,000 EURUSD with attached stop/limit orders.

2. Edit attached stop/limit orders to close 1,000.

3. Move stop/limit orders close to market so they get hit.

4. When stop or limit is hit the order will have 9,000 remaining but...

Calling sc.GetOrderForSymbolAndAccountByIndex(...) returns no orders.

Calling sc.GetTradePositionForSymbolAndAccount(...) returns correct position of 9,000.

Please see attached screen shot. You can see the order on the chart but Trade Orders Window has no orders.

Shouldn't calling sc.GetOrderForSymbolAndAccountByIndex(...) return the open order?

Could support confirm if this is a bug?

TIA
Date Time Of Last Edit: 2025-02-27 22:19:43
imageCapture.JPG / V - Attached On 2025-02-27 21:52:09 UTC - Size: 78.15 KB - 28 views