Strategy Field

Risk dollar amount

The Risk dollar amount method sizes the position so that your maximum loss (if the stop loss is hit) equals a fixed dollar amount.

How it's calculated

  • Risk per share = |entry price − stop price|
  • Quantity = risk dollar amount ÷ risk per share

Example

  • quantity = 100 ($100 max loss), entry = $100, stop = $90
  • Risk per share = $10
  • 100 ÷ 10 = 10 shares

Configure this in your strategy under Quantity calculation methodRisk dollar amount. A stop loss is required. Or override it in a webhook by sending quantityType=risk_dollar_amount with quantity as the max dollar risk and include stopLoss.stopPrice in the signal.

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

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now