This indicator applies kernel density estimation to analyze price distributions and residuals directly on the main chart. It calculates probabilistic moments, modes, and density profiles across sliding or session-anchored windows using selectable kernel functi
This indicator plots the Relative Strength Index, a momentum oscillator that measures the speed and magnitude of price changes using Wilder's RMA of gains and losses. It draws the oscillator and configurable upper and lower bands in a separate pane, with the l
This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.
This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore
This strategy builds Chandelier trailing stops from the highest high and lowest low over an ATR window, offset by an ATR multiple. The long stop only ratchets up and the short stop only ratchets down. Direction turns long when the close exceeds the prior short
SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent
This indicator highlights unusually high trading volume relative to a moving average baseline. It calculates a volume threshold by multiplying a simple moving average of previous volume bars by a user-defined factor. Volume is plotted as a column chart in a se
This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en
The GMMA indicator plots two groups of exponential moving averages on the price chart. The short-term group uses EMAs with periods 3, 5, 8, 10, 12 and 15. The long-term group uses EMAs with periods 30, 35, 40, 45, 50 and 60. The two groups are colored blue and
This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr
Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), VWAP metrics, and fractal-based divergence detection into a single separate pane indicator. It plots overbought and oversold threshold levels, identifies trend momentum waves, and highlig
This indicator maps the Asia, London, and New York sessions on the price chart. It draws each developing session range as a translucent box and places dashed liquidity rails at prior session highs and lows. Those rails remain until price sweeps them, then they
This indicator tracks multi-timeframe market structure across up to four user-defined timeframes in a separate pane. It identifies structural changes through Break of Structure (BoS) and Change of Character (CHoCH) events derived from pivot highs and lows. Use
This indicator identifies consolidation by checking if the closing price stays within a user-defined percentage of three moving averages: a 21-period SMA, a 50-period SMA, and a 65-period EMA. When the condition holds, it plots a green X marker below the candl
Lakshmi v1 Institutional Flow Engine is an overlay indicator that combines volatility channels, multi-timeframe order block levels, and volume-price anomaly signals. It plots an ATR-based adaptive channel alongside higher-timeframe supply and demand zones deri
This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab
This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty
This indicator calculates the Archer On-Balance Volume (AOBV) by applying custom exponential moving averages to standard On-Balance Volume data. It computes two distinct smoothed lines—a fast period of 4 and a slow period of 14—using a warmup compensation algo
This indicator tracks and displays open portfolio positions in an on-chart table overlay. It monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for ea
This indicator plots smart money concept structures directly on the price chart. It detects and visualizes market structure elements including change of character, break of structure, swing points, inducements, and liquidity sweeps. Additionally, it identifies
A visual indicator in a separate pane that renders a pseudo three-dimensional terrain of stacked momentum layers built from MFI or RSI, with a second layer based on a Hull-VWMA or ADX oscillator. Camera inputs set yaw, pitch and scale. It adds a slope-based fo
Shows an options book as a picture on the price chart, from an export pasted into a settings box. It draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike,
A simple trend indicator that compares the close with a long moving average, 100 bars by default, and a hysteresis band of two percent to reduce whipsaws. A buy appears when price closes above the band and a sell to cash when it closes below. The moving averag
A price-chart overlay that tints the chart background on up to five calendar dates chosen in the settings. Each slot has its own show toggle, year, month, day and colour, with a light yellow default. The dates are compared with the calendar date of each bar in
Calculates a 9-period fast EMA, 21-period slow EMA, and 200-period trend EMA overlaid on the price chart. It enters long positions when the fast EMA crosses above the slow EMA while price is above the 200 EMA, and short positions when the fast EMA crosses belo
This indicator builds a smart-money context frame in a separate pane by calling a private context engine. It exposes hidden numeric plots for schema version, readiness, bias, quality, market structure including break of structure and change of character, imbal
A minimal strategy that trades the close crossing a 152-period simple moving average. It enters long when the close crosses above the average and short when it crosses below, reversing the position each time. The length is fixed with no adjustable inputs, and
This Pine Script v6 indicator plots results from string functions including length, position, substring, replace, trim, split, upper, match, and contains. It also demonstrates type conversions with int, float, and tonumber, plus operator precedence examples su
This strategy combines multiple technical indicators into a unified trading system, including RSI, Williams %R, TSI, KDJ, Bollinger Bands %B, Nadaraya-Watson filter, and an RCI Ribbon. Traders can individually toggle each indicator module on or off while custo
A strategy based on the accumulation, manipulation, distribution idea. It finds a compressed Donchian range, waits for it to mature, then looks for a sweep of one boundary followed by a close back inside the range. A low sweep goes long and a high sweep goes s
The script calculates a weighted average of Heikin Ashi score values across four multi-timeframe periods derived from the signal timeframe. It also counts bullish and bearish signals from each timeframe and checks whether the required number of confirming sign
A long-only crypto spot strategy that finds support and resistance from pivots on four timeframes (5 minutes to 4 hours) and enters on a retest of support within a set number of bars. It blocks entries where price pierced support and reclaimed it, can treat br
Calculates retracement grid levels on the price chart using confirmed swing pivot highs and lows based on a user-defined pivot lookback. It allows traders to compare traditional Fibonacci levels against alternative ratio sets, such as thirds or an arbitrary 0.
TradeModeLibrary is a helper Pine Script library providing standardized trade state management logic for custom trading strategies. It exports functions representing different execution modes that accept position active status and signal directions. Based on t
Test fixture for a strategy-description simulator, drawn in a separate pane. It replays a generated rule set on the chart candles between a start and end time, with a ticker mapping check and an optional trace to the Pine logs. The comments state the policy: s
This indicator projects mirrored price and time targets based on user-defined reference points and detected swing pivots. It calculates mirror levels across linear or logarithmic scales, factoring in volatility ratios via short- and long-term ATR comparisons.
First Line is an introductory Pine Script v6 indicator that draws a constant horizontal value of 50 in a separate pane. It does not calculate price, volume, or oscillator data and does not generate buy or sell signals, entries, exits, or alerts. There are no i
An adaptive trailing-stop indicator on the price chart from the GoemonYae trading system community edition. It estimates price with a selectable filter, measures volatility with a choice of estimators such as Yang-Zhang, and builds an envelope that trails pric
Detects volume order blocks, zones formed when a fast and slow exponential average cross and volume builds around the extreme price, and draws them on the price chart as support or resistance lines. Six sensitivity tiers each give Tier 3 buy and sell markers w
This strategy executes mean-reversion trades using the Relative Strength Index combined with Bollinger Band boundary audits. It enters long when the RSI crosses above the oversold threshold while the bar low touches or breaches the lower Bollinger Band. Conver
This indicator draws supply and demand zones from confirmed swing highs and lows, using the candle body edge to bound each box. Zones extend to the right until price closes through them, then they are removed or greyed out, and only the newest zones per side a
This indicator implements an ICT and smart money concepts decision framework primarily tuned for gold and major assets. It plots order blocks, breaker blocks, liquidity pools, and premium-discount levels on the price chart. Entry conditions require strict disc
This strategy implements directional trading plans inspired by small-cap momentum patterns, incorporating Triangular Moving Average (TMA) crossings, VWAP thresholds, and breakout logic. It enters trades based on customizable combinations of price triggers, TMA
The SMC Market Structure Indicator identifies swing points and market structure on the price chart using Smart Money Concepts. It detects higher highs, higher lows, lower lows, and lower highs based on seed mode settings and pivot length. The script plots Brea
A strategy that places limit orders at the midpoint of a candle with no wick on the entry side, when a trend quality measure is above a bull threshold or below a bear threshold. Further filters cover close position within the candle, minimum body size relative
Fear and Greed Indicator combines five proxies into one 0 to 100 sentiment score in a separate pane: RSI with rate of change, inverted ATR, a market index read from a daily request, price position within Bollinger Bands, and distance from the recent high. Each
Multi Variable Declaration is a strategy designed to demonstrate multiple variable declaration syntax within a trading model. It calculates a 12-period price channel midpoint alongside an exponential moving average spread (EMA 9 minus EMA 21) to establish tren
Marks three-candle fair value gaps on the price chart as shaded boxes, using green for bullish gaps and red for bearish gaps. A gap is drawn once the bar is confirmed, and each box extends twenty bars to the right. Settings toggle each direction, change colour
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.