Strategy Field

Quantity calculation method

The Quantity calculation method field controls how entry quantity is calculated. You can set it in your strategy or override it in a webhook by sending quantityType and quantity. Allowed quantityType values:

  • fixed_quantity
  • dollar_amount
  • risk_dollar_amount
  • risk_percent
  • percent_of_equity
  • percent_of_position

Fixed quantity

Same share (or contract) count for every entry.

  • Calculation: quantity = value you provide
  • Example: 100100 shares
{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "fixed_quantity",
    "quantity": 100
}

Dollar amount

Position size from a target notional dollar amount.

  • Calculation: quantity = dollar amount ÷ entry price
  • Example: $1000 at $100 → 10 shares
{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "dollar_amount",
    "quantity": 1000
}

Risk dollar amount

Position sized so max loss equals a fixed dollar amount.

  • Calculation: quantity = risk $ ÷ |entry − stop|
  • Example: $100 risk, entry $100, stop $90 → $10/share → 10 shares

Requires stopLoss.stopPrice in the signal.

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

Risk percent

Position sized so max loss is a percentage of account equity.

  • Calculation: risk $ = portfolio × (risk% ÷ 100); quantity = risk $ ÷ |entry − stop|
  • Example: 0.25% on $10,000 → $25 risk; entry $100, stop $90 → $10/share → 2.5 shares (rounded)

Requires stopLoss.stopPrice in the signal.

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

Percent of equity

Position size as a percentage of account equity.

  • Calculation: notional = portfolio × (percent ÷ 100); quantity = notional ÷ entry price
  • Example: 10% of $10,000 at $100 → $1,000 notional → 10 shares
{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "percent_of_equity",
    "quantity": 10
}

Percent of position

Exit a percentage of the current position.

  • Calculation: quantity = position size × (percent ÷ 100)
  • Example: sell 50% of 100 shares → 50 shares (exit quantity)
{
    "ticker": "AAPL",
    "action": "sell",
    "quantityType": "percent_of_position",
    "quantity": 50
}

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now

TradersPost operates as a non-custodial automated trading platform, enabling users to connect alerts from their preferred trading platforms to their selected brokerage or exchange accounts. It abstains from the transmission, custody, or management of customer funds, covering both traditional and cryptocurrency assets. Typically, registration requirements set by regulatory entities such as the SEC, FINRA, or FinCEN apply to entities that hold or transmit customer funds. To ensure ongoing compliance, TradersPost regularly engages with regulatory authorities to confirm its adherence to all relevant local and federal laws.

TradersPost does not provide alerts, signals, research, analysis, or trading advice of any kind. It is designed to assist traders and investors in making their own trading decisions based on their alerts. The platform does not offer recommendations regarding securities to buy or sell, nor does it provide trading or investing advice. The platform and its features, capabilities, and tools are provided 'as-is' without any warranty.

Risk Disclosure: The use of automated trading systems involves inherent risks, including the potential for significant financial loss. These systems operate based on predetermined algorithms that may not fully adapt to changing market conditions, possibly making them unsuitable for some investors. Individuals are advised to thoroughly assess their financial situation and risk tolerance before using this platform.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

© 2026 TradersPost, Inc. All rights reserved.