TradingView Category Directory • 109 Resources

Backtesting & Optimization

Read Strategy Tester reports and examine costs, fill assumptions, and sample selection. Historical tests cannot reproduce every live execution condition.

Topic Guides & Articles (109)

Read the linked page for its scope, examples and limitations.

How to Backtest on TradingView

Read guide

TradingView Bar Replay for Indicator Validation

Read guide

TradingView Strategy Tester Reports Explained

Read guide

Heikin Ashi Backtests on TradingView: Price Assumptions

Read guide

TradingView Backtest Accuracy: Assumptions to Check

Read guide

TradingView Strategy Optimizer: Test Input Ranges

Read guide

Set TradingView Backtest Date Ranges

Read guide

Test a TradingView Strategy Across Multiple Stocks

Read guide

TradingView Strategy Tester No Data: Diagnostic Checklist

Read guide

TradingView Sharpe Ratio: Calculation and Interpretation

Read guide

TradingView Bar Magnifier: Intrabar Fill Tests

Read guide

TradingView Historical Resolution Errors

Read guide

Calmar Ratio: Return Window and Drawdown Definitions

Read guide

Profit Factor: Calculation, Costs and Sample Size

Read guide

Risk of Ruin Calculator: Assumptions and Stress Tests

Read guide

Walk-Forward Analysis for TradingView: A Reproducible Protocol

Read guide

Kelly Criterion for Trading: Estimation Error and Fractional Sizing

Read guide

Maximum Drawdown: Peak-to-Trough Measurement

Read guide

Monte Carlo Trading Simulation: Resampling and Limits

Read guide

Backtest Overfitting: Selection Bias and Validation Design

Read guide

Backtesting vs Forward Testing: Evidence and Reconciliation

Read guide

Trading Expectancy: Per-Trade Edge After Costs

Read guide

TradingView Deep Backtesting: Coverage, Limits and Comparability

Read guide

Stop vs Stop-Limit Orders: Trigger and Fill Assumptions in Pine

Read guide

Tracking Error for Strategy Research: Alignment and Annualization

Read guide

Forex Position Size Calculator: Pips, Lots and Account Currency

Read guide

Time-Weighted vs Money-Weighted Returns for Trading Journals

Read guide

Annualized Backtest Returns: Holding Period, CAGR and Short Samples

Read guide

Risk-Adjusted Returns for TradingView Strategies: Choose the Right Metric

Read guide

Tail Risk in Trading Backtests: Rare Losses and Missing Scenarios

Read guide

Risk Management for TradingView Strategies: Exposure and Review Rules

Read guide

Futures Position Size Calculator: Ticks, Contract Multipliers and Costs

Read guide

Downside Risk for Trading Strategies: Target Return and Deviation

Read guide

Slippage in TradingView Backtests: Ticks, Spreads and Cost Scenarios

Read guide

Excess Returns in Backtests: Risk-Free vs Benchmark Baselines

Read guide

Simple vs Log Returns in Pine Script and Backtest Analysis

Read guide

Expected Shortfall and CVaR for Backtests: Tail Averages

Read guide

Volatility Drag in Backtests: Arithmetic vs Geometric Returns

Read guide

Omega Ratio for TradingView Backtests: Threshold-Sensitive Returns

Read guide

Trailing vs Fixed Stops in TradingView Backtests

Read guide

Volatility Clustering on TradingView: Conditional Risk and Regimes

Read guide

Crypto Position Size Calculator: Spot, Linear and Contract Assumptions

Read guide

Upside and Downside Capture Ratios for Strategy Benchmarks

Read guide

Rolling Returns for TradingView Strategies: Overlap and Window Choice

Read guide

MAE and MFE for TradingView Backtests: Excursion vs Realized P&L

Read guide

Position Size Calculator for TradingView Plans: Units and Risk Budgets

Read guide

Trading Win-Rate Calculator: Breakevens, Samples and Uncertainty

Read guide

Information Ratio for TradingView Strategies: Benchmark and Tracking Error

Read guide

Value at Risk for Trading Backtests: Horizon, Confidence and Method

Read guide

Deflated and Probabilistic Sharpe Ratios: Selection and Sampling Bias

Read guide

Sterling Ratio for Backtests: Drawdown Definitions Matter

Read guide

ATR Position Sizing on TradingView: Volatility Distance and Units

Read guide

Breakeven Stops on TradingView: Trigger, Costs and Fill Timing

Read guide

Conditional Drawdown at Risk: Equity-Path Tail Measures

Read guide

Drawdown Duration: Peak, Trough, Recovery and Open Drawdowns

Read guide

Fixed-Ratio Position Sizing: Delta, Equity Steps and Drawdowns

Read guide

Gain-to-Pain Ratio for Trading Results: Periods and Denominators

