CoinPopBit

TradingView Position Size Calculator: What the Long/Short Position Tool Shows and What It Leaves Out

TradingView already has a position size calculator: the Long Position and Short Position drawings. They size a trade as risk ÷ (entry − stop), capped by account size × leverage ÷ entry, and they leave out trading fees and the liquidation price. The calculator below shows TradingView's quantity next to a fee-inclusive one for the same inputs.

By CoinPop Market Desk · TradingView help, blog and pricing pages read 2026-11-17 · exchange fee pages checked 2026-11-17 · Editorial policy · CoinPopBit is not affiliated with TradingView beyond the partner link disclosed below.

Position
TradingView tool quantity
20.0000
Quantity with fees
19.4571
Loss at stop if you trade the tool's quantity
51.39
Amount at risk you chose
50.00
Position size with fees (USDT)
1,381.46
Estimated liquidation price
61.19

"TradingView tool quantity" uses the formula in TradingView's help for a market where point value and lot size are 1. "Quantity with fees" adds a taker fee on the opening and the closing fill: OKX 0.050% (okx.com/fees), Bybit 0.055% (Trading Fee Structure), MEXC BTCUSDT 0.040% (mexc.com/fee), regular tier, checked 2026-11-17. The calculation runs in your browser.

Where is the position size calculator in TradingView?

  1. Open a chart and look at the drawing toolbar on the left. The group labelled Forecasting lists Long position and Short position.
  2. Pick Long position or Short position and click the chart at your entry. The drawing has a profit zone on one side of the entry line and a loss zone on the other. Move the target and stop by dragging them or by typing the levels in the settings.
  3. Double-click the drawing to open its settings. The Inputs tab has Account size, Lot size, Risk (as a % of the account or an absolute amount), Entry price, Leverage, a Profit level and a Stop level in ticks or as a price, and QTY precision (TradingView help).
  4. Select the drawing and read the labels. They show the quantity (Qty), the account balance if the target or the stop is reached (Amount), the target and stop distances in price, percent and ticks, the risk/reward ratio and the open or closed profit and loss.
TradingView chart toolbar with the Forecasting menu open, listing Long position, Short position, Position forecast, Bars pattern, Ghost feed and Sector
Screenshot: TradingView chart, drawing toolbar, Forecasting menu. Captured 2026-11-17 without signing in.

The drawing needs an account. A visitor who is not signed in can open the menu, but choosing Long position brings up a prompt to join.

TradingView prompt titled Unlock all drawings for your analysis, with the text Join for free to access long position and every other drawing tool, and a Join for free button
Screenshot: the prompt shown to a visitor who is not signed in after choosing Long position. Captured 2026-11-17. The preview image inside the prompt is TradingView's own.

Signed in, the drawing can be placed and edited. The two screenshots below use the example on this page: account size 5,000, risk 1%, entry 71.00, target 77.00, stop 68.50, leverage 7.

TradingView Long position drawing on a 1-hour SOLUSDT perpetual chart with labels: Target 6.00 (8.451%) 600, Amount 5120; Qty 20, Risk/reward ratio 2.4; Stop 2.50 (3.521%) 250, Amount 4950
Screenshot: a Long position drawing on a 1-hour perpetual chart, captured 2026-11-17 while signed in. The labels read Qty 20, Risk/reward ratio 2.4, and Amount 5,120 at the target and 4,950 at the stop: the account balance in each case. The numbers after the percentages (600 and 250) are ticks.
TradingView Long position settings, Inputs tab: Account size 5000, Lot size 1, Risk 1.00 percent, Entry price 71.00, Leverage 7.0, Profit level 600 ticks at price 77.00, Stop level 250 ticks at price 68.50
Screenshot: the drawing's settings, Inputs tab, opened by double-clicking the drawing. Captured 2026-11-17. A new drawing started with account size 1000, risk 25% and leverage 10000.0, so set your own values before reading the quantity.

Open TradingView ↗

Partner link: if you later buy a TradingView plan through it, CoinPopBit may earn a commission at no extra cost to you. Nothing on this page depends on the link. See our editorial policy.

How does TradingView calculate the quantity?

The help article gives the long-position formula below; the short version swaps entry and stop in the distance. The leverage term was added on October 27, 2025 (TradingView blog).

