Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 8)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

AEGIS Demo

by pythonbygabby
1 stars

AEGIS Demo is an EMA crossover strategy designed to trigger webhook signals for an external automated execution bot. It calculates a 20-period fast exponential moving average and a 50-period slow exponential moving average, plotting both lines directly on the

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of AEGIS Demo
1 stars

Marks fair value gaps, both three-candle and two-candle imbalances, and liquidity sweeps on the price chart, then shades long and short entry zones when filters agree. Optional RSI and volume-burst filters refine the signals, with adjustable periods and thresh

Indicator v5 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of PacifiqueTrade Indicator 2.0

MKUMARAN RRMS Strategy

by shadowmarketai
1 stars

A long and short strategy that finds the lowest low and highest high over a swing lookback of 20 bars. It enters long near the low or short near the high when the reward-to-risk ratio meets a minimum, sizing each trade from a capital figure and a risk percenta

Strategy v5 Support & resistanceMean reversion
Updated 2 months ago · None stated GitHub repository of MKUMARAN RRMS Strategy

Magama SMC OB Alert

by Lleyton20
1 stars

An overlay indicator that finds swing highs and lows with pivots and flags a break of structure when the close crosses the latest swing point. On a break it marks the last opposing candle within a lookback as an order block, drawing a box with an optional 50 p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Magama SMC OB Alert
1 stars

A price-chart indicator designed for gold that scores buy and sell setups from several smart money concepts. It finds swing pivots, detects breaks of structure and changes of character, flags simple fair value gap and liquidity sweep proxies, and adds a fast a

Indicator v5 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of GoldX AI Trader Auto SMC Signals

SMC Entry Filter

by andriiops
1 stars

This overlay indicator tracks confirmed swing highs and lows as liquidity levels and marks a break of structure when the close moves beyond the last swing. It detects bullish and bearish fair value gaps that meet a minimum ATR size, then plots filtered long an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of SMC Entry Filter

RSI Ultra Signal

by mmdverse
1 stars

An overlay that reads RSI on five timeframes from 5 minutes to daily and scores each overbought or oversold event from one to five stars. Optional confirmations are a MACD cross, a position relative to the 200 EMA, a volume surge, divergence and agreement acro

Indicator v5 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of RSI Ultra Signal

KB# GOLD

by jayadevrana
1 stars

KB# GOLD is a trading strategy that identifies trend entries and exits using moving average crossovers and optional Tillson T3 breakout filtering. The script calculates fast and slow exponential moving averages alongside a T3 smoothing curve. When breakout mod

Strategy v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of KB# GOLD
1 stars

This Pine Script indicator plots a range filter line along with high and low target bands on the price chart. It calculates a smoothed average range using a sampling period and multiplier, then applies a filter to detect upward and downward trends. Signals tri

Indicator v5 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Range Filter Buy and Sell 5min

3 - 30 Formula

by jayadevrana
1 stars

A Pine v5 strategy that enters on a 3-period and 30-period EMA crossover when the candle is strong, meaning its body is at least 80 percent of its full range. A bullish cross on a strong green candle opens a long, and a bearish cross on a strong red candle ope

Strategy v5 Moving averagesTrend
Updated 2 months ago · Custom licence GitHub repository of 3 - 30 Formula

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is a multi-indicator overlay designed primarily for gold trading. It combines higher-timeframe exponential moving averages with momentum oscillators like RSI, MACD, and StochRSI, alongside volatility tools such as ATR, Bollinger Bands, and A

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro
1 stars

A separate-pane indicator that flags sudden price moves using two measures: the percentage rate of change over a short rolling window and a z-score of bar-to-bar price changes against a longer baseline. A spike can trigger when either measure passes its thresh

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 months ago · AGPL-3.0 GitHub repository of Volatility Spike Detector

Triangle Patterns

by atroopa
1 stars

An indicator that draws sloping upper and lower trendlines from confirmed pivot highs and lows, forming triangle-style channels. The slope can be calculated with ATR, standard deviation or linear regression, scaled by a slope multiplier, and breakouts through

Indicator v5 Support & resistanceBreakout Repaints
Updated 2 months ago · None stated GitHub repository of Triangle Patterns
1 stars

A Pine v5 research overlay for gold on 15 or 5 minute charts. It shades a New York morning entry window, shows a bias dashboard from fast and slow EMAs, and draws 4 hour and 1 hour fair value gaps and order blocks as higher timeframe areas of interest. A break

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of HTC v0.1 Gold Research

聪明钱概念 SMC [LuxAlgo]

by RouZuoMong2003
1 stars

This script provides a Chinese localization of the LuxAlgo Smart Money Concepts suite, plotting market structure directly onto the price chart. It detects both internal and swing market structure shifts, including break of structure (BOS) and change of charact

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · Custom licence GitHub repository of 聪明钱概念 SMC [LuxAlgo]

GrimmArty Indicator

by GreyssonEnterprises
1 stars