Read guide

OHLC Volatility Estimators on TradingView: Parkinson and Alternatives

Read guide

Purged Cross-Validation for Trading Strategies: Labels and Embargo

Read guide

Recovery Factor for TradingView Backtests: Net Profit over Drawdown

Read guide

System Quality Number: Trade Units, Sample Size and Dependence

Read guide

Time-Based Exits in TradingView: Bars, Sessions and Expiry

Read guide

Ulcer Performance Index: Return Relative to Drawdown Pain

Read guide

Look-Ahead Bias: Audit Availability Times in TradingView Tests

Read guide

Portfolio Turnover: One-Way, Two-Way and Rebalance Definitions

Read guide

Transaction Cost Analysis: Benchmark Each Trading Decision

Read guide

Hedge Ratios for TradingView Spreads: Dollars, Beta and Regression

Read guide

Market Impact in Backtests: Size, Participation and Capacity

Read guide

Implementation Shortfall: Decision Price, Delay and Unfilled Orders

Read guide

Volatility Risk Premium: Match Horizons Before Comparing IV and RV

Read guide

Bipower Variation: Separate Continuous Volatility and Jumps

Read guide

Volatility Targeting: Lagged Estimates, Leverage Caps and Turnover

Read guide

Survivorship Bias in TradingView Research: Reconstruct the Universe

Read guide

Heteroskedastic Backtest Returns: Diagnostics and Consequences

Read guide

Pareto Frontiers for Trading Strategies: Return, Risk and Turnover

Read guide

Spearman Correlation for Trading Signals: Ranks, Ties and Returns

Read guide

Autocorrelation in Trading Returns: Lag, Overlap and Effective Samples

Read guide

Bayesian Optimization for Trading Parameters: Trials and Validation

Read guide

Mutual Information for Trading Features: Binning and Leakage

Read guide

Kendall Tau for Signal Research: Concordance and Ties

Read guide

ADF Tests for Trading Spreads: Lags, Trends and Null Hypothesis

Read guide

Risk Parity Research: Covariance, Contributions and Rebalancing

Read guide

Bootstrap Intervals for Backtest Metrics: What to Resample

Read guide

Jarque-Bera Tests for Strategy Returns: What Rejection Means

Read guide

Multiple Testing for Trading Signals: Families and Error Rates

Read guide

Nested Validation for Trading Models: Keep Tuning Inside Training

Read guide

Robust Strategy Optimization: Choose Across Adverse Scenarios

Read guide

Block Bootstrap for Trading Returns: Preserve Local Dependence

Read guide

Spectral Entropy for Market Research: Normalize the Spectrum

Read guide

Sample Entropy in Price Research: Window, Tolerance and Data Length

Read guide

Losing Streak Calculator: Independence Assumptions and Sample Horizon

Read guide

Average Holding Period: Trade Durations and Capital Weighting

Read guide

Burke Ratio: Multiple Drawdowns and Sampling Conventions

Read guide

Cointegration Trading Research: Residual Tests and False Pairs

Read guide

Equity-Curve Filters: Strategy Returns as a Tradable State

Read guide

Fourier Analysis for Trading: Sampling, Leakage and Nonstationarity

Read guide

Genetic Search for Trading Parameters: Fitness and Selection Bias

Read guide

Mean-Reversion Half-Life: Estimation, Sampling and Failure Cases

Read guide

Kappa Ratios: Lower-Partial-Moment Order and Target Sensitivity

Read guide

Optimal f Position Sizing: Historical Worst Loss and Fragility

Read guide

Pain Ratio: Return Above Threshold per Average Underwater Loss

Read guide

Permutation Entropy for TradingView: Ordinal Patterns and Ties

Read guide

Portfolio Heat: Aggregate Open Risk and Correlated Gaps

Read guide

Portfolio Scenario Analysis: Joint Shocks and Repricing Assumptions

Read guide

Risk Contributions: Marginal vs Component Portfolio Risk

Read guide

Upside Potential Ratio: Target Return and Downside Denominator

Read guide

Variance-Ratio Tests for Market Research: Horizons and Overlap

Read guide

Volatility of Volatility: Estimator Changes and Unstable Risk

Read guide

Wavelet Analysis for Trading Research: Scale and Boundary Effects

Read guide

Browse Other TradingView Categories

Frequently Asked Questions

What does this backtesting & optimization directory cover?

Examine trading rules with bar replay, cost assumptions, date ranges, risk metrics, and multi-symbol tests. The directory links to 109 guides. Check each guide for sources, examples, and limitations.

Does a working script prove that a trading rule is reliable?

No. Compilation checks language syntax. You still need to examine signal timing, data availability, order assumptions, costs, and performance outside the period used to choose the rules.