Login Page - Create Account

Support Board


Date/Time: Wed, 12 Mar 2025 11:42:50 +0000



Post From: ACSIL: manual looping and specific order types

[2022-05-05 04:26:44]
BrMa - Posts: 80
Dear ladies and gentlemen,

your documentation at
Automated Trading From an Advanced Custom Study: Order Type Constants
specifically mentions, that orders of type SCT_ORDERTYPE_OCO_LIMIT_STOP and SCT_ORDERTYPE_OCO_LIMIT_STOP_LIMIT need to be submitted using sc.BuyOrder() or sc.SellOrder(), whereas most of the others (besides specific OCO-orders) seem to work with either sc.BuyOrder(), sc.BuyEntry(), sc.SellOrder() or sc.SellEntry().

Refering to your documentation at
Automated Trading From an Advanced Custom Study: Buy Entry | Buy Order and Automated Trading From an Advanced Custom Study: Sell Entry | Sell Order
sc.BuyOrder() and sc.SellOrder() work with automatic looping only.

My question:
as I'm using manual looping - how can I submit orders of type SCT_ORDERTYPE_OCO_LIMIT_STOP and SCT_ORDERTYPE_OCO_LIMIT_STOP_LIMIT?


Thanks for your support!