Order type
The order type is how the order for this signal is sent to your broker. Leave it on Strategy default to use the order type set in the strategy's settings (its entry order type for entries, its exit order type for exits). Choose another to send this signal with that type instead, and only this signal: the strategy is unchanged. In a signal's JSON the field is orderType.
Which fields show depends on the type you choose. A stop market or stop limit asks for a Stop price, a limit or stop limit asks for a Limit price, and a trailing stop asks for how far behind the price it trails. A broker that does not support the type you choose falls back to the strategy's order type.
- Market (
market) fills at the best available current price. - Limit (
limit) fills at the limit price or better. - Stop Market (
stop) becomes a market order once the stop price is reached. - Stop Limit (
stop_limit) becomes a limit order once the stop price is reached. - Trailing Stop (
trailing_stop) is a stop that follows the price at a set distance, in dollars or as a percent, as it moves in your favor.
A Trailing Stop needs a trail distance: exactly one of trailAmount or trailPercent (see Trail by), and it can be used with the Buy, Sell, Add, Resize, Exit and Reverse actions, not with Breakeven or Cancel. A Breakeven signal moves a stop on an open position to its entry price (plus your Breakeven offset), so it can only be a Stop Market or Stop Limit order. Choosing Breakeven sets the order type to a stop for you.
Every order type in a signal's JSON:
Market:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "market"
}
Limit:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100
}
Stop Market:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "stop",
"stopPrice": 100
}
Stop Limit:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "stop_limit",
"stopPrice": 100,
"limitPrice": 99
}
Trailing Stop by a dollar amount, or by a percent:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "trailing_stop",
"trailAmount": 1
}
{
"ticker": "AAPL",
"action": "buy",
"orderType": "trailing_stop",
"trailPercent": 1
}
Breakeven (a stop market or stop limit order type is required, and the prices come from the position's average entry, so you do not send them):
{
"ticker": "SPY",
"action": "breakeven",
"orderType": "stop"
}
{
"ticker": "SPY",
"action": "breakeven",
"orderType": "stop_limit"
}
Without an orderType, the strategy's order type is used:
{
"ticker": "AAPL",
"action": "buy"
}
Ready to put Order type to work?
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.