The Median indicator calculates the median of a selected source series such as the high-low average over a user-defined length and plots it as a red line on the price chart. It draws an EMA of the median as a blue line and fills the space between them, changin
This indicator plots a Variable Index Dynamic Average on the price chart. It smooths the selected source with an exponential factor that scales by a volatility index, the ratio of a five-bar standard deviation to the standard deviation over the chosen period,
Flat Multiplier is a Fibonacci flat indicator that plots stepped price lines on the chart. It sets a range using start and end timestamps, then extends the price with time and height multipliers based on Fibonacci ratios to calculate new levels. The red line s
A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from ATR and an optional volume-weighted source, then lets a flip through only when several gates pass: choppiness, baseline slope, volatility expansion, efficiency
This strategy draws on the price chart and trades a fast and slow Commodity Channel Index against an exponential moving average regime. It enters long when the fast CCI crosses above the lower extreme, the slow CCI is already above that level, and price is abo
Provides a collection of technical analysis calculation functions for use across Pine scripts. It exports implementations for various indicators and mathematical formulas, including oscillators like the Awesome Oscillator, Aroon, and Schaff Trend Cycle, moving
This strategy trades breakouts beyond Bollinger Bands on the main price chart. It features optional trend filters using various moving average types, a volatility filter based on standard deviation relative to its moving average, and a daily rate-of-change fil
This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu
The VAMA indicator calculates a volatility-adjusted moving average whose length dynamically changes according to market volatility measured by ATR. It multiplies a base length by the ratio of long-term ATR to short-term ATR to obtain an effective length for a
Calculates the standard SuperTrend indicator and tracks the percentage return of each completed trend segment. Once a user-defined minimum number of segments is gathered, the indicator computes the historical mean return and standard deviation. When the active
This strategy adapts the Chandelier Exit indicator to build a trend-following system with added audit filters. It calculates trailing stop levels using ATR and highest highs or lowest lows to determine directional shifts. Entries are filtered through a long-te
This indicator plots multiple auto-multiplying Keltner Channels across different lookback lengths (5, 10, 25, 50, 100, and 200 periods) directly on the main price chart. It calculates exponential moving averages and range-based band offsets, dynamically adjust
This strategy executes short trades based on Bollinger Bands and the Relative Strength Index (RSI). It plots the Bollinger Bands on the price chart and enters a short position when the closing price crosses above the upper band while RSI remains below 70. An e
Smooth Trend Radar Strategy calculates a double-smoothed Supertrend baseline using WMA and EMA to identify trend direction and sideway regimes. It plots baseline rejection signals on flips, trend slope filters, and statistical overextension highlights with can
This Pine Script strategy implements the Supertrend Elite Trend System for crypto markets. It combines signals from ten indicators including Supertrend, ALMA smoothing, CTI correlation, STC trend catcher, Gunxo sniper, DEMA with DMI, MM percentile, and DMI loo
The Historical Vol MA Band Indicator calculates volatility bands around a simple moving average using 52-week high and low data from the weekly timeframe. It plots upper, middle, and lower bands on the main price chart along with optional trailing stop-loss le
A strategy that takes trades from a confirmed trend and regime engine using ZLEMA, a slow baseline, HMA, ADX, choppiness, efficiency, RSI and gap or shock filters. Each trade gets a drawn box, a latched initial stop loss, three partial take profit brackets and
A Pine Script v5 indicator that draws support and resistance zones on the price chart from recent pivot highs and lows. Zone width is based on ATR times a multiplier, capped by a maximum percentage, and overlapping zones can be aligned and extended to the righ
This strategy plots modified Bollinger Bands and an exponential moving average on the price chart. It watches for closes crossing the upper or lower band, optionally filtered by the EMA trend and extra crossover or crossunder checks. Long stops use the recent
Calculates an ATR-based z-score oscillator and normalized volume across multiple assets, screening up to 21 symbols simultaneously. Outlier detection filters extreme standard deviations before normalizing values between 0 and 100. It visualizes the comparative
The Gann Auto-Step & Multiplier + Range Info indicator plots on the price chart. It calculates the high-low price range over a user-defined time period, separating values for green and red candles. Swing pivots are detected using a configurable pivot length. T
An overlay always-in flip indicator where a buy closes a short and opens a long, and a sell does the reverse, committed only on confirmed bars. It rebuilds an earlier trail design with an ATR trail, slope and separation checks, range hysteresis, a strict early
This strategy plots Donchian upper and lower channels along with the midpoint on the price chart. It generates long signals on a price crossover above the upper Donchian band when volume exceeds a moving average multiple if the filter is enabled, and short sig
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier. It enters alternating long positions when price crosses above the lower band and short positions when price crosses below the upper band. Open tr
An overlay indicator that scores trend, momentum and structure and prints buy and sell signals only on confirmed bars. Inputs include a zero-lag EMA, slow EMA, HMA, ATR trail, ADX, choppiness and efficiency range detection, RSI, MACD, a breakout lookback and o
This strategy filters fakeout signals using a 4-layer causal scoring system to ensure high-conviction entries on the price chart. It computes a sovereign score based on volume exceeding a moving average multiplier, alignment with higher-timeframe EMA, minimum
This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier to identify entry conditions. It triggers pending stop orders and outputs formatted alert messages compatible with TradingConnector for automated
This indicator draws horizontal price levels and bands anchored to recent price points directly on the main chart. It calculates a central midline along with inner and outer symmetrical boundary lines offset by specified multiples of the instrument's minimum t
An overlay indicator that prints buy, sell and exit signals only on confirmed bars. It extends the v7 scoring with hysteresis for range and trend states, so one borderline candle cannot flip the regime, and with a pause after abnormal gaps, shock candles and e
This overlay strategy builds long and short signals from a fast EMA crossing a slow EMA. Optional filters require elevated volume versus a volume average, a set number of confirmation bars, alignment with a higher-timeframe EMA, and a minimum bar move versus A
An indicator on the price chart that plots a trailing stop line offset from a chosen source by a multiple of the Average True Range. Settings set the source, the ATR length and the ATR factor. The line can be drawn as a line, circles, diamonds or arrows in one
This strategy initiates momentum breakout positions when the Relative Strength Index reaches extreme levels and Bollinger Band standard deviation is expanding. Long trades open when RSI is above the overbought threshold and bands are not contracting, while sho
This strategy evaluates moving average squeezes and Squeeze Momentum section height changes to identify potential entry signals. It opens trades based on momentum comparisons across moving average thresholds. The script features customizable risk management co
This indicator estimates Black-Scholes call and put prices and selected Greek values from the chart's spot price. It runs only on the daily timeframe and overlays its output on the price chart. Users set the strike, expiry date and time, implied volatility, an
This strategy detects RSI momentum crossovers to enter long positions with fixed size. When holding a position it places a bracket exit using ATR-based stop and limit levels. The OCA name ensures any filled side cancels the other. The script verifies that stra
An overlay signal indicator that makes entries harder and reversals slower than earlier versions. Entries need a persistent confirmed trend, a fresh trigger, and price not too extended from the zero-lag line. Exits need opposite evidence and a minimum ATR retr
This price-chart strategy enters long when a fast EMA crosses above a slow EMA and short when it crosses below, provided optional filters pass. Volume must exceed a multiple of its average, price must sit on the matching side of a higher-timeframe EMA, and the
An indicator on the price chart that plots an ATR-based volatility stop taken from a higher timeframe. The higher timeframe is picked in discrete steps, as a multiple of the chart timeframe, or as a fixed timeframe. It can detect when chart bars breach the hig
This indicator calculates an outlier-filtered moving average based on statistical filtering concepts. It stores close prices in a rolling array over a user-defined length, calculates the mean and standard deviation, and excludes values falling within a specifi
This strategy buys when price breaks above the upper Bollinger Band and exits by trailing a stop on the lower band. Trades can execute on a wick or a candle close, and an optional fixed-percentage stop can set a tighter initial exit until the lower band catche
The Stoller Average Range Channel (STARCHANNEL) plots volatility-based bands around a central baseline directly on the price chart. It calculates a middle line using a simple moving average of the selected price source and constructs upper and lower boundaries
This indicator tracks Bitcoin market sentiment by comparing 28-day price changes against 28-day percentage changes in unique active addresses retrieved via Quandl. It plots the daily active address rate of change alongside price momentum and surrounds it with
A test strategy from a reference corpus that checks independent exit brackets. It goes long two units when a 9-period EMA crosses above a 21-period EMA and RSI is below 60. Two exit orders each handle one unit, one with a stop and target one ATR from the avera
This strategy calculates standard Bollinger Bands and plots the basis, upper band, and lower band directly on the price chart. It places breakout stop orders, entering long when price crosses above the upper band and short when price falls below the lower band
This indicator evaluates market structure events, including breaks of structure, liquidity sweeps, and order blocks, by calculating reaction speed, validation, and volatility activity scores. It plots composite scores in a separate pane while offering optional
A price-chart indicator that plots several EMAs with a coloured 8 and 21 cloud, Bollinger Bands, and an optional VWAP. Buy and sell triangles mark 8 and 21 EMA crossovers, and further intraday patterns use three higher lows or three lower highs. An optional vo
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.