Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: strategy · Entries: 9
strategy.commission_cash_per_contract (constant)
Definition
A commission type for the commission_type argument of strategy(): commission_value is an amount, in the account currency, charged per contract traded.
Type
const string
Example
strategy.commission_cash_per_order (constant)
Definition
A commission type for the commission_type argument of strategy(): commission_value is a fixed amount, in the account currency, charged for each trade opened and for each trade closed. An order that closes several open trades, or part of one, is charged once for each trade it closes.
Type
const string
Example
strategy.commission_percent (constant)
Definition
A commission type for the commission_type argument of strategy(): commission_value is a percentage of each order’s value.
Type
const string
Example
strategy.fixed (constant)
Definition
A position-size type for the default_qty_type argument of strategy(): default_qty_value is a fixed number of contracts, shares or units per order.
Type
const string
Example
strategy.long (constant)
Definition
The long direction, for the direction argument of strategy.entry and strategy.order: buy to open or add to a long position.
Type
const string
Example
strategy.oca_cancel (constant)
Definition
A one-cancels-all type, for the oca_type argument of strategy.entry and strategy.order. When one order of the group fills, the other orders of the same group are cancelled.
Type
const string
Example
strategy.oca_none (constant)
Definition
A one-cancels-all type, for the oca_type argument of strategy.entry and strategy.order. The order is not part of a one-cancels-all group; it is filled independently of other orders.
Type
const string
Example
strategy.oca_reduce (constant)
Definition
A one-cancels-all type, for the oca_type argument of strategy.entry and strategy.order. When one order of the group fills, the quantity of the other orders of the same group is reduced by the filled quantity.
Type
const string
Example
strategy.short (constant)
Definition
The short direction, for the direction argument of strategy.entry and strategy.order: sell to open or add to a short position.
Type
const string
Example