Skip to main content

Interface: PreOrder

Charting Library.PreOrder

Output value of the order ticket and input value of the broker's place order command This info is sufficient to place an order

Hierarchy

Properties

currentQuotes

Optional currentQuotes: Required<Pick<TradingQuotes, "ask" | "bid">>

Current Quotes


customFields

Optional customFields: CustomInputFieldsValues

Custom input fields

Inherited from

OrderTemplate.customFields


duration

Optional duration: OrderDuration

Duration or expiration of an order

Inherited from

OrderTemplate.duration


isClose

Optional isClose: boolean

It is set to true, if the order closes a position.


limitPrice

Optional limitPrice: number

Order limit price

Inherited from

OrderTemplate.limitPrice


qty

qty: number

Order quantity

Overrides

OrderTemplate.qty


side

side: Side

order / execution side

Overrides

OrderTemplate.side


stopLoss

Optional stopLoss: number

Order Stop loss (Brackets)

Inherited from

OrderTemplate.stopLoss


stopPrice

Optional stopPrice: number

Order stop price

Inherited from

OrderTemplate.stopPrice


stopType

Optional stopType: StopType

Type of Stop Order

Inherited from

OrderTemplate.stopType


symbol

symbol: string

Symbol identifier

Overrides

OrderTemplate.symbol


takeProfit

Optional takeProfit: number

Order Take Profit (Brackets)

Inherited from

OrderTemplate.takeProfit


trailingStopPips

Optional trailingStopPips: number

Order Trailing stop (Brackets)

Inherited from

OrderTemplate.trailingStopPips


type

type: OrderType

Order Type

Overrides

OrderTemplate.type