This indicator overlays two Hull Moving Average variations smoothed with an optional Kalman filter directly on the price chart. It fills the space between the two curves with dynamic trend colors and generates buy and sell signal labels when the curves cross.
This indicator calculates the Ehlers Decycler Oscillator as the difference between two 2-pole Butterworth high-pass filters applied to a chosen price source. The long-period filter result is subtracted from the short-period filter result, and the oscillator is
This educational example script demonstrates how to debug custom Pine Script functions by returning intermediate internal variables alongside main outputs using tuple destructuring. It defines a custom function that calculates an instant average price from the
This indicator calculates J. Welles Wilder's classic Parabolic Stop and Reverse (PSAR) trailing stop levels to highlight trend direction and potential market reversals. It updates an acceleration factor whenever price makes new extreme highs or lows, bound by
This indicator tracks and plots high, low, and opening levels for major trading sessions directly on the price chart. It calculates price boundaries across defined periods including London, New York, Asia, and New York afternoon sessions. The tool does not gen
The Klinger Oscillator evaluates long-term volume flow trends while staying responsive to short-term price movements. It calculates signed volume by determining whether the typical price (HLC3) increased or decreased relative to the previous bar. The main osci
Range Oscillator (Zeiierman) plots a range-based oscillator in a separate pane. It qualifies a range box from a minimum number of bars and sizes that box vertically with an ATR width multiplier. A heatmap splits the recent high-low span into horizontal levels
This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid
Indicatorv5SMC / ICT / price actionSessions & time
The Heikin Ashi Buy Sell Arrows indicator calculates custom Heikin-Ashi values on the current chart to identify potential trend reversals. A buy signal is generated when a Heikin-Ashi candle forms with no lower wick following a sell sequence, while a sell sign
The Probability Grid indicator calculates statistical probability distribution levels derived from historical pivot high and low points. It analyzes price movements over a configured swing length and maximum reversal count to project probability zones directly
SINEMA is a sine-weighted moving average indicator that plots on the price chart. It applies sine-wave weighted smoothing to the input source with a specified period. The period setting determines the lookback window size for the weighting function. SINEMA dra
This indicator calculates a Stochastic oscillator based on Relative Strength Index (RSI) values rather than standard price data, functioning like a custom Stoch RSI. It plots the raw RSI line alongside the derived %K and %D lines in a separate pane. The RSI pl
This minimal test indicator evaluates integer values as booleans within conditional statements in Pine Script v6. It assigns an integer to a variable, passes it into an if-else block to determine an output value, and plots the final result in a separate pane.
This indicator requests the open, high, low and close of eight user-selected Binance perpetual symbols and plots each value in a separate pane. It is meant to run on a one-day Bitcoin perpetual chart so chart-data export can capture those extra daily series be
Calculates and plots dynamic step lines directly on the price chart based on candle range calculations within a specified time window. Users can select a custom start and end time, filter calculations by candle type (green, red, or all candles), and choose bet
A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with optional clouds. Buy and sell signals are filtered by RSI levels, minimum ADX, relative volume and a smart range filter that avoids small or ranging markets using ATR-scaled E
A volume pattern indicator that draws toggleable signals on the price chart, with displacement tuned to a nine standard deviation multiplier. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, Hiroshima and Nagasaki, long and short setups,
A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume shown inside, and adds lower-timeframe blocks within range. Swing length, maximum ATR multiplier, zone count and invalidation method shape the main zones
CMLF Tracker overlays historical buy and sell transaction records of ARK Invest funds directly onto the price chart for CMLF. It plots green upward labels for buy dates and red downward labels for sell dates, indicating how many ARK ETFs traded the asset on th
The script is an indicator that calculates compound interest. It provides a function f_compound_interest which takes principle, rate and duration as inputs. The function applies the compound interest formula using math.pow to return the future value. This valu
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
Calculates John Ehlers' Detrended Synthetic Price by taking the difference between a quarter-cycle and a half-cycle exponential moving average of the input source. It includes initial warm-up coefficient adjustments to stabilize early values and plots the resu
Debugging from Inside Functions is an educational Pine Script demonstration script that illustrates how stateful calculations and custom functions operate. It defines a function that calculates an average combining the current bar high, low, close, and a persi
This indicator calculates the Pearson correlation coefficient between a chosen source series on the current chart and a secondary external symbol across a user-specified lookback period. It processes streaming inputs efficiently using a circular buffer to upda
This overlay indicator marks Asia, London and New York sessions using New York clock times. It draws a session candle plus an optional vertical line at the session open, horizontal open, high, mid and low lines, and a 25 percent level of the session range. Use
This indicator calculates the Know Sure Thing oscillator in a separate pane. It builds four rate-of-change series from the close, smooths each with a simple moving average, and adds them with weights of one, two, three, and four. It plots that composite as the
This overlay indicator scores liquidity-sweep reversals on the price chart. It looks for a swing high or low violation followed by a recovery close, then grades optional conditions such as RSI and structure into a 0–2 quality score with separate long and short
This indicator measures statistical price deviations using the mean and standard deviation of logarithmic price. Plotted in a separate pane, it identifies overvalued and undervalued market conditions relative to a calculated fair-value baseline. Standard devia
This overlay indicator tracks an institutional CRT state machine on the price chart. It can plot draw-on-liquidity lines from pivot strength, session boxes for CBDR, Asia, London, London lunch and New York, and key levels colored for consolidation, manipulatio
Indicatorv5SMC / ICT / price actionSessions & time
This indicator plots buy and sell labels on the price chart. A buy appears when a short stochastic crosses up from below 20 while a slow MACD histogram is positive and a faster MACD histogram is negative. A sell uses the opposite stochastic and MACD alignment.
Recursive Auto-Pitchfork automatically identifies high and low pivot points using a Zigzag algorithm to construct pitchfork channel levels directly on the price chart. Users can select different pitchfork variations, adjust Zigzag depth and length, toggle pivo
SuperTrend Toolkit plots ATR-based SuperTrend bands and direction on the price chart. It calculates upper and lower bands using a configurable source, length, and factor multiplier. Contrarian signals generate buy and sell labels with alerts when the trend rev
Calculates and plots the historical value of a user-defined type field in a separate indicator pane. The script instantiates a custom object storing the current closing price and references its field on the previous bar using historical indexing. Designed as a
This Pine Script indicator probes the tie-breaking behavior of array.sort_indices in Pine Script v6. It creates two arrays of size 5 and 20 using seeded hash functions based on bar_index, then sorts them in descending order. The script plots the original array
Fibo Boxes projects price and time step zones directly on the chart starting from a designated target start time. It steps through historical data using an initial bar count and step multiplier, establishing high and low bounding boxes across calculated step r
A price-chart indicator that combines two independent parts. The first is a Q-Trend line built from the midpoint of a long highest-lowest range, shifted by an ATR multiple, with buy, sell and strong signals, bar colouring and two signal modes. The second finds
Tick-chart-safe overlay indicator of single-bar detections on the price chart, titled as a non-repainting version. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, momentum LONG and SHORT tiers, high-volume
A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones form a
An indicator on the price chart that compares the direction of each chart bar with the net direction of the smaller intrabars inside it, fetched from a lower timeframe chosen by the chart timeframe. When the two disagree, the candle is coloured orange. Optiona
This indicator plots historical buy and sell transactions executed by ARK Invest on CMPS directly on the price chart. It displays green upward labels below price bars for purchase dates and red downward labels above price bars for sales, showing transaction fr
This indicator defines drawing helpers that plot closed geometric outlines from line segments in a separate pane. The visible rectangle function takes two vector coordinates and draws four sides, deleting the previous lines before redrawing. Inputs toggle the
This indicator combines Hull Moving Average variations with optional Kalman filter smoothing, difference-based activity filtering, and pivot trendlines on the price chart. It calculates standard and three-pole HMAs, smooths them with a Kalman algorithm, and pl
This indicator calculates John Ehlers' Deviation-Scaled Oscillator (DSO) and plots it in a separate pane. It whitens the source price series by taking its two-bar difference, applies a two-pole Super Smoother filter, and normalizes the output using a rolling R
This indicator measures the number of bars since the highest high over a user-defined lookback period. It divides the lookback duration into five segments and applies a progressively lighter background color to the main price chart as the distance from the pea
This indicator calculates the percentage change of a chosen source over a user-set lookback length and plots that value in a separate pane with a percent format. It compares the current source with the value that many bars earlier, returning no value when the
This overlay indicator projects higher-timeframe open, high, and low statistics onto the price chart. It can show one or two selected timeframes, with an optional New York midnight session start, and uses a lookback window to draw average and median levels. Pl
This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s
This ex-post diagnostic indicator identifies confirmed pivot highs and lows, classifying subsequent price action into four outcome types: Snapback, Grind, Fake/Pullback, or Chop. It evaluates forward performance across an ATR-based risk window, factoring in Wa
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.