Back to Signal Fields
Signal Fields

Stop type

The Stop type is the kind of order the stop loss is sent to the broker as, with your entry. Leave it on Default to use the type set in the strategy's stop loss settings. It shows once the stop loss is on. In a signal's JSON the field is stopLoss.type.

  • Stop Market (stop) becomes a market order when the stop price is reached.
  • Stop Limit (stop_limit) becomes a limit order when the stop price is reached. It also asks for a Stop loss limit price.
  • Trailing Stop (trailing_stop) follows the price at a distance (see Stop loss trail percent and Stop loss trail amount) and never moves back.

The stop loss is ignored if the broker or exchange does not support bracket orders.

Stop Market, by a percent from the entry (or a stopPrice, amount or pnlAmount: see Stop loss):

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop",
        "percent": 10
    }
}

Stop Limit, with exact prices:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop_limit",
        "stopPrice": 90,
        "limitPrice": 89
    }
}

Trailing Stop, by a dollar amount or a percent:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "trailing_stop",
        "trailAmount": 5
    }
}
{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "trailing_stop",
        "trailPercent": 5
    }
}

Without a type, the strategy's stop loss type is used:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "percent": 10
    }
}

Ready to put Stop 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.