Stop loss
The Stop loss setting attaches a stop loss leg to every entry, as a bracket. Choose its order type with the buttons (or Off to attach none), and for a stop how far it is from the entry with the %, $ or PnL buttons. The order type controls the order type of the stop loss leg that is sent to the broker with your entry order. You can also control this from your webhook with the stopLoss.type parameter. The allowed values for this field are:
stop- A stop market order.stop_limit- A stop limit order.trailing_stop- A trailing stop order.
Stop Market
A stop market order is an order that is converted to a market order when the stop price is reached. This means that the order will be executed at the best available price after the stop price is reached. This type of order is typically used to limit losses on a position.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"stopPrice": 90
}
}
You can also calculate relative stop loss stop prices using the stopLoss.amount or stopLoss.percent field. Here is an example of a stop loss that is $10 below the entry price and would be calculated as 90 in the above example:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"amount": 10
}
}
Or use a percentage instead of a fixed dollar amount:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"percent": 10
}
}
Stop Limit
A stop limit order is an order that is converted to a limit order when the stop price is reached. This means that the order will be executed at the limit price or better after the stop price is reached. This type of order is typically used to limit losses on a position while also controlling the price at which the order is executed. This order has a lower likelyhood of being filled compared to a stop market order so usually it is not desired for stop losses.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop_limit",
"stopPrice": 90,
"limitPrice": 89
}
}
Trailing Stop
A trailing stop order is an order that is adjusted as the price of the security moves in your favor. The stop price is set as a percentage or dollar amount below the current market price, and is adjusted as the price of the security moves up. This type of order is typically used to lock in profits on a position while allowing the position to continue to run if the price moves in your favor.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailAmount": 5
}
}
You can also represent your trailing stop in terms of a percentage instead of a fixed dollar amount:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "trailing_stop",
"trailPercent": 5
}
}
How far the stop is
For a stop or stop limit, the stop price is worked out from the entry price:
- Percent - a relative percentage. For example, 10% and an entry at
$100makes the stop price$90. In a webhook:stopLoss.percent. - Dollar amount - a relative dollar amount. For example, $10 and an entry at
$100makes the stop price$90. In a webhook:stopLoss.amount. - PnL amount - a portfolio loss cap in dollars. TradersPost converts that cap into a stop price using the quantity calculated for the planned entry before the order is sent to the broker, and the symbol's point value from the quote (for example, dollar value per price point for futures, or the options contract multiplier - 100 per contract for standard equity options). It applies to stop market and stop limit stops, not to trailing stop orders, and it does not apply when you size risk using risk dollar amount or risk percent. In a webhook:
stopLoss.pnlAmount.
You can also control this from the webhook when Allow signal override next to the stop loss settings (or the global Signal overrides) is enabled. Any stop loss you send in your webhook will be used instead of the one configured in the strategy settings. To calculate your own stop price, send an explicit stopPrice.
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 100,
"stopLoss": {
"type": "stop",
"pnlAmount": 100
}
}
Ready to put Stop loss 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.