ProIndicatr Pro: 4 Pro indicators
indicator.trading
All scripts

Free · Open source

Risk & Position Planner

Do the math, then click: position size and real risk before the trade is on.

Type
Planning tool for size and risk
Replaces
Position sizing calculator
Recommended
Any market, any timeframe
Price
Free, open source
Open chart on TradingView
Risk & Position Planner on NVIDIA on the 1-hour chart with green reward zone, red risk zone and table
Risk & Position Planner on NVIDIA on the 1-hour chart with green reward zone, red risk zone and table

The Risk & Position Planner turns a trade idea into numbers. You click entry, stop and target on the chart, and the script shows you the right position size for your risk, the risk : reward before and after costs, the win rate you need to break even, how wide your stop is compared to normal volatility, and what a losing streak would do to your account. Long and short. It is a planning tool, not a signal tool – this page shows you how to use it so your numbers are right.

Overview

At a glance

What does it do?

It calculates the position size from entry, stop, target and your risk, and checks the trade for costs, stop distance and losing streaks.

What do I do with it?

You plan every trade before you place the order: read the size, check risk : reward after costs, spot stops that are too tight.

Why?

Most accounts don’t fail because of single entries, but because of positions that are too large and costs that are underestimated. Both can be calculated in advance.

What do I get?

Every loss is as large as you decided beforehand – not larger. That keeps you in the game even after a losing streak.

On your chart in 3 minutes

Quickstart

  1. 01

    Add it to your favorites

    Open the script page on TradingView (button at the top of this page) and click Add to favorites (the star icon).

  2. 02

    Add it to your chart

    At the top of the chart, click Indicators, choose Favorites on the left and click Risk & Position Planner. Alternatively, search for “Indicatr” in the Indicators window.

  3. 03

    Click three points

    TradingView now asks you to set points on the chart: first the entry (time and price), then the stop, then the target. The script detects the direction itself: stop below entry = long, stop above = short.

  4. 04

    Enter account and risk

    Double-click “Risk Planner [Indicatr]” at the top left of the chart to open the settings. Enter Account size and Risk % (default: 10,000 and 1 %). From now on, the position size in the table is right.

The chart explained

What you see on the chart

NVIDIA, 1h. Long plan with a 10,000 USD account and 1 % risk. The numbers match the list below.Open chart on TradingView
All elements of the Risk & Position Planner on the chart, numbered
All elements of the Risk & Position Planner on the chart, numbered
  1. 1Target and reward zone Green area from entry to target.
  2. 2Entry Grey line between the two zones.
  3. 3Stop and risk zone Red area from entry to stop.
  4. 4Table Size, risk, risk : reward, checks and outcome.

Elements 1 to 3

Zones and lines: the trade at a glance

NVIDIA, 1h, zoomed in. Entry 163.02, stop 157.02 just below Friday’s low, target 174.89.Open chart on TradingView
Close-up with green reward zone up to 174.89 and red risk zone down to 157.02 on NVIDIA
Close-up with green reward zone up to 174.89 and red risk zone down to 157.02 on NVIDIA

What does it do?

The red zone runs from entry to stop, the green zone from entry to target. The grey line is the entry, the red one the stop, the green one the target.

What do I do with it?

You see right away whether target and stop fit the chart: is the target behind a major high? Is the stop where the idea would really be wrong?

Why?

Numbers alone can fool you. A 1 : 3 risk : reward is worth nothing if the target sits right behind a resistance that price rarely breaks.

What do I get?

A plan you can see in front of you – instead of numbers in your head that tend to shift once the trade is running.

What happens after the entry

From the candle after the entry time, the script checks which level was reached first. The zones then end exactly there, and the last row of the table shows “Target reached first” or “Stop reached first”. As long as neither has been reached, the zones extend a little beyond the last candle, and the row shows “Open (no level reached)”.

Element 4

Reading the table

From top to bottom, the table answers three questions: How large may the trade be? Is it worth it after costs? And can your account survive the bad phases?

