Back to Strategy Fields
Strategy Fields

Allow signal quantity

If you check Allow signal override next to the quantity settings, then the quantity settings in your webhook will be used and will override the settings defined in your strategy. Here are examples of all the different settings for quantity that can be controlled from the webhook.

Checking the global Allow signal overrides automatically checks every per-field Allow signal override checkbox (including the one next to the quantity settings), so quantity fields are honored.

Resize signals ignore this setting

The action=resize always reads the quantity and quantityType from the signal, whether or not this checkbox is checked. This setting decides whether to read the quantity a signal carries, and a resize is nothing but a target — with the setting off, an add falls back to your configured quantity, and a resize has nothing to fall back to. The Signal quantity multiplier still applies to that target, because it scales the number rather than deciding whether to read it.

{
    "ticker": "AAPL",
    "action": "resize",
    "quantity": 5
}

A resize target can only be expressed in the types that state an absolute size, so only fixed_quantity, dollar_amount and percent_of_equity are accepted. risk_dollar_amount and risk_percent size a position from the entry-to-stop-loss distance rather than stating a size to hold, and percent_of_position is measured against the very position the target is meant to set.

Fixed quantity

Always buy 100 shares of AAPL.

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "fixed_quantity",
    "quantity": 100
}

Dollar amount

Buy $1000 worth of AAPL shares. If the price of AAPL is $100, the quantity will be 10.

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "dollar_amount",
    "quantity": 1000
}

Risk dollar amount

Buy a quantity of shares that will risk at most $100 in the position. If the price of AAPL is $100 and the stop loss price is $90, the quantity will be 10. If your stop loss is hit, you will lose $100.

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "risk_dollar_amount",
    "quantity": 100,
    "stopLoss": {
        "stopPrice": 90
    }
}

Risk percent

Buy a quantity sized so max loss is 0.25% of account equity. If you have $10000 in equity, entry is $100, and stop is $90, the risk amount is $25 and the quantity will be 2.5 shares (rounded per broker settings).

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "risk_percent",
    "quantity": 0.25,
    "stopLoss": {
        "stopPrice": 90
    }
}

Percent of equity

Buy 10% of your equity worth of AAPL shares. If you have a $10000 account and the current price of AAPL is $100, the quantity will be calculated as 10.

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "percent_of_equity",
    "quantity": 10
}

Percent of position

Sell 50% of your position in AAPL. If you have 100 shares of AAPL, the quantity will be calculated as 50.

{
    "ticker": "AAPL",
    "action": "sell",
    "quantityType": "percent_of_position",
    "quantity": 50
}

Ready to put Allow signal quantity 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.