Qty = min(QtyRisk, QtyLvg) QtyRisk = (risk size ÷ ((entry − stop) × point value)) ÷ lot size QtyLvg = (account size × leverage ÷ entry) × point value ÷ lot size Risk/reward ratio = (target − entry) ÷ (entry − stop)

With account size 5,000, risk 1% (50 USDT), entry 71.00, stop 68.50 and leverage 7: QtyRisk = 50 ÷ 2.50 = 20.0000, QtyLvg = 5,000 × 7 ÷ 71 = 492.96, so the tool shows 20.0000. With a target of 77.00 the risk/reward ratio is 2.4.

For a short from 71.00 with a stop at 73.50 the distance is the same 2.50, so the tool gives the same 20.0000. The fee-inclusive quantity is a little lower than for the long, 19.4382, because the closing fee is charged on a higher price.

The same trade with exchange fees

account 5,000 · risk 1% · long 71.00 → stop 68.50 · 7x · market orders · calculated 2026-11-17
ItemTradingView toolWith OKX feesWith Bybit feesWith MEXC fees
Quantity20.000019.457119.404519.5633
Position size (USDT)1,420.001,381.461,377.721,389.00
Margin at 7x (USDT)202.86197.35196.82198.43
Loss at the stop, fees included (USDT)51.12 to 51.5350.0050.0050.00

The TradingView column is the tool's formula with no fees. Its last row shows what a trade of that quantity loses at the stop once taker fees are added (lowest with MEXC's rate, highest with Bybit's). The three fee columns size the trade so the loss at the stop, fees included, equals the 50 USDT chosen. Slippage and funding are not included.

The gap is small on a wide stop and larger on a tight one, because the fee is charged on the whole position while the risk is measured on the stop distance. To size any trade with fees, maker or taker entries and a liquidation check, use the position size calculator.

What does the tool leave out?

How do I get an alert at the stop or the liquidation price?

The drawing is a plan on the chart; it does not send orders. A price alert at the same levels tells you when the market gets there.

Frequently asked questions

Does TradingView have a position size calculator?
Yes. The Long Position and Short Position drawings size a trade from an account size, a risk amount and the distance between entry and stop. TradingView's help gives the quantity as the smaller of risk ÷ (entry − stop) and account size × leverage ÷ entry. The drawing is a planning tool; it does not place an order.
Is the Long/Short Position tool free?
It needs an account. On 2026-11-17 a visitor who was not signed in got the prompt "Join for free to access long position and every other drawing tool" when choosing Long position on a chart. The prompt describes joining as free; plan limits for other features are on TradingView's pricing page.
Does TradingView's position tool include trading fees?
No. The formulas in TradingView's help contain no fee term. In the example on this page (account 5,000, risk 1%, entry 71.00, stop 68.50) the tool gives 20.0000, and a trade of that size loses about 51.39 USDT at the stop with OKX taker fees on both fills instead of 50.00. Sizing with fees gives 19.4571.
Why is the quantity in the tool smaller than risk ÷ stop distance?
Because of the leverage field. Since the update of October 27, 2025 the quantity is capped at account size × leverage ÷ entry. With a stop only 0.20 away and leverage set to 2, risk ÷ distance would be 250.00 but the cap is 140.85, so the tool shows 140.85 and the amount actually at risk is smaller than the one you typed.
Does the tool show the liquidation price?
No. The leverage field only limits the quantity. Where the exchange would close the position depends on its own formula and maintenance margin rate. In the example, 7x isolated on OKX is liquidated near 61.19, below the 68.50 stop; at 25x it is near 68.54, which is reached before the stop.
Is there a position size calculator indicator on TradingView?
TradingView's script library lists community-made position size indicators, including some with fee inputs. They are third-party scripts written by other users, so read the description and the code before relying on the numbers. The built-in Long/Short Position drawing needs no script.

Sources and limits

TradingView: How to use long and short position drawing tools (settings, labels, formulas), Leverage support in Long and Short Position tools (October 27, 2025), Introduction to TradingView alerts, pricing page; the first two screenshots were taken on 2026-11-17 on a chart opened without signing in, the other two the same day on a signed-in account. Exchange fees: OKX, Bybit, MEXC, regular tier, checked 2026-11-17. The liquidation estimate uses the isolated-margin formulas of our liquidation calculator with the maintenance margin rate you enter (0.5% applies to the smallest position tier). TradingView is a trademark of its owner; this page is an independent explanation. Planning tool, not trading advice. Leveraged futures can lose the whole margin.