position size calculator tradingview

Position Size Calculator (TradingView Style)

Set your risk first, then let the tool calculate how many shares, coins, or contracts you can trade without breaking your risk rule.

Most traders use 0.5% to 2%.
Use 1 for stocks and most spot crypto. Futures may be 5, 10, 50, etc.

If you use TradingView to find setups, this position size calculator helps you bridge the gap between chart idea and real execution. A setup is only as good as the risk behind it. With proper sizing, one bad trade is just one trade. Without sizing, one bad trade can damage your account and your confidence.

Why position sizing matters more than entry signals

Most beginners obsess over entries. Professionals obsess over risk. That is because no strategy wins all the time, and even great systems can hit losing streaks. Position sizing keeps those streaks survivable.

  • Controls downside: your loss is pre-defined before you click buy or sell.
  • Protects capital: smaller drawdowns are easier to recover from.
  • Reduces emotional trading: when risk is fixed, panic and revenge trades drop.
  • Creates consistency: performance becomes easier to evaluate over many trades.

The core formula behind a TradingView position size calculator

Every position size tool is built on a simple structure:

Risk Amount = Account Balance × (Risk % / 100) Stop Distance = |Entry Price − Stop Price| Risk Per Unit = (Stop Distance × Point Value) + Fees/Slippage Per Unit Position Size (Units) = Risk Amount ÷ Risk Per Unit

Then you apply practical constraints, especially leverage limits and rounding. For many brokers, you cannot buy 37.42 shares unless fractional shares are supported, so the final size is often rounded down.

How to use this calculator with TradingView in 5 steps

1) Mark entry and stop on your chart

On TradingView, identify your setup and define a clear invalidation level. If price hits that level, your idea is wrong. That becomes your stop.

2) Decide your risk percentage

Pick a fixed number and stick with it. Many disciplined traders risk 1% or less per trade. The key is consistency, not aggression.

3) Add instrument details

For stocks and most spot crypto, a point value of 1 is common. For futures, use the contract multiplier so risk is measured in real dollars.

4) Include friction costs

Ignoring fees and slippage can make your sizing too large, especially on smaller stops and volatile markets. Add a realistic estimate per unit.

5) Enter trade size into your broker

Take the recommended units/contracts and place the order. Keep your stop where planned. If you move stops wider after entry, your real risk is no longer controlled.

Example scenarios

Market Account Risk % Entry / Stop Estimated Result
Stock $10,000 1% 100 / 95 About 20 shares risked at roughly $100 total loss cap
Crypto (fractional) $5,000 1% 2,500 / 2,450 0.9 to 1.0 coin depending on fees/leverage
Futures (multiplier 50) $25,000 0.5% 4800 / 4798 Position may be limited to 1 contract by risk

Common mistakes traders make

  • No hard stop: if the stop is “mental,” the sizing math has no real value.
  • Changing risk by feeling: increasing size after losses often compounds drawdowns.
  • Ignoring leverage caps: your risk model may allow a size your margin does not.
  • Using random stop distances: too-tight stops can create frequent losses, too-wide stops shrink opportunity.
  • Overlooking execution costs: slippage can be the difference between controlled and uncontrolled risk.

TradingView integration idea (Pine Script concept)

You can mirror this logic in a Pine Script indicator to display suggested size directly on chart. Pseudo example:

riskAmount = accountBalance * (riskPct / 100) stopDistance = math.abs(entryPrice - stopPrice) riskPerUnit = stopDistance * pointValue + feePerUnit units = riskAmount / riskPerUnit

Add rounding rules and leverage checks in script, then print the final units in a label near your setup zone.

Final thoughts

A good setup can still lose. Position sizing is how you survive that reality. Use this position size calculator before every trade idea you take from TradingView, and you will build a process that is durable, measurable, and far easier to improve over time.

Educational use only. This page is not financial advice.

🔗 Related Calculators