This test script demonstrates and validates Pine Script v6 user-defined types and custom methods. It constructs a custom Bar object storing price data, bar index, and metadata, then applies custom methods to evaluate the price span and bullish state. In a sepa
An overlay indicator that draws horizontal lines at the high and low of up to three user-defined daily time spans, such as Asia, London and New York. Each session has its own time range, day-start timezone, line colour, style, width and optional text label, an
DEPV2 DEBUG S9 is a multi-symbol indicator for 20 major cryptocurrencies traded on Binance futures. It generates trading signals by combining four method classes: trend based on price levels, momentum using rate of change, volatility based on expansion or nois
Dragon Strength Pro is an overlay indicator that stores recent pivot highs and pivot lows confirmed by left and right bar lengths, keeping up to fifty of each. It averages the slope from those pivots to the current close and scores upward impact from lows and
A price-chart indicator by BigBeluga, based on the HalfTrend logic from everget, that draws a HalfTrend line with ATR channel bands and prints long and short signals on trend flips. Each signal draws entry, stop loss and three take-profit levels, with the stop
Overlay indicator of single-bar detections drawn on the price chart. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ranks from 15
Finds supply and demand zones from strong momentum candles and draws them as boxes on the price chart, with an option to pull zones from additional timeframes. Settings control momentum body multiple, momentum count and span, how far back zones are searched, w
An indicator in a separate pane that plots how far price is from an anchored volume weighted average price, as a percentage of the VWAP. The VWAP itself is drawn on the price chart. Percentile lines over a chosen number of bars mark the two upper and lower ext
Weekdays Gaps highlights background chart areas where calendar weekday gaps occur between consecutive bars. It compares the day of the week of the current bar with that of the preceding bar to detect non-sequential calendar transitions, such as missing data or
This indicator plots standard Bollinger Bands and three configurable moving averages directly on the price chart. Users can toggle the Bollinger Bands, adjust their length and multiplier, and choose between exponential or simple moving averages for fast, slow,
CFMS-tracker is an overlay indicator that marks historical ARK Invest sell events for the CFMS ticker as red labels above price bars. The visible script places two Sell X1 labels on 16 and 17 January 2020 using bar timestamps. A single ETF setting exists but o
This indicator estimates a seasonal naive forecast by taking the price from one season earlier and treating that lag as the projected value. It draws a solid blue line on the price chart from the current bar toward a future time set by the forecasted periods i
Ehlers Automatic Gain Control (AGC) detrends raw price data using a roofing filter—combining a two-pole high-pass filter and a Super Smoother—to generate a zero-mean oscillating signal. It then applies an automatic gain control algorithm that tracks exponentia
This indicator demonstrates inspecting internal variables from within loop structures, originally authored for TradingView documentation. It calculates a cumulative balance of true range changes by iterating through past bars up to a user-defined lookback peri
This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl
This indicator plots the arithmetic mean of each bar's open, high, low, and close on the price chart. A function multiplies the four prices by 0.25 and returns one value, which the script plots as a yellow line of width two. There are no user inputs, so the fo
This indicator plots Keltner Channels on the price chart. It builds a basis from an exponential or simple moving average of a chosen source, then places upper and lower bands a multiplier away from that basis. Band width uses average true range, true range, or
The Regime Transition Engine categorizes the market into seven distinct regime states, including compression, expansion, trend, and exhaustion. It calculates volatility percentiles, efficiency ratios, choppiness, and linear regression slopes to measure market
Multi-Distribution Volume Profile calculates and plots a volume profile anchored to the price chart using statistical distributions or bar-weighting models, such as Gaussian, PERT, Cauchy, or range-based modes. It distributes volume across price levels over a
CRT State Engine is an overlay indicator that maps New York time-based CRT models at 9PM, 1AM, 5AM, and 9AM. It tracks market structure, liquidity sweeps, change-in-state delivery, and unmitigated order blocks that stay drawn until mitigated. Optional modules
Indicatorv5SMC / ICT / price actionSessions & time
This indicator identifies and plots bullish and bearish Fair Value Gaps (FVGs) directly on the price chart using box drawings. It detects three-bar price imbalances, adjusting sensitivity via user settings. The script can dynamically minimize box boundaries as
MTF Order Block Finder is a price-chart indicator that marks institutional order blocks from a selected higher timeframe. A bullish block is the last down candle before a run of up candles, and a bearish block is the last up candle before a run of down candles
This indicator calculates and plots layered volume profiles directly on the price chart. It divides the price range across a user-defined lookback period into discrete bins, distributing trading volume to highlight volume concentration, Point of Control levels
Calculates the Wave Trend %J oscillator and works backwards through its equations to project the required price levels needed to reach target oscillator values. It approximates the Channel Index required for specified overbought or oversold conditions and proj
This overlay indicator reads daily open, high, low, and close from a reference symbol that defaults to BTC1!. It measures the percentage gap between the daily open and the previous daily close. A gap at or beyond the minimum percentage stores a bullish level a
This test indicator calculates and plots execution state variables across price bars to verify Pine Script v6 runtime behavior. It tracks bar execution counts using persistent variables, tracks intrabar tick execution with persistent intrabar variables, stores
DEPV2 is a multi-symbol crypto indicator that generates trading signals across 20 Binance assets including BTC, ETH, and SOL. It analyzes four method classes—trend, momentum, volatility, and volume—using modes such as simultaneous confirmation requiring at lea
Dual MA Detrended Price calculates two detrended price series by subtracting simple moving averages from a chosen price source. It derives the moving average lengths by applying Golden Ratio multipliers of 1.618 and 0.618 to a configurable base length setting.
A trend indicator on the price chart that prints BUY and SELL labels on confirmed bar closes, each meant to exit one side and enter the other. It combines a Supertrend line, fast and slow EMAs and a ZLEMA, and requires ADX, DMI spread and RSI conditions plus a
Tick-chart-safe overlay indicator of single-bar detections on the price chart. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ran
Finds supply and demand zones from strong momentum candles and draws them as boxes on the price chart, with an option to pull zones from additional timeframes. Settings control momentum body multiple, momentum count and span, how far back zones are searched, w
Draws a zig zag line on the price chart connecting swing pivots using an imported Zig Zag library. A new reversal is accepted when price moves by a set percentage, 5 by default, and pivots use a leg count of 10. Labels can show the reversal price, cumulative v
The script calculates and plots the year-to-date percentage return based on the difference between the current close and the year's open. This plot appears in a separate pane with a black line, colored green for positive returns and red for negative ones. Hori
This indicator overlays historical ARK Invest buy and sell labels on the CGEN price chart. It places dated labels above or below bars, marking sells in red and buys in green, and shows how many ARK ETFs traded the stock on the same day. An ETF input switches b
This indicator calculates a locally weighted regression (LWR) model to generate price forecast curves directly on the main chart. It computes linear regression values weighted by a Gaussian radial kernel against a calculated price data series, scaling the pred
This indicator calculates John Ehlers' Center of Gravity from a chosen price source over a configurable length. It weights each price by its position in the window, divides the weighted sum by the sum of prices, and shifts the result so the window midpoint sit
This indicator walks a lookback loop and compares the current true range with each earlier true range. It adds the sign of each difference into a running balance and plots that balance in a separate pane with a zero line. On every bar it also builds a left-ali
This indicator tracks and displays the statistical distribution of daily highs and lows across 30-minute time bins throughout the trading day. It aggregates the frequency of daily extremes occurring within each half-hour interval across sessions and renders th
This indicator calculates the one-sample t-statistic comparing the rolling mean of a selected price or return series against a hypothesized population mean. It uses an O(1) circular buffer with running sums and Bessel's correction to compute sample variance ef
Relative Leg Efficiency (RLE) measures price efficiency across pivot-to-pivot movement legs. Plotted in a separate pane with chart pivot overlays, it calculates path distance, execution duration, and counter-pressure to produce efficiency scores. Traders can a
Implements an institutional Candle Range Theory (CRT) framework aligned to New York market time windows at 1 AM, 5 AM, and 9 AM. It calculates Draw on Liquidity (DOL) levels using pivot points, manages session state machine boxes, and generates entry signals w
Indicatorv5SMC / ICT / price actionSessions & time
This indicator tracks and visualizes key intraday session levels directly on the price chart. It calculates open, high, low, and close values for Regular Trading Hours (RTH), the Overnight Session (ON), and the Initial Balance (IB) period. It draws horizontal
This indicator detects bullish and bearish fair value gaps on a user-selected timeframe and draws them as boxes on the price chart. Body sensitivity sets the minimum candle body size relative to the average before a gap is accepted. Mitigation can require a fu
The Rogers-Satchell Volatility (RSV) indicator measures historical market volatility using open, high, low, and close price values, allowing accurate estimates even in the presence of price drift. It computes the Rogers-Satchell variance per bar, smooths it us
This indicator calculates the gap between the 100-period and 50-period exponential moving averages and converts that difference into ticks. It draws the result as text in a green label placed below the current bar on the price chart. Each new bar replaces the
This script defines a Pine Script v6 indicator that assigns na to a boolean variable and plots either 1 or 0 depending on its value in a separate pane. The plot always returns 0 because the boolean is initialized to na. No input settings modify the behavior. T
DEPV2 Debug SIGD evaluates multi-symbol and multi-method signal confluence across up to twenty cryptocurrency symbols. It processes four distinct market dimensions—trend, momentum, volatility, and volume—to derive confirmation signals under simultaneous or seq
This indicator plots a dynamic Ichimoku cloud directly on the price chart. It detects recent pivot highs and lows to set a dynamic length for the Kijun-sen line, while Tenkan-sen uses a fixed input length. Senkou Span A averages the two lines and Senkou Span B
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.