Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 16:48:51 +0000



Post From: SOLVED Issue with function sc.GetOrderForSymbolAndAccountByIndex(...)

[2025-02-24 21:01:31]
LTSys - Posts: 68
Look like the function doesn't like the trade account parameter.

If I change this...

while(sc.GetOrderForSymbolAndAccountByIndex(EMPTY_STRING, tradeAccount, orderIndex, order) != SCTRADING_ORDER_ERROR)

To a hard coded trade account it works.

while(sc.GetOrderForSymbolAndAccountByIndex(EMPTY_STRING, "Sim1", orderIndex, order) != SCTRADING_ORDER_ERROR)

This isn't a solution but at least narrowed it down to where the problem is.
Date Time Of Last Edit: 2025-02-24 21:01:52