Free tools for traders and Pine Script developers

A growing set of free, browser-based calculators and Pine Script utilities. The calculators show the math behind each metric or indicator and the exact Pine Script that produces the same value on a TradingView chart. The developer tools decode errors, check a script before you paste it, and build the strings that are easy to get wrong. Nothing to install, and your data never leaves your browser.

Trading & investment metrics

Win Rate & Win/Loss Ratio Calculator

Turn winning and losing trade counts into a win rate and ratio.

Open tool

Risk/Reward Ratio Calculator

Compute reward-to-risk from entry, stop, and target prices.

Open tool

Sharpe Ratio Calculator

Measure return per unit of risk, with optional annualization.

Open tool

Sortino Ratio Calculator

Return per unit of downside risk, a downside-only Sharpe.

Open tool

Trade Expectancy Calculator

Compute expected value per trade from win rate and average P&L.

Open tool

Profit Factor Calculator

Divide gross profit by gross loss to gauge a track record.

Open tool

Position Size Calculator

Size a position from account size, risk %, entry, and stop.

Open tool

Kelly Criterion Calculator

Compute the Kelly optimal fraction and the safer half-Kelly.

Open tool

CAGR Calculator

Compound Annual Growth Rate from start, end, and years.

Open tool

Drawdown Recovery Calculator

The gain needed to recover from a given percentage loss.

Open tool

Max Drawdown Calculator

Find the deepest peak-to-trough decline in an equity curve.

Open tool

ATR Stop Loss Calculator

Place a volatility-based stop and size the position to match.

Open tool

Trading Compound Calculator

Compound a balance forward at a fixed return per period.

Open tool

Risk of Ruin Calculator

Simulate how often a given risk level breaches your loss limit.

Open tool

Average Down Calculator

Blend multiple entries into one average cost and break-even.

Open tool

Breakeven Win Rate Calculator

The minimum win rate needed to break even at a given reward-to-risk ratio.

Open tool

Trade Journal Statistics Calculator

Paste a trade list and get expectancy, profit factor, win rate, and more.

Open tool

R-Multiple Calculator

Express any trade outcome as a multiple of the initial risk.

Open tool

Want to go deeper?

The PineScripter blog covers Pine Script development, debugging, and how to turn these indicators and strategies into code that compiles on TradingView.