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.
Turn winning and losing trade counts into a win rate and ratio.
Open toolCompute reward-to-risk from entry, stop, and target prices.
Open toolMeasure return per unit of risk, with optional annualization.
Open toolReturn per unit of downside risk, a downside-only Sharpe.
Open toolCompute expected value per trade from win rate and average P&L.
Open toolDivide gross profit by gross loss to gauge a track record.
Open toolSize a position from account size, risk %, entry, and stop.
Open toolCompute the Kelly optimal fraction and the safer half-Kelly.
Open toolCompound Annual Growth Rate from start, end, and years.
Open toolThe gain needed to recover from a given percentage loss.
Open toolFind the deepest peak-to-trough decline in an equity curve.
Open toolPlace a volatility-based stop and size the position to match.
Open toolCompound a balance forward at a fixed return per period.
Open toolSimulate how often a given risk level breaches your loss limit.
Open toolBlend multiple entries into one average cost and break-even.
Open toolThe minimum win rate needed to break even at a given reward-to-risk ratio.
Open toolPaste a trade list and get expectancy, profit factor, win rate, and more.
Open toolExpress any trade outcome as a multiple of the initial risk.
Open toolScan your script for the most common repainting patterns.
Open toolPaste a compile error and get the cause and the fix.
Open toolCheck a script for structural mistakes before you paste it.
Open toolScan a v5 script for the changes v6 requires.
Open toolBuild a valid alert message JSON with live placeholders.
Open toolBuild session strings and convert market hours between zones.
Open toolCompute the Relative Strength Index from a price series.
Open toolCompute the MACD line, signal line, and histogram.
Open toolCalculate %K and %D from high, low, and close data.
Open toolCompute the Commodity Channel Index from OHLC data.
Open toolCalculate Williams %R from high, low, and close data.
Open toolCompute one step of the Parabolic SAR from prior values.
Open toolCalculate simple, exponential, and weighted moving averages.
Open toolCompute ADX, +DI, and -DI to gauge trend strength from OHLC data.
Open toolCompute Tenkan-sen, Kijun-sen, Senkou Span A/B, and the cloud.
Open toolThe PineScripter blog covers Pine Script development, debugging, and how to turn these indicators and strategies into code that compiles on TradingView.