NVIDIA, 1h. 16 shares, 96.09 USD risk (0.96 %), risk : reward 1 : 1.98.Open chart on TradingView
Risk & Position Planner table with direction, position size, risk, risk : reward, break-even win rate, stop distance and losing streak
Risk & Position Planner table with direction, position size, risk, risk : reward, break-even win rate, stop distance and losing streak
RowWhat it tells you
DirectionLong or short – detected from where the stop is.
Position sizeHow many units you buy or sell: shares, contracts, coins or currency units. Rounded down so the risk never exceeds your limit. If it says “0 (risk too small)”, your risk amount isn’t enough for a single unit.
Position valueThe value of the position. Shows you how much capital or margin is tied up.
Risk if stoppedWhat you lose if the stop is hit – including the costs you entered. In brackets the share of your account.
Reward at targetWhat you win at the target, after costs.
Risk : rewardRisk : reward before costs and, in brackets, after costs (“net”).
Break-even win rateThe minimum share of trades you need to win so you don’t lose money at this ratio – before and after costs.
Stop distanceDistance to the stop in price and in ATR, with a rating: “inside normal noise”, “typical” or “wide”.
Costs per unitFees, spread and slippage for a complete trade (in and out), per unit.
10 losses in a rowHow much of the account a series of 10 losses at this risk would cost.
Entry / stop / targetThe three prices, for checking.
Since entryWhich level was reached first after the entry – or “Open”.

The three checks

Break-even win rate, stop check and losing streak

There are plenty of position size calculators. These three checks are usually missing – and they prevent the most expensive mistakes.

Break-even win rate: how often do you need to be right?

The larger the target relative to the risk, the less often you need to win. At 1 : 1 you need 50 % winners, at 1 : 2 just over 33 %, at 1 : 3 only 25 %. Costs push this threshold up – that’s why the table shows both values.

Stop check in ATR: is your stop inside the noise?

ATR is the average range of a candle. The script measures your stop distance against it: below 1 ATR it shows “inside normal noise” in red – the stop is so close that an ordinary candle can reach it. 1 to 3 ATR counts as “typical”, above 3 ATR as “wide”.

Losing streak: what can your account – and your nerves – take?

The row “10 losses in a row” shows how much of the account ten losses in a row would cost, each with the same percentage risk on the remaining account. At 1 % risk that’s about 9.6 %, at 2 % already about 18.3 %. You set the number under Loss streak preview.

In practice

How to plan a trade

  1. 01

    Put the stop at the structure

    First decide where your idea would be wrong – behind a low, a high or a zone. Not where it “doesn’t cost too much”. The size adapts afterwards.

  2. 02

    Choose a realistic target

    Put the target in front of the next major level, not behind it. Or set Target from to “R multiple” and work with a fixed multiple of your risk.

  3. 03

    Read the stop check

    If it says “inside normal noise”, consider whether a wider stop with a smaller position is the better choice.

  4. 04

    Check the net numbers

    Look at risk : reward and the break-even win rate after costs. Does the rate fit your real win rate?

  5. 05

    Transfer the size

    Use the Position size for your order at your broker – and place the stop right away. Check that the unit matches (shares, contracts, lots).

  6. 06

    Set alerts

    Create alerts for the stop, the target or price returning to the entry, so you don’t have to sit in front of the chart.

By instrument

What to watch out for in each market

The math is the same everywhere, the pitfalls aren’t. What matters is how much a one-point move is worth per unit (point value) – and whether your broker uses the same unit as TradingView.

Stocks and ETFs

e.g. NVIDIA, Apple, SPY

Straightforward
  • Point value 1: a one-dollar move is one dollar per share. The math is easy to follow.
  • Whole shares: the size is rounded down to whole shares. If your broker offers fractional shares, you can set Size step to 0.01, for example.
  • Watch the currency: US stocks are in USD. If your account is in euros, convert the account size first.
  • Gaps: overnight or around earnings, price can jump over your stop. Then the loss is larger than planned.

Crypto

e.g. BTC/USDT, ETH/USD

Straightforward
  • Fractions: the script automatically works in steps of 0.0001 – which fits most exchanges. If your exchange only allows coarser steps, set Size step accordingly.
  • Fees in percent: most exchanges charge a percentage per side – exactly what you enter under Commission per side.
  • USDT is not USD: amounts are shown in the quote currency of the pair. For leveraged products (perpetuals), also check the exchange’s contract size.

Futures

