Calculates and plots the Detrended Price Oscillator in a separate pane to identify short-term price cycles. The indicator removes longer-term trends by subtracting a historical simple moving average, displaced back by half the period plus one bar, from the cur
This indicator counts how many bars have passed since the close was lower than the previous close. When the current close is higher than the previous close, it plots that bar count as a histogram; otherwise it plots minus one. Positive values are colored red a
Session First Bar Range calculates and projects the high, low, and mid-level of the opening bar of a specified higher timeframe session. It draws range boxes directly on the price chart, along with historical ranges, statistical standard deviation levels, and
The Kalman Filter (KF) calculates a recursive state estimation to smooth price data and reduce noise on the main chart. It continuously updates state and error covariance estimates by balancing process noise against measurement noise via the Kalman gain. Users
This indicator identifies the bearish falling window candlestick pattern, a two-candle continuation setup where a downward price gap occurs during a downtrend. It validates the pattern when the current bar's high is strictly lower than the previous bar's low u
The Market Stress Oscillator plots a bi-directional Williams VIX Fix in a separate pane, with separate bull and bear stress lines. It applies JMA smoothing to both series and shows ADX strength as context for judging noisy readings. Peak-hold markers mark stre
This indicator plots a zero-lag EMA center line with ATR bands on the price chart. It marks bullish or bearish mode after closes stay beyond a band for a set number of bars and the center line slopes that way. Confirmed buy and sell labels appear only after th
The script identifies time-filtered Candle Range Theory (CRT) patterns on higher-timeframe candles using New York session timing. It detects liquidity sweeps and range manipulation setups relative to specific H4 candles for user-selected models, such as 1AM, 5
This indicator analyzes trading volume in a separate chart pane by plotting raw volume histogram bars alongside a simple moving average of volume and On-Balance Volume (OBV). It identifies unusually high volume bars where volume exceeds the moving average mult
This Pine Script indicator detects Smart Money Concepts order blocks on the price chart using pivot highs and lows. It builds supply and demand zones based on configurable pivot periods and order block validity periods. The script offers refinement options to
Expected Value Monte Carlo analyzes historical price returns and projects potential future outcomes directly on the price chart using statistical simulations. It calculates historical performance metrics over a configurable sample period and simulates future p
This indicator calculates and plots the standard On Balance Volume (OBV) in a separate chart pane. It tracks cumulative volume flow by adding volume on up bars and subtracting volume on down bars relative to the prior close. The indicator does not generate aut
This indicator calculates and overlays standard Ichimoku Cloud components on the price chart, including the Conversion Line, Base Line, Lagging Span, and Leading Spans A and B. It imports an external library to detect candlestick patterns like hammers and shoo
USI Flip is a Pine Script indicator that plots six USI lines with customizable lengths for different timeframes. The fastest red line generates BUY and SHORT flip signals when crossing slower lines, with options for volume filter, bar close only, margin hyster
This indicator serves as a simple demonstration and test fixture for Pine Script v6 custom enum structures. It allows users to select a moving average type—Simple (SMA), Exponential (EMA), or Weighted (WMA)—from an enum drop-down menu alongside a configurable
DEPV2 DEBUG S37 is a separate-pane indicator that watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs. It forms directional signals from four method classes: trend, momentum, volatility, and volume. Modes use one class, requi
The Complex Pattern Finder indicator scans price charts for specific sequences of bullish and bearish candlesticks encoded as binary strings. Users can enter a custom string of ones and zeros or enable an auto-generated Fibonacci sequence based on a chosen lev
A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. It uses an ATR trail, a zero-lag EMA for fast structure and a slow baseline, plus ADX, choppiness, efficiency and RSI inputs. An optio
A bullish-side detection indicator for higher timeframe charts that places numbered signals on the price chart. It combines relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engine
A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle trough marker, whose title spells trough as through. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and labels cycle lows with lines. Each cycl
An oscillator in a separate pane based on the Stochastic Momentum Index. It plots the SMI, an EMA of it, and a histogram of how the gap between the two changes from bar to bar, coloured by direction and strength. Dashed bands sit at plus and minus 40 with grad
This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
BLDE-tracker overlays historical ARK Invest buy and sell transactions directly onto the price chart for Blade Air Mobility (BLDE). It plots color-coded labels—green below bars for purchases and red above bars for sales—displaying the transaction direction and
Calculates and plots daily pivot levels directly on the price chart. It supports Traditional, Fibonacci, and Camarilla calculation formulas to generate a central pivot point along with three support levels and three resistance levels. The script pulls the prev
This indicator implements a dual-direction variation of the Williams Vix Fix oscillator in a separate pane. It normalizes price data using min-max scaling to compute both upward and downward synthetic volatility metrics across two selectable calculation modes
This indicator calculates the Directional Movement Index from true range and plus and minus directional movement, smoothed with Wilder's compensated RMA. It plots the DX line together with plus DI and minus DI in a separate pane and draws a dashed horizontal l
Bgcolor Example demonstrates background chart shading based on trading sessions in Pine Script v4. It evaluates whether the current candle falls into pre-market, regular market, or post-market trading hours using a custom session check on a thirty-minute resol
This indicator plots the opening range of selected trading sessions directly on the price chart. Users can choose preset market sessions like New York, London, or Asia, or configure custom time windows. It draws high, low, and midline boundaries for the first
This indicator plots KDJ, described as an enhanced stochastic oscillator, in a separate pane. It finds the highest high and lowest low over the length with deque buffers, converts close into a raw stochastic value, and smooths K and D with Wilder-style RMA con
Calculates the Fisher Transform oscillator based on the median price over a user-defined lookback length. By transforming prices into a Gaussian probability distribution, it highlights extreme price movements and potential trend reversals. The script plots the
This indicator scores multi-timeframe Stochastic RSI confluence in a separate pane. It calculates a StochRSI reading on six configurable timeframes, dampens exhaustion, then combines adjacent timeframe pairs with a sync bonus or conflict penalty and user pair
Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow
Calculates CRT session range boundaries and detects Turtle Soup setups to identify potential breakout signals. The script tracks session high, low, and midpoint values to determine intraday bias while measuring price break distances against ATR thresholds. It
Indicatorv5SMC / ICT / price actionSessions & time
This indicator plots a volume-weighted average price that restarts at the beginning of each daily session, using typical price and cumulative volume. It draws the VWAP line on the price chart and optional standard-deviation bands at two user-set multipliers. B
This indicator draws high and low levels for the Asia, London, New York, and Sydney sessions on the price chart. Each session can be enabled separately, with its own line color, thickness, opacity, labels, and an optional vertical line at the session start. It
The indicator plots Fair Value Gaps zones on the price chart derived from selected timeframes. It detects imbalances between swing highs and lows then applies chosen fill methods including Wick Sweep and Body Beyond to mark filled gaps. Up to three instances s
This indicator calculates Parkinson volatility from the logarithm of each bar's high divided by its low. It squares that term, smooths it with an RMA over the chosen length, and takes the square root after scaling by four times the natural log of two. When ann
Plots up to five configurable moving averages directly on the price chart. Users can individually select the period and calculation type for each line from EMA, SMA, HMA, WMA, DEMA, VWMA, or VWAP. A master setting enables overriding all moving average types at
This indicator calculates and plots a multi-line Ultimate Strength Indicator (USI) ribbon based on six relative strength lines ranging from slow to fast in a separate pane. It identifies momentum flip signals when fast lines cross slower lines with an adjustab
This Pine Script v6 indicator defines helper functions for value transformation and calculation. It includes double which multiplies by two, add which sums values with optional second argument, clamp which bounds a value between low and high, smooth which appl
An overlay indicator that tracks pivot, session, previous-day and flipped support and resistance levels and records how price reacts when it tests them. Each trial resolves into break, fade, fail or expire, and a Bayesian-style model sorted into twelve context
DEPV2 DEBUG S39 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It processes four analytical categories—trend, momentum, volatility, and volume—to evaluate market direction. Users can configure
This indicator computes conditional moving averages by calculating weighted averages of closing prices positioned above or below the main simple moving average. It dynamically adjusts the color of the main MA line between green and red based on distance ratios
A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 3 adds an adaptive KAMA component to the baseline and a reversal acceptance step that checks directional energy, close locatio
A bullish-side detection indicator for higher timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value gap engines. A
Detects swing highs and swing lows from left and right bar counts and keeps the most recent ones, with their dates, in a table on the price chart. Settings choose the bar counts, how many swings to track, and the table position, size and text colours. Swings a
Plots the time weighted average price on the price chart: a running average of a chosen source, ohlc4 by default, that restarts whenever the selected anchor period begins, one day by default. Inputs set the anchor timeframe, source and an offset. Unlike VWAP,
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.