trade29.sc.constants.OrderType#
- class trade29.sc.constants.OrderType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
An enumeration of order types.
See the Sierra Chart docs for more detail on what each order type means.
Attributes
MARKET
A market order will fill at the current market price. No other price inputs are required when submitting one. A market order will have the fastest execution of all orders.
LIMIT
A limit order will buy or sell at a specific price. A buy limit order can only be executed at the limit price or lower, and a sell only at the limit or higher. When using with the
submit_order()
method,price1
needs to be provided as the desired limit.STOP
A stop order will buy or sell once the price of the symbol has reached a specific price. When that price is reached, the stop order becomes a market order. When using with the
submit_order()
method,price1
needs to be provided as the desired stop price.STOP_LIMIT
A Stop-Limit order is an order to buy or sell that combines the features of a Stop order and a Limit order. Once the stop price is reached, the Stop-Limit order becomes a Limit order to buy or to sell at the specified price. When using with the
submit_order()
method,price1
needs to be provided as the desired stop price andprice2
can to be set as the limit price. In the case whereprice2
is not set, then the limit price will automatically be calculated according to the Stop-Limit Order Offset > Primary Settings setting in the trade window.