Educational script demonstrating how to declare and persist variables using the var keyword in Pine Script. It calculates a running count of bullish candles where the close exceeds the open and plots the cumulative counter in a separate pane. It marks each bul
P_syn_matrix_map is an indicator script that demonstrates and validates matrix and map data structures in Pine Script v6. It initializes a two-by-two floating-point matrix, modifies its elements, transposes it, and computes matrix sums and averages. Additional
DEPV2 Debug S48 is a multi-symbol crypto indicator that monitors up to 20 cryptocurrency pairs across four analytical categories: trend, momentum, volatility, and volume. It evaluates trading conditions using several signal modes, including single-dimension tr
Draws logarithmic spirals on the price chart from a range the user defines with two price levels and a start and end time. It stores candle closes, highs and lows, and can plot mirrored polylines of the candle series around the range end price. Options rotate
A simple price-chart indicator that plots five exponential moving averages, defaulting to 8, 13, 21, 34 and 55 periods, as a ribbon with a shaded fill between the fastest and slowest. The ribbon is green when the averages are stacked in bullish order, red when
A composite detection indicator that marks fifteen or more toggleable signals on the price chart, each labelled S1 onward. They include relative volume setups combined with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musa
This early indicator uses the Goertzel algorithm to estimate a dominant cycle from the chosen price source, then projects the cycle forward for a set number of periods. Projected prices and dates are shown in a dashboard table on the price chart. The cycle len
Teaching script that shows how the var keyword keeps values between bars. It plots the first bar's close, the close of the first green bar and the close of the tenth green bar on the price chart. The comments explain which value each variable holds. It has no
An older Pine version 4 indicator that implements the Bitcoin stock to flow model. It requests total coins mined and the Bitcoin price from external blockchain data series, derives yearly flow from monthly, weekly or daily bars, and computes a model value and
The Trimean indicator calculates Tukey's trimean measure of central tendency over a user-defined lookback period. It determines the 25th percentile, median, and 75th percentile of the selected source series to output a robust, outlier-resistant smoothed curve
This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes the difference between a fast and slow moving average, derives a signal line through smoothing, and plots a histogram representing
This indicator overlays historical ARK Invest buy and sell events for Caterpillar (CAT) on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text that records the trade side and how many ARK ETF
This indicator projects a simple-mean forecast on the price chart. It estimates the forecast as the previous price plus the simple moving average of price change over a lookback window. A solid blue line is drawn from the current bar time and close toward a fu
This indicator calculates John Ehlers' 2-Pole Butterworth Filter, an infinite impulse response (IIR) second-order lowpass filter designed to remove high-frequency market noise with minimal phase lag. It processes price data using trigonometric functions and hi
This indicator plots two simple moving averages of close, one over five bars and one over twenty bars, in a separate pane. It shades the area between the two plots green when the shorter average is above the longer average and red when it is below. There are n
This indicator tracks and projects session-based price retracement levels directly onto the main price chart. Users can configure up to five distinct time sessions alongside specific evaluation windows to measure price retracement targets calculated from open
This indicator calculates a Laguerre RSI oscillator using four cascaded Laguerre filter stages applied to closing prices. It measures momentum with reduced time lag compared to a traditional RSI. The script plots the bounded values in a separate pane alongside
This indicator identifies the bearish Harami Cross candlestick pattern on the price chart. The pattern consists of a long bullish candle followed by a Doji whose entire high-to-low range is contained within the real body of the preceding candle. Trend directio
Oscillator Topology analyzes the structural shape of a WaveTrend oscillator rather than just its price level or crossover. It evaluates curvature, peak width, asymmetry, and flatness around pivot extremes to categorize oscillator movements into V-Spikes, Round
This indicator tracks session-specific price ranges and rejection patterns directly on the main price chart. Based on the South African Standard Time (SAST) session window, it establishes reference high and low boundaries from a lookback period and monitors pr
This indicator identifies and visualizes swing liquidity levels directly on the main price chart. It detects pivot highs and lows, filtering them according to normalized volume strength relative to recent standard deviation. Active liquidity levels are drawn a
This indicator plots a logarithmic moving average in a separate pane. It weights more recent bars more heavily according to a steepness setting, then smooths the result with a selectable moving-average type. A momentum weight and long and short thresholds mark
The Quadruple Exponential Moving Average (QEMA) indicator calculates a smoothed, low-lag moving average by cascading four exponential moving average stages with dynamic warmup compensation. It plots directly on the price chart as an overlay line. Users can adj
This indicator calculates relative volume (RVOL) by dividing current bar volume by its simple moving average. It plots standard volume columns in a separate pane along with the volume moving average and an RVOL trigger threshold line. Volume columns are highli
The P_syn_operators indicator, written in Pine Script version 6, calculates and plots a series of values based on arithmetic expressions, logical operators, ternary operators, and string functions. Variables a through j are defined with operations including ad
An overlay indicator that looks for the Wyckoff upthrust after distribution pattern. It requires a prior advance measured in ATR, detects a trading range with a minimum duration and boundary tests, and flags a terminal breakout attempt that fails back inside w
DEPV2 DEBUG S5 monitors a multi-ticker basket of up to twenty cryptocurrency pairs across four analytical dimensions: trend, momentum, volatility, and volume. It evaluates market signals using customizable modes, including individual method triggers, simultane
The Cylinder indicator projects a geometric 3D cylinder shape directly onto the price chart using Pine Script polylines. The user defines two anchor points on the chart via interactive price and time selection inputs. The script calculates relative time and pr
A SuperTrend variant for the price chart based on ATR bands around the midpoint of each bar. When price comes closer to the active band than a noise threshold measured in ATRs, the band is pushed away by an expansion amount instead of tightening, which reduces
A larger release of a composite detection indicator with many toggleable numbered signals drawn on the price chart. They cover relative volume setups with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musashi, Whale, Dynami
This indicator combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values appea
Teaching script on the varip keyword inside a user-defined type. A bar counter increments once per bar and a tick counter increments on every real-time update, and both are plotted in a separate pane. Because the tick counter changes with each update on the li
An indicator on the price chart that highlights a possible dip entry by shading the background green. The condition is a MACD line crossing above its signal line while MACD is at or below zero and the 14 period RSI sits under a buy threshold, 52 by default. Th
This indicator calculates the True Strength Index (TSI) oscillator by applying double exponential moving average smoothing to price momentum. It plots the TSI line alongside an EMA signal line and an optional difference histogram in a separate pane. Visual ele
This indicator overlays historical ARK Invest buy and sell transactions directly onto the price chart for Cellular Biomedicine Group (CBMG). It renders chart labels at explicit historical timestamps corresponding to reported trades, showing transaction type an
This indicator applies Holt's linear trend forecasting method to price data using double exponential smoothing. It continuously calculates recursive level and trend estimates governed by user-defined alpha and beta smoothing parameters. The script projects a d
This indicator plots John Ehlers' two-pole Super Smoother as a line on the price chart. It applies a two-pole IIR Butterworth-style lowpass to the selected source, averaging the current and previous values and mixing them with two prior filter outputs. Length
This indicator plots the relative strength index in a separate pane and marks a compound bullish state when four conditions hold together. It tests whether RSI is above a bull level, above a prior high channel of RSI, whether that channel has not fallen for a
This overlay indicator tracks up to four independent session levels on the price chart. For each level it records the high and low of a chosen range window, then draws an optional box for that range and a horizontal retracement line at a user-set percentage of
This indicator plots Bill Williams' Market Facilitation Index in a separate pane. It calculates the bar's high-low range divided by volume, and it returns zero when volume is zero so inactive bars do not produce a ratio. A blue line shows the index and a dashe
This indicator calculates historical volatility as the standard deviation of logarithmic close-to-close returns over a user-set length. It annualizes that value with 365 days and a period factor of one on intraday or one-day charts, otherwise seven, then multi
Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike
This indicator plots internal and external liquidity zones alongside market structure breaks directly on the price chart. It calculates short-term and long-term pivot points to identify internal and external liquidity levels, including equal highs and lows. Ma
CRT State Engine plots time-based CRT models, session state ranges, and institutional market structure on the main price chart. It detects liquidity sweeps, order blocks, Fair Value Gaps, and volume profile imbalances across specified New York time sessions. T
Indicatorv5SMC / ICT / price actionSessions & time
FX Market Sessions highlights distinct trading sessions, such as London, New York, and previous day ranges, directly on the main chart using colored boxes and labels. It tracks session highs, lows, and pip spans, with configurable options for opening ranges, F
This indicator detects order blocks and breaker blocks on the price chart using swing highs and lows with a configurable lookback length. Bullish order blocks appear as blue boxes and lines while bearish ones use orange coloring. Breaker blocks trigger red and
Clusters Volume Profile [LuxAlgo] applies K-Means clustering to historical price data using high-low averages and volumes to identify distinct price groups. It then computes volume profiles for each cluster with user-defined rows per cluster and maximum bar wi
This indicator computes realized volatility from intraday price returns. It fetches close prices from a lower timeframe, calculates the sum of squared logarithmic returns, and derives the volatility as the square root of that sum. A simple moving average smoot
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.