A stop loss defines where a trade idea is invalidated; position size determines how much that invalidation can cost. This TradingView position size and stop-loss guide shows how to mark a logical stop, convert the price distance into monetary risk, check the reward-to-risk profile, and adjust for the different contract conventions of stocks, forex, crypto, and leveraged products.
Overview
Position sizing should begin with the amount you are willing to lose, not with the number of shares, coins, or contracts you would like to buy. A repeatable risk process links four decisions:
- Account risk: the maximum planned loss on the trade.
- Stop location: the price level that makes the setup invalid.
- Unit risk: the loss per share, coin, or contract if the stop is reached.
- Position size: the quantity that keeps the planned loss within the account-risk limit.
The basic formula is:
Position size = account risk ÷ risk per unit
For a long stock trade, risk per share is usually the entry price minus the stop price. For a short trade, it is the stop price minus the entry price. In both cases, include an allowance for commissions, spread, slippage, and any contract-specific costs. A stop is an exit instruction, not a guarantee of the exact fill price; a gap or fast market can produce a larger loss.
TradingView can help you make the calculation visible. On a chart, use the long-position or short-position drawing tool to compare entry, stop, target, and the displayed risk-to-reward relationship. The exact labels and available fields can change with the instrument and platform version, so verify the drawing’s inputs against your broker or exchange specifications before placing an order. A chart tool is an aid to planning, not a substitute for checking the order ticket.
How to estimate
1. Set the risk budget
Choose a fixed fraction or fixed amount that fits your own trading plan. For example, a $10,000 account with a 0.5% risk limit has a planned trade risk of $50:
$10,000 × 0.005 = $50
Use the account value that is relevant to the strategy, and account for open positions. Several correlated trades can create more exposure than the individual risk numbers suggest. A smaller risk limit may be appropriate when liquidity is poor, volatility is elevated, or the setup is difficult to execute.
2. Choose the stop from market structure
Place the stop where the trade thesis fails, rather than at an arbitrary percentage from entry. Possible reference points include a recent swing low for a long trade, a recent swing high for a short trade, a broken support or resistance level, or a volatility-based distance. Leave enough room beyond the level for normal price movement; placing a stop directly on an obvious level can make the planned exit sensitive to small fluctuations.
TradingView’s horizontal line, ray, and position drawing tools can help you mark the entry, invalidation level, and target. Zoom out to check nearby structure, then zoom in to inspect the spread and likely execution area. For a broader framework, see this TradingView market structure guide.
3. Convert the stop distance into size
For a stock example, suppose the planned entry is $50.00 and the stop is $48.50. The price risk is $1.50 per share. With $300 of permitted account risk:
300 ÷ 1.50 = 200 shares
Before rounding, subtract a practical cost allowance. If the result is not a whole unit, round down rather than up. If the minimum tradable unit still risks more than your limit, skip the trade or use a different instrument.
4. Check the target and reward-to-risk ratio
If the entry is $50.00, the stop is $48.50, and the target is $54.50, the trade risks $1.50 to seek $4.50, a 3:1 gross reward-to-risk ratio. This ratio does not predict the outcome and should not be used alone to approve a trade. Consider the target’s market structure, liquidity, expected costs, and whether the target is realistic within the intended holding period.
5. Use ATR as a volatility input, not a complete strategy
Average True Range (ATR) can help prevent a stop from being too narrow for current volatility. One possible rule is:
Stop distance = ATR × chosen multiplier
For example, with an entry of $100, a 14-period ATR of $2, and a 1.5 ATR stop, the stop distance is $3 and a long stop might be placed near $97 before considering nearby structure. With $150 of allowed risk, the unrounded size is 50 shares. If structure requires a wider stop, recalculate the size rather than forcing the stop closer. For more detail, review this ATR position sizing guide.
Inputs and assumptions
Record these inputs before using a TradingView position size calculator or spreadsheet:
| Input | What to record | Why it matters |
|---|---|---|
| Account value | Capital assigned to the plan | Determines the risk budget |
| Risk limit | Percentage or currency amount | Caps the planned loss |
| Entry | Expected fill, not only the chart price | Sets the unit-risk calculation |
| Stop | Thesis-invalidating price | Defines the distance and exit condition |
| Costs | Spread, commission, slippage, funding, or fees | Improves the loss estimate |
| Contract specification | Tick value, lot size, multiplier, and minimum quantity | Converts price movement into money |
Stocks: share quantity is generally straightforward, but fractional-share availability, short-sale rules, liquidity, and overnight gaps can affect execution.
Forex: position size depends on the currency pair, account currency, lot convention, pip value, and exchange rate. A pip distance cannot be treated as a dollar amount until the pair’s contract details are confirmed.
Crypto: exchanges may use different minimum order sizes, contract multipliers, fee schedules, and liquidation rules. Perpetual contracts can also involve funding payments. Confirm whether the displayed quantity means coins, contracts, or notional value.
Leveraged products: leverage changes the margin required and can increase liquidation or financing risk, but it does not justify increasing the planned loss. Calculate risk from the price movement and contract multiplier, then check margin separately.
Keep a worksheet with these fields: account value, risk percentage, permitted risk, symbol, direction, entry, stop, target, stop distance, unit value, estimated costs, raw quantity, rounded quantity, and final planned risk. This makes assumptions auditable and easier to update.
Worked examples
Stock position
Assume an account of $20,000 and a 0.5% risk limit, giving $100 of planned risk. A long setup has an entry at $32.00 and a structure-based stop at $30.00. The risk is $2 per share, so the maximum quantity before costs is 50 shares. If the estimated spread and commission allowance is $4, use $96 for share risk: $96 ÷ $2 = 48 shares. The trader should round down and confirm that the stop is still logically placed.
Forex position
Suppose the permitted risk is $75 and the stop is 40 pips away. The missing input is the dollar value of one pip for the chosen lot size and account currency. If the broker’s verified specification shows that one standard lot is worth $10 per pip under the relevant conditions, the risk is $400 per standard lot. The calculated size is 75 ÷ 400 = 0.1875 standard lots, which must be rounded down to an allowed increment. Recheck the pip value if the account currency or pair changes.
Crypto or perpetual contract
Assume $120 of permitted risk, an entry at $2,000, and a stop at $1,940. The price distance is $60. If one unit represents one coin, the raw size is $120 ÷ $60 = 2 coins before fees and slippage. If the exchange uses a contract multiplier, replace the $60 unit movement with the contract’s actual dollar value. Then check minimum order size, maintenance margin, liquidation distance, and whether the stop could be affected by thin liquidity.
These examples estimate planned risk; they do not guarantee the realized loss. Gaps, partial fills, market orders, exchange interruptions, and rapidly changing spreads can alter the result.
When to recalculate
Recalculate before every new trade, even when the setup looks similar. The inputs change whenever the entry moves, the stop must be widened, account equity changes, or the instrument’s contract specification differs. Revisit the calculation after a volatility shift, a large gap, an earnings or macroeconomic event, a change in trading venue, or a change to fees and funding.
Do not move a stop farther away simply to avoid taking a loss unless the trading plan explicitly permits a new, smaller position. If a planned entry is missed and the price is now worse, enter the new price into the worksheet rather than relying on the original quantity. Likewise, if the stop is tightened, recalculate the reward-to-risk relationship and decide whether the new level still reflects market structure.
Use this pre-trade checklist:
- Have I stated the setup and the price that invalidates it?
- Is the entry based on a plausible fill rather than an ideal chart price?
- Did I calculate account risk before selecting quantity?
- Did I include spread, fees, slippage, funding, and contract multipliers?
- Is the position rounded down to a permitted quantity?
- Does the target make sense relative to structure and planned risk?
- Would correlated open trades make the combined exposure too large?
- Have I confirmed the order details in the broker or exchange ticket?
Save the completed worksheet with a chart screenshot and review the result in your trading journal. Comparing planned risk with actual execution helps reveal recurring problems, such as oversized positions, optimistic fills, or stops placed inside ordinary volatility. For a broader record-keeping process, use this TradingView trading journal template. The calculation is most useful when it is repeated consistently—before entry, after material market changes, and during the post-trade review.