Free TradingView Risk Tool

TradingView
SL/TP Calculator
& JSON Generator

Enter an entry price, stop loss and take profit. Convert the same levels into percent, pips and absolute-price webhook JSON for AlgoWay.

3 formats percent, pips and price
Instant calculation in your browser
Ready JSON copy the format you need

Calculate SL/TP

No Login

Pip size depends on the instrument. Enter the price step you want one pip to represent.

SL % —
TP % —
SL pips —
TP pips —
Generated webhook messages

Use the SL/TP format your setup needs

All three messages describe the same price levels. Percent and pips use calculated distances, while price mode keeps the exact SL and TP prices you entered.

Percent JSON sltp_type: percent
Enter prices above and click Calculate & Build JSON.
Pips JSON sltp_type: pips
Enter prices above and click Calculate & Build JSON.
Price JSON sl_price / tp_price
Enter prices above and click Calculate & Build JSON.
How the conversion works

One set of prices, three webhook representations

The calculator uses the absolute distance from entry to each protective level. It does not decide whether a trade setup is good or bad and it does not place orders.

Percent

Distance from entry is divided by the entry price and converted to a percentage for percentage-based SL/TP fields.

Pips

Distance from entry is divided by the pip size you provide, so the same calculator can work with different instrument price steps.

Absolute price

The original stop loss and take profit prices are kept directly in the generated JSON as sl_price and tp_price.

SL/TP reference

How TradingView SL/TP conversion works

Stop loss and take profit can describe the same protection in several ways. AlgoWay supports relative distances such as percent or pips as well as exact market prices. This calculator converts one set of Entry, SL and TP prices into all three representations so you can choose the format that matches your TradingView alert and execution setup.

Percent SL/TP

Percentage mode measures the absolute distance between the entry and the protective level, then divides that distance by the entry price. The direction of the trade does not change the percentage calculation because the result represents distance, not a second price.

SL % = |Entry - SL| / Entry × 100
TP % = |TP - Entry| / Entry × 100

For example, an entry at 2,500 with a stop at 2,475 has a 25-point distance. Dividing 25 by 2,500 gives 1%. A target at 2,550 has a 50-point distance, which equals 2%. In AlgoWay JSON that becomes sltp_type set to percent together with stop_loss 1 and take_profit 2.

Pips and price steps

Pip mode uses the same price distance but divides it by the pip size you provide. This is useful because different instruments can use very different price increments. Forex pairs, metals, indices, crypto and futures should not all be treated as though one pip had the same numeric value.

SL pips = |Entry - SL| / Pip Size
TP pips = |TP - Entry| / Pip Size

A 0.0025 price move with a pip size of 0.0001 equals 25 pips. A 25-point move on another instrument with a pip size of 1 equals 25 pips as well. The number only becomes meaningful when the pip size matches the instrument convention used by your setup.

Absolute SL/TP prices

Absolute mode does not convert the values at all. The stop and target you enter are written directly as sl_price and tp_price. This is useful when your TradingView logic already calculates exact price levels and you want those prices preserved in the webhook message instead of converting them into a relative distance first.

Example conversion

Input / Result Value
Entry 2500
Stop Loss 2475
Take Profit 2550
Pip size 1
SL distance 1% / 25 pips
TP distance 2% / 50 pips
Absolute prices 2475 / 2550

Common calculation mistakes

  • Wrong pip size. The calculator cannot infer what your broker or market calls one pip. Entering 0.0001 when your setup expects a different price step changes the pips result even though the underlying Entry, SL and TP prices remain the same.
  • Confusing distance with price. A stop_loss value of 25 in pips mode means a distance of 25 pips. It does not mean an absolute stop price of 25. Exact market prices belong in sl_price and tp_price.
  • Mixing formats in one message. Use either relative SL/TP fields or absolute price fields for the same protective levels. Keeping one representation makes the webhook easier to read and debug.
  • Ignoring the entry price. Percent conversion depends directly on entry. The same 25-point stop distance is 1% from an entry of 2,500 but 2.5% from an entry of 1,000.

After calculating the levels, use the TradingView Webhook JSON Generator to build the complete alert message for the destination you want to connect. The calculator handles the SL/TP math; the webhook generator handles the rest of the payload.

FAQ

TradingView SL/TP calculator questions

What pip size should I enter?

Use the price increment you want the calculator to treat as one pip. The correct value depends on the instrument and the convention used by your setup.

Does the calculator send an order?

No. Everything is calculated locally in the browser. The tool only converts values and builds JSON text.

Why are the percent and pips distances always positive?

Relative SL/TP fields represent distance from entry. The absolute-price version preserves the original direction by keeping the exact SL and TP prices.