A long-only strategy built on a rolling cumulative volume delta estimated from where each bar closes within its range. It enters when buyers dominate by a set margin, price has stayed above a trend SMA for several bars, RSI is above a minimum and the session f
Jasper Working OB Strategy is an indicator that detects bullish and bearish order blocks (OB) from fair value gaps and displacement conditions. It stores the OB zones on the chart and maintains persistent memory of touches to these zones. Reversal signals trig
A trend indicator for the price chart that draws a moving-average trend line, 45 periods by default and selectable as SMA, EMA, WMA, HMA or VWMA, offset by an ATR multiple. It detects buying and selling pressure with an adjustable threshold, and can colour can
This indicator reads the native footprint of each bar to find buy and sell volume imbalances at each price row. A row counts as imbalanced when one side exceeds the other by a set multiplier, checked diagonally or across the row depending on the chosen method,
A strategy on the price chart that trades smart money concepts. It detects internal and swing market structure, order blocks and fair value gaps, and can require a fair value gap and a premium or discount position before entering. Optional filters use divergen
This indicator requests Federal Reserve, European Central Bank, People's Bank of China, and Bank of Japan balance-sheet series, plus US reverse-repo and Treasury General Account balances. It converts each series to trillions of US dollars, subtracts reverse re
This indicator detects and highlights classic three-candle Morning Star and Evening Star reversal patterns on the price chart. It checks for a large directional body on the first candle, a small body on the second candle, and an opposing large directional body
A strategy for range box breakouts whose header comments describe changes from an earlier version: a tighter ATR stop, a trailing profit exit that triggers later, an EMA 50 direction filter, a stricter volume filter and a higher box quality score. Orders are f
This long-only strategy automates staged entries and exits based on Bitcoin all-time high drawdowns and percentage gains. It scales into positions across five configured percentage drop levels from the highest recorded price. Profit taking occurs in five parti
A second version of a four-hour rounded bottom and top pattern indicator. A sharp drop or pump followed by a slow recovery or decline, filtered by a daily EMA, creates a long or short setup. Risk is expressed in R multiples with an ATR-based stop, staged targe
This strategy looks for VWAP bounce and rejection trades on the price chart during the regular trading session. It marks a percentage band around session VWAP and enters when a rejection candle meets a minimum wick-to-body ratio and volume exceeds a multiple o
A course example strategy that trades a simple moving average crossover. It goes long when a 14-period SMA crosses above a 28-period SMA and goes short when it crosses below, which reverses any open position. Both averages are plotted on the price chart. The l
The RSI Divergence Detector calculates Relative Strength Index (RSI) values and compares pivot highs and lows between price action and the RSI oscillator. It identifies four distinct divergence types: regular bullish, regular bearish, hidden bullish, and hidde
A long-only strategy that enters on a close above the prior 20-bar high or on a cross back above a 50 EMA, in both cases only while price is above a 200 EMA. It holds one position sized at 90 percent of equity and exits when the close falls below a Chandelier-
This library computes Fair Value Gap imbalances for both bullish and bearish market structures. It exports eight deterministic outputs in order: bullCreated and bearCreated boolean flags, bullTop and bullBottom price levels, bearTop and bearBottom price levels
This indicator plots dynamic support and resistance lines directly on the price chart to identify potential trend shifts and reversal points. It uses a custom Supertrend calculation paired with an ATR-based volatility heatmap applied to the background. Traders
A strategy that combines up to five external buy and sell signal sources, each with its own name and usage mode, and manages positions with ATR-based exits and an optional moving average exit. A switch chooses between faster intrabar exits and safer exits that
An experimental strategy lab script that simulates long, short and a second long position inside a date window, with a daily EMA 12 and EMA 26 cross as the trend filter. It tracks average entry prices, open profit, drawdown, win and loss counts and exchange fe
This strategy plots on the price chart and looks for confirmed pivot highs and lows using left and right lookback bars. It opens a long position when a pivot low is confirmed and a short position when a pivot high is confirmed. Position size defaults to the fu
A Thai-language indicator that builds a portfolio summary from user-entered holdings and shows it as tables and a small chart on the price chart. It compares portfolio return against a benchmark symbol, groups results by period such as quarter, and supports an
A developer test indicator in a separate pane that checks how much lower timeframe and higher timeframe history is available on the current chart. It requests volume times mid price from the chart timeframe and from a three-minute lower timeframe, then places
This indicator plots TradingView's On Balance Volume in a separate pane. It optionally overlays an EMA or SMA signal line and colors both lines by whether OBV is above or below that signal. Users can change the smoothing type and length, hide the signal, fill
Sick Sigma detects extreme statistical standard deviation moves (sigma events) to execute trades directly on the main price chart. The strategy supports both momentum and mean-reversion trading styles. Traders can configure calculation lookback periods, sigma
The Augmented Dickey-Fuller indicator calculates statistical stationarity and tests for unit roots in price series over a rolling window. It performs ordinary least squares regression on differenced historical price data to compute a t-statistic and an estimat
This strategy combines an exponential moving average ribbon with MACD momentum indicators to identify trend-following entry and reversal signals. It draws in a separate pane, tracking MACD signal crossovers, zero-line crosses, and EMA structural alignments. En
The Ichimoku Cloud indicator plots key components of the traditional Ichimoku Kinko Hyo system directly on the price chart. It calculates the Conversion Line over 9 periods and the Base Line over 26 periods using Donchian midpoints. It projects Leading Span A
Fibonacci Auto Buy/Sell Signals calculates dynamic Fibonacci retracement levels (0.236, 0.382, 0.5, 0.618) and extension levels (1.618, 2.618) based on 50-period swing highs and lows. It plots dotted retracement and extension lines directly on the price chart.
This indicator plots the initial balance high, low, midpoint and optional Fibonacci levels for a user-defined session on the price chart. It tracks a separate break session and includes settings groups for extension lines, percentile lines and tables. Users ca
The AFIRMA indicator calculates a weighted moving average via FIR filter coefficients from Hanning, Hamming, Blackman or Blackman-Harris windows. It optionally applies least-squares cubic polynomial fitting for autoregressive prediction. The script plots the A
Moon Declination & More calculates and plots the astronomical declination of the Moon, Sun, and lunar nodes in a separate pane. Based on ELP2000-82 and VSOP87 ephemeris models, it tracks celestial motion with optional lunar phase coloring, zodiac sign transiti
Normalized Volatility Adjusted Relative Strength compares the chart symbol against a benchmark instrument such as SPY while adjusting for price volatility. The indicator calculates individual ATR-normalized price changes for both assets over a specified lookba
The Zen Consecutive Bar Streak indicator calculates and tracks consecutive directional candle streaks directly on the main price chart. It determines whether each bar is bullish, bearish, or neutral based on its close relative to its open. When two or more con
This feature matrix test script demonstrates the execution of a guarded runtime.error call in Pine Script v6. It uses an unreachable conditional statement based on the bar index to verify that the runtime error isn't triggered unexpectedly. The indicator plots
Test Plot Parsing is a minimal test script designed to verify scope detection and syntax parsing in Pine Script v6 development environments. It plots basic price values, including close, open, and high series, in a separate indicator pane. The script intention
HTF Statistical Zones plots historical percentile bands around the 18:00 New York day open, plus session boxes, opening-range lines, and projected targets on the price chart. Upper and lower day zones use selectable inner and outer percentiles, with optional p
A trend-following strategy based on Ed Seykota's Donchian breakout framework, modified to take a single full-risk entry instead of pyramiding multiple units. It enters long or short on 55-bar channel breakouts with ATR-based position sizing and an initial stop
This intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand
Auto Trendlines calculates support and resistance lines by identifying confirmed pivot highs and lows over a specified lookback window. It validates trendline candidates using ATR-based touch tolerances, touch counts, line spans, and max violation thresholds.
Nexural QWAP calculates a volume-weighted average price combined with a cumulative volume delta order flow engine directly on the main price chart. It analyzes market structure by detecting volume absorption, liquidity sweeps, price-CVD divergence, stacked imb
Calculates an adaptive baseline using an EMA and constructs an ATR channel smoothed over a user-defined length. It combines channel breakout conditions with RSI and MACD momentum agreement to generate buy and sell signals. Signals are displayed on the main pri
TR Margin Pulse calculates and plots the ratio of marketwide margin calls to required margin using Takasbank data generated via MCP templates. Rendered in a separate pane, the line turns red when exceeding a predefined stress threshold and teal when below. A s
This indicator tracks and visualizes the initial balance range over customizable trading sessions directly on the price chart. It plots the high, low, and midpoint of the opening balance, with optional session extension levels, an anchored VWAP, and shaded hig
The Hybrid Volume Spread Analysis (HVSA) indicator calculates a volume-weighted momentum oscillator in a separate pane by multiplying moving averages of open and close prices by relative volume change. It evaluates price spread dynamics adjusted for volume cha
This indicator overlays Bollinger Bands with two exponential moving averages directly on the price chart. It calculates standard Bollinger Bands using a selectable basis moving average type, length, and standard deviation multiplier. Alongside the bands, it co
This indicator detects regular and hidden divergences between price pivots and RSI or Williams %R. Confirmed swing highs and lows, which wait a set number of bars on each side, are compared with oscillator extremes. Regular divergences mark possible reversals,
This indicator draws a two-column dashboard table on the price chart for up to three user-selected symbols, defaulting to EURUSD, GBPUSD, and USDJPY. For each symbol it requests four-hour highs, lows, and closes from the two prior candles and classifies a high
TheStrat Suite classifies real OHLC bars with Rob Smith's TheStrat method and draws labels, targets, and stop levels on the price chart. It detects inside bars, hammers, shooters, outside bars, and Failed 2 range reclaims, then shows magnitude and exhaustion t
This indicator constructs a synthetic trading pair from two user-selected instruments using division or multiplication. It retrieves multi-asset price data and optionally applies a forward pricing model to the second leg using financing rates, storage costs, y
Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
Learn to Use Pine Scripts
Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.