e.g. ES, NQ, gold, crude oil, DAX

Check carefully
  • Large point value: one point in the E-mini S&P 500 is worth 50 USD per contract. The script takes the point value from the symbol data – check that it matches your contract.
  • Whole contracts only: with small accounts you’ll quickly see “0 (risk too small)”. Then the micro contract (e.g. MES instead of ES) is the right size – not a tighter stop.
  • Fees per contract: convert them into ticks and enter them under Spread + slippage. Example: 5 USD round-trip fees on MES at 1.25 USD per tick are 4 ticks.

Forex

e.g. EUR/USD, GBP/JPY

Check carefully
  • Size in currency units: the script shows units of the base currency. With Show forex lots you also see standard lots (1 lot = 100,000 units). Some brokers use different lot sizes.
  • Amounts in the second currency: USD for EUR/USD, JPY for GBP/JPY. Convert account size or risk amount first.
  • Ticks are often tenths of a pip: on many forex feeds, 1 pip equals 10 ticks. A 1-pip spread is then 10 ticks under Spread + slippage.

CFDs and plain indices

e.g. index CFDs, SPX, DAX index

Do your own math
  • Contract sizes vary by broker: an index CFD can be worth 1 €, 5 € or 25 € per point. TradingView’s symbol data doesn’t know your broker’s terms.
  • Plain indices can’t be traded: on the SPX or DAX index, the size refers to something you can’t buy as such. Plan on the instrument you actually trade – your broker’s ETF, future or CFD.
  • Financing costs: CFDs held overnight cost interest on top. That isn’t in any table – factor it in for longer trades.

Check once per market

  • Does the point value (value of 1 point per unit) match your broker’s contract specifications?
  • Which unit do you trade: shares, contracts, lots, coins? Does Size step fit?
  • Which currency are the amounts in – and which one is your account in?
  • How high are fees, spread and typical slippage? Are they entered under Costs?
  • Work out one trade by hand. If the result matches, you can trust the planner for this market.

Both directions

Long and short

You don’t need to switch anything: if the stop is below the entry, the script plans a long; if it’s above, a short. For a short, the red zone is on top and the green one below; all numbers work the same way.

The part that makes the difference

Tips for your risk management

  • Always the same risk per trade. 0.5 to 1 % of the account is a sensible range for most traders. The same risk makes your results comparable.
  • Add up your open trades. Three trades at 1 % each are 3 % risk at once – even more so when the markets are related (several tech stocks, for example).
  • Never move the stop further away. The size is calculated for exactly this stop. Moving it means risking more than you planned.
  • Enter costs honestly. On small timeframes with tight stops, fees and spread quickly eat a large part of your risk : reward.
  • Check the calendar. Before central-bank decisions, major economic data or earnings, price can jump over your stop. Then even the best math doesn’t help.
  • After a losing streak, lower your risk – don’t raise it. Trying to win losses back with larger positions turns a bad run into a real problem.

Don’t miss a thing

Setting up alerts

  1. 01

    Open the alert window

    At the top of the chart, click Alert or press Alt + A.

  2. 02

    Choose the condition

    Under Condition, select “Risk Planner [Indicatr]” and below it the alert you want.

  3. 03

    Trigger

    For stop and target, choose Only once – otherwise the alert fires again on every further candle beyond the level.

  4. 04

    Notification

    Choose app, email or webhook and save.

AlertWhen it fires
Stop level reachedPrice touches the stop from the entry time onwards.
Target level reachedPrice touches the target from the entry time onwards.
Price crossed entryThe close crosses the entry price. Handy when you’re waiting for price to return to your entry.

Reference

All settings

Double-click “Risk Planner [Indicatr]” at the top left of the chart to open the settings. Usually you only change account, risk and costs – once per market.

1 · Trade · Account and risk

