Calculates and plots a multi-band envelope on the price chart based on mean reversion principles and Keltner Channel concepts. Instead of standard moving averages, it uses advanced filters such as Ehlers SuperSmoother, Butterworth, Gaussian, or traditional ave
The Linear Regression Oscillator [ChartPrime] calculates a slope and intercept using linear regression over a specified lookback period, normalizing the values with a 100-period z-score calculation. It plots the normalized oscillator in a separate pane with dy
This indicator detects pivot highs and lows on the price chart using configurable left and right bars. It extends lines from recent pivots in green for lows and red for highs with Fibonacci 1.618 ratio projection. It calculates crossing points of the extended
An overlay indicator that fits a linear regression to closing prices of the previous period on a chosen timeframe, such as the prior day, and extends that line into the current period. The line is teal when the slope was up and red when it was down, candles ar
Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign
INCY Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for INCY stock directly on the price chart. The script generates green buy labels below price bars and red sell labels above bars at specific historical timestamps corres
This indicator calculates ZigZag swing points across multiple calculation methods, including ATR thresholds, pivot highs and lows, price action, and percent price movements. It scans the resulting price swings to identify harmonic patterns like Gartley, Bat, B
The Intraday Momentum Index calculates an oscillator bounded between 0 and 100 based on intraday price movement. It measures gains when the close is higher than the open and losses when the close is lower than the open over a set lookback period. Computed usin
This minimal demonstration script is an example from TradingView documentation illustrating basic drawing functionality in Pine Script v4. It creates a new drawing label on the price chart at each bar's high price using the bar index as the horizontal coordina
This overlay indicator marks a two-candle Tweezer Top bearish reversal on the price chart. It looks for a prior long bullish candle in an uptrend followed by a bearish candle whose high is nearly the same as the previous high, using an EMA of candle body size
This indicator calculates rolling dollar-denominated trade volume across four preset horizons (24 hours, 12 hours, 4 hours, and 1 hour) along with Normalized Average True Range (NATR). It compares current rolling volumes to previous bar values to indicate volu
SMC Killzone State Engine (Bidirectional) is an overlay indicator that implements a state engine to identify Smart Money Concepts (SMC) points of interest during specific trading killzones. It detects higher timeframe Fair Value Gaps (FVG) and Order Blocks (OB
The LOWESS indicator applies locally weighted scatterplot smoothing to price data to reduce noise and highlight trends. It calculates a smoothed line based on user-defined length. Additionally, it identifies pivot highs and lows using specified bar counts and
The Parallel Lines Live indicator draws geometric Fibonacci-based horizontal lines on the price chart. It computes a fractal phi ratio using the user-set Fibonacci expansion multiplier and tracks historical price touches along with bullish and bearish outcomes
An always-in flip indicator on the price chart, written in Pine version 5, where BUY exits a short and enters long and SELL does the reverse. It uses a wide Supertrend-style ATR trail with a cap on how far the trail can move per bar, plus an optional volume-we
INMD Tracker overlays historical ARK Invest buy and sell trade transactions directly onto the price chart using labeled markers. It places visual labels above or below price bars at specific historical timestamps to indicate institutional transaction activity
This indicator plots a ZigZag line on the price chart based on a user-defined percent reversal from the last pivot. It supports color flipping for gradient themes and real pivot visibility. Additional tools draw harmonic triangles, taps, and AB=CD patterns whe
This indicator reconstructs a low-pass filtered series from the selected source using a discrete Fourier transform. It applies a Hann window over a fixed window of 32, 64, or 128 bars, keeps only the chosen number of lowest-frequency harmonics, and adds their
This indicator draws a text label directly on the main price chart above each bar at the bar high. It calculates and displays the current bar index coordinates alongside the exact high price level on separate text lines without background styling. There are no
The Ultimate Oscillator combines short-term, medium-term, and long-term price momentum into a single bounded oscillator. It calculates buying pressure and true range across three configurable period lengths, defaulting to 7, 14, and 28 bars. By applying higher
This multi-timeframe indicator combines Smart Money Concepts (SMC) with customizable session killzones for London and New York trading. It identifies market structure points such as Break of Structure (BOS) and Change of Character (CHoCH), alongside Points of
Indicatorv5SMC / ICT / price actionSessions & time
This indicator plots price data and is designed to detect divergences between price action and the Money Flow Index (MFI). It uses pivot highs and lows to identify potential regular and hidden bullish or bearish divergence signals. By evaluating momentum shift
This indicator calculates a volatility-adaptive SuperTrend by applying k-means clustering to ATR values over a user-defined training period. It segments historical volatility into high, medium, and low clusters to dynamically adjust the SuperTrend bands to shi
This indicator plots dynamic parallel lines based on logarithmic fractal price grid levels adjusted by a phi ratio multiplier. It scores price levels using a weighted quantitative model incorporating estimated order flow delta, kinetic volatility energy, liqui
An overlay indicator that detects pivot highs and lows and marks bullish and bearish market structure breaks with dotted or dashed lines. After a break it trails a stop level that follows price, with an increment factor controlling how fast it tightens. The st
Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage
This indicator marks historical ARK Invest purchases and sales of Innoviva on the price chart. It draws hardcoded labels at fixed dates: red Sell labels above bars and green Buy labels below bars, each marked X1. An ETF setting exists but only offers ALL, so i
Jarque-Bera Test evaluates whether price data follows a normal distribution. It constructs a rolling array of recent bars to compute sample mean, variance, skewness, and excess kurtosis through central statistical moments. The calculated statistic quantifies d
This minimal Pine Script code example demonstrates how loop iterations and conditional branches evaluate historical series functions. It iterates through a short loop based on the current bar index, conditionally retrieving the lowest value of the bar index ov
This indicator calculates and visualizes buying versus selling volume by aggregating lower timeframe data onto the current chart. It uses intrabar price movement to classify volume as positive or negative, plotting positive volume as green columns and negative
This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects both internal and swing market structure breakouts, labeling Changes of Character (CHoCH) and Breaks of Structure (BOS). It also highlights bullish and bearish internal an
This indicator plots the Money Flow Index in a separate pane and marks bullish and bearish divergence from pivot highs and lows. It stores recent pivot prices, MFI values, and bar indexes, then checks regular or hidden divergence across a chosen number of dots
This indicator calculates a custom RSI oscillator enhanced with machine learning using the K-nearest neighbors algorithm. It combines the standard RSI with KNN predictions for improved signal generation. The script applies smoothing using ALMA and Kalman filte
This overlay indicator builds a geometric grid of parallel price levels from powers of a small phi-style ratio. The grid expansion input widens or tightens that spacing. On historical and confirmed bars it counts touches, bullish and bearish closes, volume, an
An overlay always-in flip indicator where a buy closes a short and enters long, and a sell does the reverse. It uses a zero-lag EMA trail sized by ATR, smoothed price, an ADX regime read with trending and sideways thresholds, RSI and Stochastic RSI checks, and
Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage
INTU-tracker visualizes historical trade records from ARK Invest for Intuit (INTU) directly on the price chart. It creates buy and sell labels at specific timestamps based on historical trading data from ARK's actively managed ETFs. Users can filter display la
This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and
This Pine Script indicator extracts and plots the hour integer from a fixed UNIX timestamp using a specified timezone offset. Created as a minimal documentation example for Pine Script v4 time functions, it calculates the hour value corresponding to GMT+1 for
This indicator plots a Volatility Stop on the price chart. It trails a stop from the running high or low of the source, offset by the average true range times a multiplier, and flips the trail when the source crosses the stop. An uptrend colors the stop one wa
This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron
This indicator calculates the Money Flow Index (MFI) and detects regular and hidden divergences between price action and the MFI oscillator in a separate pane. It identifies high and low pivot points using a configurable lookback length and evaluates trade con
This indicator applies a k-Nearest Neighbors machine learning algorithm to calculate price predictions and direction on the main chart. It analyzes sequences of historical price data points to locate similar patterns and averages nearest neighbor matches. User
This overlay indicator anchors to the close of a user-chosen time and draws one hundred horizontal lines, fifty above and fifty below that price. Spacing uses the golden ratio scaled by a step multiplier. After the anchor, it counts how often each line is touc
An overlay indicator that uses a wide SuperTrend-style trail with a zero-lag bias to print always-in buy and sell flips while ignoring small moves. Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse
Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement
IPOB-tracker is an overlay indicator that visualizes historical stock purchase and sale transactions made by ARK Invest funds. It plots chart labels directly on the price chart at specific historical timestamps, marking buy actions with green upward labels bel
The Jurik Composite Fractal Behavior indicator computes a weighted average of efficient trend lengths as a composite fractal behavior value, also known as the trend duration index. It processes a user-specified source series using a max lookback length and cal
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.