A Pine v5 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a two-period EMA and the 200 average, three line strike markers and engulfing-style candle markers, with optional time-zone session shading and weekday tog

Indicator v5 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmArty Indicator

FVG + Volatility Regime

by ankitpatel117
1 stars

A strategy that detects three-candle fair value gaps and trades retracements into unfilled gaps, but only when an ATR-based volatility regime agrees. The regime is high or low by comparing ATR to its average or to a percentile, and a toggle flips between high-

Strategy v5 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · MIT GitHub repository of FVG + Volatility Regime

Trend Correlation Heatmap

by AubakirovArman
1 stars

Shows a heatmap of trend strength for up to four user-chosen timeframes. For each timeframe it measures the Pearson correlation of price with time over lookbacks from 50 to 500 bars in steps of 50, and colours each cell by strength and direction. It reports th

Indicator v5 TrendScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Trend Correlation Heatmap

SPE Cone Bands

by SeraKah-1
1 stars

An overlay indicator that draws a fan-shaped band projecting forward from the last bar. It uses the rolling mean and standard deviation of log returns to extend a median line and upper and lower lines by a chosen number of bars, scaled by a z-value input. It i

Indicator v5 Volatility & bands Repaints
Updated 3 months ago · MIT GitHub repository of SPE Cone Bands

Elephant Bars

by FranklyBrandon
1 stars

A price chart overlay that flags unusually large candles, called elephant bars, when the candle body is at least a set multiple of the average body over a lookback, 1.5 times and 100 bars by default. It also marks small retracement bars that follow an elephant

Indicator v5 Candlestick patternsMoving averages
Updated 3 months ago · None stated GitHub repository of Elephant Bars

FVG Auto-Trader

by DANIELMANZRU
1 stars

A strategy that detects fair value gaps and trades only those scoring high on a five-point quality check covering gap size, impulse strength versus ATR, candle body ratio and volume. Optional filters include a 200 EMA trend filter, premium and discount zone, s

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · None stated GitHub repository of FVG Auto-Trader
1 stars

High Low - Candle Origin is an overlay indicator that draws the current and previous period high and low as lines starting at the exact candle that formed each extreme. The period can be 1 hour, 4 hour, daily or weekly, and the chart timeframe must be smaller

Indicator v5 Support & resistanceSessions & time
Updated 3 months ago · MIT GitHub repository of High Low - Candle Origin
1 stars

An oscillator in a separate pane that blends two readings into a composite bias from minus 100 to plus 100. One measures price impulse, rewarding large-body candles relative to ATR, and the other applies volume spread analysis using volume, spread and close lo

Indicator v5 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Institutional Footprint + VSA

Mean Reversion + Trend Filter

by antonispaterakis
1 stars

A strategy that trades RSI reversals in the direction of a 200 EMA trend. It buys when RSI crosses up through the oversold level above the EMA and sells short when RSI crosses down through the overbought level below it. Each trade has an ATR-multiple stop, siz

Strategy v5 Mean reversionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Mean Reversion + Trend Filter
1 stars

Marks order block zones on the price chart for gold. A displacement candle is one whose range is at least 1.2 times ATR on above-average volume; the last opposite-colour candle before it becomes the zone. Each zone is scored on five checks such as clean body,

Indicator v5 SMC / ICT / price actionScalping
Updated 4 months ago · None stated GitHub repository of Krishna Simple OB Scalper - XAUUSD

Pro Algo System

by Meghraj-N
1 stars

This strategy combines a stack of exponential moving averages with RSI, MACD, stochastic and a volume spike check before entering long or short trades. Stops and targets are set from ATR multiples, with an optional ATR trailing stop, and position size is deriv

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Pro Algo System
1 stars

Ultimate Trend Suite [AI] is an overlay indicator that combines trend identification, momentum, volume analysis, and smart money concepts. It generates buy and sell signals based on moving average crossovers confirmed by volume above its average. The script ca

Indicator v5 TrendVolume
Updated 4 months ago · None stated GitHub repository of Ultimate Trend Suite [AI]

AI Animal Predator

by unemployedrabi
1 stars

Detects harmonic XABCD patterns on the price chart: Gartley, Bat, Butterfly, Crab, Shark and Cypher, in bullish, bearish and potential incomplete forms. Each pattern receives a score. Settings choose which pattern types to show, an optional lookback in bars, t

Indicator v5 Support & resistance
Updated 4 months ago · MIT GitHub repository of AI Animal Predator
1 stars

An intraday overlay combining candle range theory with price action. It plots break of structure and change of character labels from swing pivots, the previous higher-timeframe candle as a range with premium and discount shading, previous day high and low, the

Indicator v5 SMC / ICT / price actionSessions & time
Updated 4 months ago · MIT GitHub repository of Forex Analyst - CRT + Price Action
1 stars

A price-chart indicator that builds a zigzag from pivot highs and lows and searches it for classic chart patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and falling wedges. Each pattern gets

Indicator v5 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2
1 stars