Settings: Trade with entry, stop and target, plus Account and risk
Settings: Trade with entry, stop and target, plus Account and risk
EntryDefault: by click
Time and price of the entry. The zones and the check whether the stop or the target came first start at this time.
StopDefault: by click
The stop price. Below = long, above = short.
Target fromDefault: Target price
Target price uses the clicked target. R multiple sets the target automatically at a multiple of the risk.
Target priceDefault: by click
The target price. Ignored when “R multiple” is selected.
Target in RDefault: 2
The multiple for “R multiple”. 2 means: the target is twice as far from the entry as the stop.
Account sizeDefault: 10000
Your account size – in the currency of the symbol. The basis for the percentage risk.
Risk per tradeDefault: % of account
% of account uses a percentage, Fixed amount a fixed amount.
Risk %Default: 1
Risk per trade as a percentage of the account (with “% of account”).
Risk amountDefault: 100
Fixed risk amount in the currency of the symbol (with “Fixed amount”).
Size step (0 = auto: crypto 0.0001, others 1)Default: 0
The steps the size is rounded down to. 0 = automatic: 0.0001 for crypto, otherwise whole units. For fractional shares, for example 0.01.
Show forex lots (1 lot = 100,000 units)Default: off
For forex, also shows the size in standard lots.

2 · Costs · Checks

Settings: Costs (round trip) and Checks
Settings: Costs (round trip) and Checks
Commission per side (% of trade value)Default: 0
Fee per buy or sell as a percentage of the position value. Convert fixed fees: fee ÷ position value × 100.
Spread + slippage (ticks, total)Default: 0
Spread and execution slippage for the round trip, in ticks. You can also put fixed fees per contract here.
ATR length (stop distance check)Default: 14
How many candles normal volatility is measured over. Shorter reacts faster to calm or wild phases.
Loss streak preview (trades)Default: 10
Length of the losing streak in the table (1 to 50).

3 · Display

Settings: Display with zone colours, zone length and table position
Settings: Display with zone colours, zone length and table position
Risk zone / Reward zoneDefault: Red / green
Colours of the two zones.
Zone length (bars to the right)Default: 25
How far the zones extend beyond the last candle while the trade is open. The length is measured as time – on stocks with trading breaks, the zones therefore look shorter.
Table positionDefault: Top right
The corner for the table. Pick one where it doesn’t cover any candles.

From practice

Common mistakes

  • Forgetting the account currency. A euro account but a US stock: without converting, the size is wrong.
  • Leaving costs at 0. Especially with tight stops, this noticeably shifts the break-even win rate.
  • Choosing the stop to fit the size. First the sensible stop, then the size – not the other way round.
  • Not checking the point value. With CFDs and futures, a wrong point value can distort the size many times over.
  • Clicking the entry on an old candle and forgetting it. Then “Since entry” shows the outcome of an old trade, not of your current plan.
  • Using the size but not the stop. The math only holds if the stop is actually placed at your broker.

FAQ

Does the Risk & Position Planner give buy or sell signals?

No. It calculates a trade that you planned yourself. Whether the trade makes sense is your call.

Does the script place orders at my broker?

No. It only shows numbers and zones on the chart. You place the order with size and stop at your broker yourself.

Why is the risk lower than what I set?

The size is rounded down so the risk never exceeds your limit. With whole shares or contracts, there is often something left over.

Why does the size say “0 (risk too small)”?

Your risk amount isn’t enough for a single unit – typical for futures with a large point value. Choose a smaller contract (e.g. a micro future) or skip the trade.

How do I change entry, stop or target?

Click the indicator on the chart and drag the points with the mouse – or enter the prices in the settings. For completely new points, remove the script and add it again.

Why don’t the amounts match my broker?

Usually because of account currency, point value or lot size. Amounts are in the currency of the symbol, the point value comes from TradingView’s data. Check both in your broker’s contract specifications.

How do you like Risk & Position Planner?

Your vote tells us what to work on next.

Support

Report a problem or share feedback

Something off with the script, unclear in the docs, or you have an idea? Write to us. We reply by email.

Helps us check access or settings.

Only used to reply to you.

What is it about?

By sending, you agree that we use your details to handle your request. More in our privacy policy.

Risk & Position Planner

Turns a trade idea into numbers before you enter: position size, risk : reward before and after costs, break-even win rate.

Open on TradingView

For educational and analytical purposes only. Not financial advice. Calculations, zones and marks are not recommendations to buy or sell. All values depend on your inputs and TradingView’s symbol data and can differ from your broker’s terms; check them before every trade. Trading involves a risk of loss.

Risk & Position Planner – Documentation & Guide | indicator.trading