DefaultOrderQuantity

DataSeriesConfigurable

Description

Change order changes an order.

Default quantity defines the amount to be used in a strategy. The default quantity is set within the OnInit() method.

Usage

ReplaceOrder(IOrder iOrder, int quantity, double limitPrice, double stopPrice)

Parameter

An int value containing the amount (stocks, contracts, etc.)

Example

protected override void OnInit()
{
DefaultOrderQuantity = 100;
}

Last updated