The Infinite Impulse Response (IIR) Filter calculates a smooth moving average curve designed to reduce lag by incorporating momentum changes over a calculated lag period. It plots directly on the price chart and can dynamically change color based on whether th
Strat base [Alorse] is a template strategy script designed as a foundational framework for constructing custom trading logic in Pine Script. It plots a single Exponential Moving Average (EMA) on the main price chart and includes configurable inputs for enablin
Time Series Decomposition and Forecasting is an experimental indicator that decomposes close prices into trend and seasonality components. It evaluates a specified lookback window of price history to calculate centered moving averages, deseasonalized data, and
This strategy calculates and plots 9, 21, 50, 90, and 200-period Simple Moving Averages on the main price chart. It constructs a modified On-Balance Volume (OBV) metric and calculates a MACD oscillator based on this custom volume series rather than price. Long
Henderson Moving Average plots a finite impulse response smoother of the selected source on the price chart. It derives closed-form Henderson weights once, normalizes them to sum to one, and convolves them with a rolling window. The filter is designed to pass
FilledValueGap B002 is a strategy designed to execute trades when price moves to fill recently created gaps, operating under the assumption that price action will continue along the main trend direction. It uses Curie moving average closing lines for additiona
This indicator combines the Relative Strength Index, Moving Average Convergence Divergence, and Bollinger Bands to identify setup signals during market consolidation. A long signal requires an RSI pullback under 50 following overbought conditions, a MACD histo
This strategy enters long when RSI is above a minimum threshold and price is above a trend EMA, and short when RSI is below a maximum threshold and price is below that EMA. It opens a trade only while flat. Exits place an ATR multiple as the stop and a larger
This strategy plots directly on the price chart, drawing a multi-line stepped channel calculated from a simple moving average of OHLC4 expanded by Average True Range multipliers. It identifies potential mean-reversion setups, executing buy, sell, trim, and exi
RR Dangov is a price-chart strategy that combines optional confluence modules for entries. The trader selects a primary and a secondary source from Guppy moving averages, VWAP, an opening-range breakout, Supertrend, or CPR, and can add WaveTrend, stochastic, a
This strategy combines the WaveTrend oscillator with the Squeeze Momentum indicator. It calculates WT1 and WT2 lines along with their cross signals and color-coded entries on a separate pane. Bollinger Bands and Keltner Channels detect squeeze periods for addi
This breakout strategy enters long positions when the price moves above the upper Bollinger Band, Parabolic SAR, and a 100-period exponential moving average, provided ATR confirms elevated volatility. It allows opening multiple scaled entries up to a user-defi
This strategy detects breakout confirmation and fakeouts using a multi-factor causal audit model on the price chart. It grades market conditions across four factors: volume surge over a moving average threshold, price alignment above a higher-timeframe EMA, mi
This indicator scans price action and multiple technical oscillators to detect regular and hidden divergences, displaying them directly on the price chart. It checks up to ten indicators including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, Chaikin Mone
This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc
Chebyshev Type I Filter (CHEBY1) calculates a second-order Chebyshev Type I lowpass digital filter directly on the price chart. It provides noise reduction and trend smoothing with steep roll-off characteristics governed by controlled ripple in the passband. T
This indicator calculates a 2-pole Infinite Impulse Response highpass filter to isolate higher-frequency components or remove trends from a given price source. It computes an internal highpass value based on a configurable length parameter and plots the result
This indicator calculates a Variable Index Dynamic Average (VIDYA) by dynamically adjusting a moving average according to Chande Momentum Oscillator values and smoothing the result. It plots directly on the main price chart to help traders evaluate current tre
The script plots a WaveTrend oscillator in a separate pane, calculating TCI as an EMA of a normalized price deviation and its 4-bar SMA. It displays overbought and oversold levels with colored circles for WT1-WT2 crossovers and bar coloring on crossover bars.
This indicator calculates and plots the Jurik Moving Average directly on the main price chart. It uses an adaptive smoothing algorithm that dynamically adjusts to market volatility to reduce lag while minimizing overshoot. The script does not generate buy or s
This strategy executes breakout trades using Bollinger Bands, an exponential moving average, Parabolic SAR, and an ATR volatility filter. Long entries open when price closes above the upper band, the SAR, and the EMA while ATR exceeds its moving average, with
The Map Regime Tracker strategy evaluates market structure using a 20-period exponential moving average and a 50-period simple moving average. It stores regime thresholds inside a map object initialized on the first bar. When the fast EMA is above the slow SMA
This indicator is a Pine Script v6 fixture that calls the built-in simple moving average with a length of ten and plots the result in a separate pane. The first argument is the string close rather than a price series, so the call does not match the expected ar
This overlay indicator identifies regular and hidden divergences across multiple momentum and volume oscillators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, and MFI. Divergence signals are determined using customizable pivot point period
The Kaufman Adaptive Moving Average (KAMA) calculates a moving average that adjusts its sensitivity based on market volatility and noise. It computes an Efficiency Ratio by comparing price directional change over a specified period to overall market volatility
This indicator analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe
Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM
This multi-timeframe indicator calculates an adaptive trailing stop line based on Bollinger Bands evaluated on a user-selected resolution. It calculates standard deviation and simple moving average bands from the higher timeframe data, tracking trend shifts wh
This price-chart strategy opens a position opposite the direction of a newly filled gap, on the idea that price continues the prevailing trend after the gap is filled. Stop loss can be sized from the gap distance and is on by default; take profit, trailing tak
The Bull/Bear Volume Diagram indicator calculates and displays directional volume in a separate pane below the price chart. It categorizes volume based on candle direction, plotting positive histogram columns for bullish bars and negative histogram columns for
This indicator plots a MACD line, a signal line, and a histogram in a separate pane. It calculates the oscillator as the difference between a fast and a slow moving average of a chosen source, then smooths that result for the signal. Each average can be an SMA
SAIYAN OCC Strategy is a price-chart strategy that builds a short moving average of open and close prices using TEMA, Hull, or ALMA and colours bars by trend. It can take long, short, or both directions, optionally from Heikin Ashi closes or a multiplied alter
This strategy computes a 2x2 covariance matrix from short-term differences in close-open and high-low ranges. It extracts the largest eigenvalue of the matrix as a volatility measure and compares it to its own simple moving average. When the largest eigenvalue
P_err_wrong_arity is a minimal Pine Script v6 indicator written as a test fixture for compiler parsing and arity validation. It attempts to call the built-in simple moving average function using only the close price without providing the required length argume
A swing strategy that goes long when the SuperTrend (period 10, multiplier 5) is bullish, price is above a rising 200-period EMA, and the long side is enabled. Shorts follow the mirror rules but are switched off by default. An optional partial exit closes a se
This indicator overlays multiple smoothed moving averages, candlestick reversal patterns, and trading session highlights directly onto the price chart. It calculates 21, 50, optional 100, and 200-period smoothed moving averages alongside a short-term moving av
This overlay indicator scans price pivots for regular and hidden divergences against several oscillators at once, including MACD, MACD histogram, RSI, stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin money flow, money flow index, and an optional e
This indicator calculates the standard Moving Average Convergence Divergence (MACD) using 12, 26, and 9 period exponential moving averages, plotting the MACD line, signal line, and colored histogram in a separate pane. It identifies regular and hidden divergen
This strategy combines standard Moving Average Convergence Divergence (MACD) crossovers with Volume Weighted Average Price (VWAP) level interactions. It enters long positions when the MACD line sits above its signal line and short positions when below. Positio
The Laguerre Filter is a technical indicator designed to reduce lag while smoothing price data using John Ehlers' time-warping Laguerre polynomials. It processes a selected price source across four recursive filter components governed by a user-defined damping
This overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit
FilledValueGap E002 is a trading strategy that enters positions opposite to the direction of a filled value gap, operating on the premise that the prevailing trend will resume after gap completion. It utilizes Curie closing moving averages as trend filters to
The Capital Rotational Event (CRE) indicator tracks capital flows and rotational momentum between two selectable assets, defaulting to SPY and GLD. It calculates a relative strength ratio between the target assets, smoothed by a moving average, along with a mo
This indicator calculates and displays the Relative Strength Index, Slow Stochastic, and a normalized MACD line together in a separate pane. It plots the oscillators alongside customizable overbought, middle, and oversold threshold levels with shaded backgroun
This script calculates a Volume Weighted Moving Average with length 24 using high low close and volume data then plots it directly on the price chart. The VWMA line appears in blue. It also draws an upper band in red and a lower band in green whose distances f
Calculates Kaufman's Adaptive Moving Average (KAMA) based on market efficiency and volatility over a specified lookback period. It dynamically adjusts smoothing constants using fast and slow exponential moving average parameters, smoothing prices during choppy
This Pine Script strategy trades the NASDAQ 100 index during peak hours using EMA crossovers, RSI, and VWAP filters. Long entries occur when close exceeds the 9-period EMA which is above the 21-period EMA, with RSI above 50, price above VWAP, EMAs aligned, and
This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart. It triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation.
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.