The Iron Condor Signal (Range Detector) is an overlay indicator that identifies range-bound, low-trend market conditions suitable for non-directional trading strategies. It calculates Bollinger Bands, the Average Directional Index (ADX), and the Relative Stren

Indicator v5 Volatility & bandsTrend
Updated 4 months ago · GPL-3.0 GitHub repository of Iron Condor Signal (Range Detector)
1 stars

A strategy for index futures that combines New York session timing, session VWAP with bands, previous day levels and a volume profile with order flow proxies such as delta and a depth-of-market aggression threshold. Inputs set the aggression threshold, how man

Strategy v5 VolumeSessions & time Repaints
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile + Order Flow

BB(10,2) + TP20 SameDay

by zraesdev-hub
1 stars

This strategy draws Bollinger Bands on the price chart and enters long when both the open and the close are below the lower band. Mode S1 exits the same day at a 20 percent take profit or forces a close if that target is missed. Mode S2 can hold for a set numb

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) + TP20 SameDay

Pairs Trading Z-Score

by dcrown99
1 stars

An indicator in a separate pane that compares the chart symbol with a second symbol chosen in the settings. It takes the ratio of the two prices, optionally as a log ratio, and converts it into a rolling Z-score over a set window. Horizontal lines mark entry,

Indicator v5 Mean reversion
Updated 4 months ago · None stated GitHub repository of Pairs Trading Z-Score

RTE Overlay EURUSD 5M

by Jagadeesh963
1 stars

A generated overlay script that draws a fixed set of horizontal lines, boxes and text labels on the last bar of a EURUSD five-minute chart. The labels cover items such as market structure shifts, buy-side and sell-side liquidity, fair value gaps, an order bloc

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of RTE Overlay EURUSD 5M

Markov-HMM Regime v5

by flaviodesalvo54-del
1 stars

Markov-HMM Regime v5 classifies each bar as Bull, Bear or Sideways using a hidden Markov model whose parameters were trained offline in Python and pasted into the script. It runs the forward algorithm on price and volume features and loads a parameter set matc

Indicator v5 TrendAI / machine learning
Updated 4 months ago · MIT GitHub repository of Markov-HMM Regime v5

SMC / ICT Pro

by saadanezakaria6
1 stars

This overlay script identifies Smart Money Concepts (SMC) and ICT structure on the price chart. It detects swing pivots, Break of Structure (BOS), Change of Character (CHoCH), liquidity sweeps, order blocks, and Fair Value Gaps (FVG). Additionally, it plots an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC / ICT Pro
1 stars

A strategy for crypto futures that combines a Hurst exponent estimate with a z-score, ADX, RSI and ATR to separate trending from mean-reverting conditions. It plots a 50-bar high and low as resistance and support lines and uses pivot-style levels for entries a

Strategy v5 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of QuantiFine v6 Pivot R2 S2
1 stars

Calculates institutional liquidity sweeps across a configurable swing lookback period to trade market reversals directly on the price chart. It enters long when price dips below recent swing lows and closes back above, and enters short when price sweeps swing

Strategy v5 SMC / ICT / price actionSupport & resistance
1 stars

A one-minute reversal indicator drawn on the price chart. It combines swing-point structure breaks, wick-to-body rejection candles, an RSI condition or divergence, higher-timeframe demand and supply zones and session filters, and prints buy or sell labels only

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 5 months ago · None stated GitHub repository of M1 Reversal Multi-Filter Hub Pro

Micro Atomic Clean Signal

by alfadeepmode
1 stars

An overlay indicator that prints long, short and exit labels on crypto charts. A signal needs trend alignment of a 50 and 200 EMA, RSI and fast MACD ranges, a minimum ATR percent, a volume ratio and an ADX floor, combined into a percentage entry score. An opti

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Micro Atomic Clean Signal
1 stars

A price-chart indicator aimed at Nifty and Sensex options that combines VWAP, central pivot range levels, three EMAs, Supertrend, optional Bollinger Bands, Parabolic SAR and previous-day high and low. RSI, MACD, stochastic and ADX readings feed a signal dashbo

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Multi-Indicator Confluence System

Talons BB Squeeze Breakout

by muammeryldrm42
1 stars

This strategy identifies Bollinger Band squeezes and enters positions on volatility breakouts. It defines a squeeze when the normalized band width over the last five bars drops below its 25th percentile over a configurable lookback window. When a breakout occu

Strategy v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Talons BB Squeeze Breakout
1 stars

This overlay strategy is built for MNQ on a five-minute chart and is meant to trade imbalance fair value gaps. It reads one-hour and two-hour closes against exponential moving averages for directional bias, and it flags liquidity sweeps of the previous day hig

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of IFVG Strategy – MNQ 5min
1 stars

Finds the highest high and lowest low on the current timeframe and draws Fibonacci levels between them on the price chart, with the low as the zero level and the high as the full range. Labels show each level. It has no adjustable inputs and does not state whi

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Fibonacci Levels with Labels

More Pine Script Categories

Browse the whole Pine Library

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.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers