A Pine Script v6 library of technical analysis functions that are not built into the language. It exports many indicators, including Awesome Oscillator, Aroon, Donchian Channel, Ichimoku Cloud, SuperTrend, Klinger Volume Oscillator, Schaff Trend Cycle, Vortex,
This indicator calculates a moving average where historical prices are weighted according to a sine function over a user-defined length. It plots directly on the price chart, coloring the line based on whether the slope is rising or falling. Optional settings
This strategy detects price breakouts above rolling highest highs or below lowest lows over a customizable lookback period. It includes optional volume spike and ATR volatility threshold filters, along with bar confirmation rules. Positions are taken upon conf
Aroon Oscillator calculates the difference between Aroon Up and Aroon Down across a user-defined lookback period. It plots the resulting oscillator line between -100 and +100 in a separate pane, alongside horizontal reference levels at 0 and plus or minus 50,
This script implements an enhanced testing framework for the Market Structure MACD 4H strategy. It defines test cases with pass rates and includes mock functions simulating advanced market structure detection, MACD sensitivity analysis across trending and chop
The script calculates and plots Parabolic SAR with default parameters on the price chart. It also computes Stochastic RSI using a 14-period RSI and 14-period Stoch with 3-period smoothing. Buy signals occur when Stochastic RSI crosses above its signal line fro
This Pine Script indicator identifies liquidity sweeps and confirms signals using a close-back candle pattern directly on the price chart. It tracks recent swing highs and lows over a customizable lookback period. A bullish signal forms when a prior bar sweeps
The OHLC StatMap indicator calculates and plots statistical price levels based on historical open, high, low, and close data across up to four higher timeframes. It overlays statistical anchor lines, period open prices, manipulation levels, and distribution qu
This indicator calculates John Ehlers' Center of Gravity oscillator, which measures the balance point of price over a lookback window to identify cycle turning points with low lag. It computes a weighted price distribution ratio normalized around a zero center
This indicator detects swing highs and lows to plot bull and bear trendlines directly on the main price chart. It projects valid trendlines forward while applying rules for maximum slope, bar span, and average bar range tolerance to filter out invalid or broke
Harness Trivial SMA is a basic test indicator that calculates and plots a Simple Moving Average (SMA) of the closing price over a user-defined length. Plotted in a separate pane below the chart, it provides a straightforward visual representation of average pr
This strategy implements Turtle System 1 fast trend following directly on the price chart. It opens long or short positions upon 20-bar Donchian channel breakouts and exits on opposing 10-bar Donchian extremes. Position sizing is calculated dynamically from AT
Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz
The Candle Story Engine evaluates multi-candle price action dynamics, analyzing pressure, sequence persistence, deceleration, and structural exhaustion across a customizable lookback window. Incorporating optional trend context via exponential moving averages,
This separate-pane indicator calculates multi-period volatility regimes by analyzing fast, medium, and slow Average True Range (ATR) metrics alongside volume integration, gap adjustments, and session weighting. It visualizes volatility states using a heat map
This indicator estimates net buying pressure from footprint buy and sell volume and plots it in a separate pane. It subtracts sell volume from buy volume, then accumulates that difference as net volume or as dollar volume using a user-selected price. A third m
The Signals MA indicator calculates a moving average of the close price using either SMA or EMA based on a user-defined length. It plots this average on the price chart. Breakout signals occur when the close crosses above the moving average from below, and bre
Multi-Ticker Anchored Candles overlays up to three user-selected symbols on the price chart as candles anchored to a chosen period, which defaults to the daily timeframe. Each symbol has its own color and an on or off toggle. Optional drawings mark session bre
This indicator plots On Balance Volume in a separate pane and can overlay a smoothing average of that series. By default it draws a 20-period SMA of OBV with Bollinger Bands set two standard deviations away, plus a fixed 10-period EMA of OBV. A fill between th
The Capital41 Liquidity Sweep Simple indicator detects liquidity sweeps where price breaks a recent swing high or low then closes back inside the range with volume confirmation. It plots triangular shapes below the bar for bullish sweeps and above for bearish
Institutional CRT State Engine is an overlay indicator that combines Direction of Liquidity (DOL) bias detection with Candle Range Theory (CRT) pattern recognition. It monitors key institutional session windows—including CBDR, Asia, London, London Lunch, and N
Indicatorv6SMC / ICT / price actionSessions & time
TheStrat Suite is a multi-timeframe price-action indicator that implements Rob Smith's TheStrat on the price chart. It classifies bars, marks inside bars, hammers, shooters, Failed 2s and outside bars, and plots magnitude and exhaustion targets plus stop level
Calculates an adaptive tracking model using a Mechanical Feedback Price Model to measure price innovations. It evaluates positive and negative deviations through peak decay and saturation functions to determine dynamic intensity levels. It applies these intens
This indicator calculates and plots dynamic SuperTrend volatility bands around median price to identify market trend direction. It signals bullish conditions when price stays above the green support line and bearish conditions when price falls below the red re
Elton's Screener is an indicator that runs in a separate pane and scores one of twenty selectable strategies, or auto-selects a route from the symbol type. It filters signals by a minimum confidence level and a higher-timeframe EMA trend alignment. ATR multipl
The Relative Liquidity Index measures market volatility and liquidity dynamics by calculating the Relative Strength Index (RSI) of the Average True Range (ATR). Displayed in a separate pane, it highlights low and high liquidity states based on configurable thr
This strategy trades exponential moving average crossovers tailored for the German DAX market during Xetra session hours. It enters long positions on bullish EMA crossovers and short positions on bearish crossovers, provided the bar falls within 09:00 to 17:30
MA Spread Histogram calculates the difference between two configurable moving averages and plots the result as a color-coded column histogram in a separate pane. The histogram bars highlight expanding or contracting momentum across the zero line. When the shor
This indicator calculates RSI and identifies regular and hidden bullish and bearish divergences against price swing pivots in a separate pane. It features an early signal mode that uses a shorter lookback to detect provisional divergence earlier, tracking whet
The Price Action Toolkit is an indicator that combines several price action tools on the chart. It calculates the ATR with user-defined length and shows it in a table. It plots multiple Kaufman Adaptive Moving Averages (KAMA) with different lengths and sources
WaveTrend Oscillator Pro calculates WT1 and WT2 lines derived from exponentially smoothed typical price channels and moving averages. Displayed in a separate pane, it visualises momentum alongside customizable overbought and oversold bands. Crossover signals b
This indicator plots key levels from historical Monday sessions, including Monday High, Low, Open, Close, and custom ratio levels such as the equilibrium line. Extending these level lines across the trading week, it draws reference levels and labels directly o
Volume Historical Patterns indicator plots volume analysis in a separate pane. It computes an SMA of volume using optional time filtering for NYC hours and identifies the highest volume bar ever seen. Bars receive custom colors based on volume relative to this
Lakshmi Zones v3 is an overlay indicator that builds demand and supply boxes from a volume-profile histogram of recent bars, then merges nearby levels and limits how many zones appear and how far they sit from price. Optional plots include a Magic Line channel
This indicator plots cumulative volume delta as candles in a separate pane. It builds volume delta from lower-timeframe intrabars, either as raw delta or as a percent of volume, and accumulates it until a chosen reset. Resets can follow a higher timeframe, a f
This indicator calculates Average True Range as a percentage of the closing price and plots that value in a separate pane. True range is the largest of the bar range and the gaps from the previous close. An RMA-style average with a warmup correction smooths th
A separate-pane momentum oscillator that places each bar's midpoint within the highest-high to lowest-low range of a chosen period, default 35 bars. That position is smoothed twice and passed through a Fisher transform to sharpen turning points. It plots a his
This indicator overlays two smoothed price lines on the chart for comparison. A one-dimensional Kalman filter estimates the current price state and velocity, adjusting based on process noise Q, measurement noise R, and velocity noise qvIn. An EMA of user-defin
This Pine Script v6 library provides drawing wrappers for smart-money chart objects. It exports types for labels, lines and boxes, plus default style arguments and factory methods that build chart points from a bar index or a bar time. Callers create, hide and
A strategy based on the Directional Movement Index. It enters long when the positive directional line crosses above the negative one and enters short on the opposite cross, reversing the position. An ADX threshold input is defined but not used in the entry con
This indicator calculates the maximum of the close and open prices using the math.max function for each bar. It plots the resulting value as a line in a separate pane below the price chart. The script has no input settings and produces no trading signals, entr
A standalone test module, plotted in a separate pane, for trade cooldown rules. It implements gates by bar index arithmetic for a global cooldown after a win or loss, a per-direction cooldown after a loss and a session limit on consecutive losses. A scripted s
This indicator plots a Devisso ratio in a separate pane and is meant to run on the daily chart. It accumulates signed close-to-close percent changes into a running total, applies RSI to that total, then takes the absolute change in RSI divided by the change in
An earlier version of a long-only crypto spot strategy that combines multi-timeframe pivot support and resistance with optional trend filters. Entries wait for price to touch a support zone sized by ATR or ticks and then confirm within a few bars. Version 9 ad
Test fixture for a strategy-description simulator, drawn in a separate pane. It replays a generated rule set on the chart candles between a start and end time, with a ticker mapping check and an optional trace to the Pine logs. The comments state the policy: s
Fractal Spiral draws a geometric spiral in a separate pane and marks price-line crossings against detected swing fractals. It searches a chosen number of bars for up and down fractals, then builds a Golden, Archimedean, or logarithmic spiral around a user-set
This script is a basic OHLC demo indicator written in Pine Script version 6. It plots the closing price of the current symbol on a separate pane below the main price chart. Additionally, it displays trading volume in another pane. This educational example help
A separate-pane oscillator based on mean absolute deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks and compared with long and short thresholds.
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.