Login Page - Create Account

Support Board


Date/Time: Wed, 11 Jun 2025 02:03:34 +0000



Post From: Sample code for sc.SetAttachedOrders

[2022-03-02 16:48:01]
User99735 - Posts: 234
SC Engineering Support,
The example given in Posts: 18 with OrderType = SCT_ORDERTYPE_OCO_LIMIT_STOP, works for the 'current/default' account.

If the TradeAccount is set to some other account, function sc.BuyOrder() / sc.BuyOrder() returns error -8: "Unsupported Order Type".

Please advise.
Date Time Of Last Edit: 2022-03-02 18:32:27