Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 9)

Open-source Pine scripts that show the direction of the trend or trade with it: Supertrend variants, moving-average systems, ADX and trend filters.

Pine scripts3,870
Code shown here2,160open licence
Updated in a year2,525
No repaint flag3,292

Trend: Indicators, Strategies and Libraries

Fusion Cipher A Overlay

by shahzaib-574
1 stars

This indicator draws an eight-line EMA ribbon with an optional cloud on the price chart, using Fibonacci-style lengths from 8 to 233 and an optional Heikin Ashi source. It adds symbolic guidance marks, long and short setup labels, a compression filter and a vo

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Fusion Cipher A Overlay

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

EMA Gold Trader 2026

by alexhb-maker
1 stars

An overlay for the price chart that plots a 60-period EMA, a 60-period double EMA and a 200-period EMA. It marks a buy triangle when the previous close sits above both the EMA and the double EMA, and a second triangle when the EMA crosses above the double EMA.

Indicator v6 TrendMoving averages
Updated 3 months ago · MIT GitHub repository of EMA Gold Trader 2026
1 stars

This indicator draws two ATR trailing stop lines on the price chart: a fast Sniper line and a slow Anchor line. A buy or sell trigger comes from the fast line flipping, and the README says it should agree with the slow line's direction. A session filter shades

Indicator v6 TrendVolatility & bands
Updated 3 months ago · MIT GitHub repository of Phoelix 15min Sniper Bot - Raw Ride Edition
1 stars

Papan Gerak is a multi-dimension technical analysis dashboard aimed at Indonesian stocks. This base module declares the indicator in a separate pane and stores the display and calculation settings used by the dashboard. It covers table position, font size, com

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak By. Akhmfz

EMA Cross (Clean)

by ForexCodes-hq
1 stars

A small Pine v6 example strategy that goes long when a 12-period EMA crosses above a 26-period EMA, and only acts on a confirmed bar. After entry it attaches a fixed stop loss placed a set number of points below the average entry price, set by one input. There

Strategy v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of EMA Cross (Clean)
1 stars

The ATR Breakout Channel strategy detects breakouts by comparing the current close price to the high or low of the previous 20 bars, forming a channel. Entries occur when the price breaks through the channel in the trend direction of a 200-period EMA if the tr

Strategy v6 BreakoutTrend
Updated 3 months ago · MIT GitHub repository of ATR Breakout Channel [QuantForge]

GEKO Gold

by grzegorzkowalskigk-jpg
1 stars

GEKO Gold is a trend-following indicator for gold (XAUUSD/MGC). It computes a GEKO-TIMID composite trend strength score by blending weekly and daily EMAs and ADX values, then classifies the trend into Emerging, Dominant or Extended states. The indicator plots

Indicator v6 TrendMoving averages
Updated 3 months ago · Custom licence GitHub repository of GEKO Gold

Auric Sentinel

by arslanahmad429
1 stars

A multi-layer overlay that combines an EMA ribbon with a higher-timeframe EMA and price context, swing-based order blocks, a premium and discount zone, session and volatility filters, and a risk table. Settings choose the EMA lengths, swing bars, invalidation

Indicator v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of Auric Sentinel
1 stars

BottleRocket Pivot Breakout is an intraday trading strategy designed to capture breakout moves above daily pivot levels. It derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum sto

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of BottleRocket Pivot Breakout
1 stars

A Pine v6 strategy for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. It enters long or short when RSI pushes through set levels plus a gap, with optional candle color, EMA 200 trend, ATR range and body-size filters, and a pullback re-e

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v20
1 stars

An overlay that scans for trend-continuation pullbacks. It reads a 1-hour EMA stack for bias, waits for a close through the latest confirmed swing to mark a market structure shift, then draws the 0.62 to 0.79 Fibonacci optimal trade entry zone of that leg. A s

Indicator v6 SMC / ICT / price actionTrend
Updated 4 months ago · None stated GitHub repository of Market Structure + OTE

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]
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)

Trade Signal Indicator

by ashishgkwd
1 stars

Trade Signal Indicator is an overlay script that combines three tools: an EMA crossover (13 and 48 by default), an adaptive trend finder channel and a Nadaraya-Watson envelope. Each can be enabled separately, and colours, deviation multiplier, bandwidth and so

Indicator v6 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Trade Signal Indicator
1 stars

ADX Trend Filter Pro is a separate-pane indicator built on the directional movement system. It plots ADX with DI plus and DI minus, classifies trend strength as weak, moderate, strong or very strong from adjustable thresholds, and overlays a fast and slow EMA

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of ADX Trend Filter Pro

ADX and DI

by rubbermetal
1 stars

A separate-pane indicator that calculates the Average Directional Index and the plus and minus directional indicators with Wilder-style smoothing over an adjustable length. It plots ADX with grid lines at weak, strong and extreme levels, optional DI+ and DI- l

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of ADX and DI

UT Bot v6

by Stolzel
1 stars

This indicator calculates and plots trend-following signals based on an adaptive UT Bot trailing stop mechanism on the price chart. Entry signals trigger on trailing stop crossovers, with sensitivity keys adjusting dynamically between trending and ranging mark

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of UT Bot v6

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
1 stars

Array Advanced Helpers is a Pine Script v6 strategy that plots on the price chart. It builds arrays from close, open, high and hl2 to compute the lowest and highest values along with the last index of the highest. Two EMAs with periods 8 and 21 generate crosso

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Array Advanced Helpers

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

Nexus Flow

by darkwader26
1 stars

Nexus Flow is a multi-dimensional trend and momentum indicator that combines EMA and ALMA trend detection with Supertrend consensus for adaptive trend filtering. It incorporates an adaptive RSI for momentum analysis with volatility-adjusted lookback and plots

Indicator v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Nexus Flow

DST HMM v9 Mobile

by Javas128282
1 stars

DST HMM v9 Mobile is a variant of a gold-focused hidden Markov model regime indicator, adjusted for mobile screens. It classifies the market into Sideways, Bull and Bear states using Baum-Welch retraining on a rolling window, draws a Kalman filter line with co

Indicator v6 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of DST HMM v9 Mobile

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

Adaptive Supertrend Pro

by shubhamtaywade82
1 stars

Plots an adaptive Supertrend on the price chart whose multiplier moves between a minimum and maximum with volatility regime, using ATR, ADX and volume percentile settings. Signals are filtered by a higher-timeframe EMA and ATR check, liquidity sweeps, pullback

Indicator v6 TrendVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Adaptive Supertrend Pro

Sentiment 2

by ggamer5555
1 stars

Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1. It combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotte

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Sentiment 2

Gold indicator

by H4RsH-25
1 stars

The Gold indicator plots the 20 SMA and 200 EMA on the price chart together with $2 proximity zones around the SMA. It generates strong long signals when price enters the zone from below, stays above the SMA and MACD histogram is positive. Strong short signals

Indicator v6 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Gold indicator

BVortex

by Alberto082544
1 stars

BVortex calculates a scaled Vortex Indicator presented as a histogram in a separate pane. It evaluates positive and negative directional movements over a specified lookback period relative to True Range. The histogram changes color to highlight extreme momentu

Indicator v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex

BEST Supertrend Strategy

by Ayooluwa-trading-dev
1 stars

This strategy combines a Supertrend line, calculated on a selectable timeframe from daily up to yearly, with a fast and slow SMA pair, 7 and 20 by default. A long needs price above the Supertrend level and the fast SMA above the slow one; a short needs the rev

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of BEST Supertrend Strategy

Bakome Buy Sell

by BAKOME-Hub
1 stars

This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss

Indicator v5 Moving averagesTrend
Updated 5 months ago · MIT GitHub repository of Bakome Buy Sell
1 stars

Plots two VIDYA adaptive moving averages, a short one of 9 bars and a long one of 21 bars by default, on the price chart. A buy label appears when the short line crosses above the long one while the positive directional index is above a threshold, and a sell l

Indicator v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of VIDYA Crossover with ADX Filter

BAKOME HUNTER MT5

by BAKOME-Hub
1 stars

BAKOME HUNTER MT5 is an overlay indicator that prints buy and sell labels from a linear regression moving average, a Heikin Ashi trend and an ATR volatility check. Optional RSI, ADX and volume filters can be switched on or off. Each signal can show a stop loss

Indicator v6 TrendVolatility & bands
Updated 5 months ago · MIT GitHub repository of BAKOME HUNTER MT5
1 stars

This strategy overlays a seven-step smart-money process on the price chart. It compares a higher-timeframe close with an EMA to shade bullish or bearish trend, then marks equal highs and lows, order blocks, fair value gaps, and changes of character. Inputs set

Strategy v6 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of Kasper — 7 Étapes de Trading

Luo Sheng Indicator

by Chovy-King
1 stars

An overlay that detects up to eleven price-action entry setups, each with its own switch: trend breakout, trend pullback, false breakout of a key level, range edge, breakout retest, double top or bottom, and others. It builds key levels by clustering swing poi

Indicator v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of Luo Sheng Indicator

Melgo Sequence Classifier

by jeffreymelgo
1 stars

Melgo Sequence Classifier ranks the HL2, HLC3 and OHLC4 values of each completed higher-timeframe candle to assign one of six structural states: bull trend, bear trend, bull rejection, bear indecision, distribution or accumulation. It reads four timeframes, de

Indicator v6 Screeners & dashboardsTrend
Updated 6 months ago · Custom licence GitHub repository of Melgo Sequence Classifier

SmartFlow Market Indicator

by Nadarisgetae
1 stars

This indicator gives buy and sell labels on the price chart by combining a triple moving average trend filter (EMA 21, EMA 50 and SMA 200), an RSI zone check, a volume spike on a candle of the same direction, and an optional pivot breakout. It also marks pivot

Indicator v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of SmartFlow Market Indicator

Combined Trend Indicator

by modiritrade
1 stars

A Pine v6 indicator that classes the chart as long, short or neutral by adding up four votes. Supertrend direction, MACD line against its signal line, price against a 50-period EMA, and a hand-built ADX with directional indicators each add or subtract one, wit

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Combined Trend Indicator
1 stars

This Pine Script indicator computes a Confluence Score from 0 to 100 by aggregating seven breakout identification strategies based on VCP trend template, TTM squeeze, volume analysis, relative strength, MA setup, RSI momentum and price near resistance. It plot

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Breakout Confluence Scanner
1 stars

This strategy trades BIST30 futures on the price chart using a fast 9-period and slow 21-period EMA crossover signal. It generates buy signals only during Turkish market session hours of 09:30-18:15 UTC+3 and closes all positions automatically at session end.

Strategy v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of VİOP Session Strategy

APEX Scalper v3

by Sandesh30-cloud
1 stars

A Pine v5 strategy that scores trade setups from several indicators before entering. Inputs cover an 8, 21 and 50 EMA ribbon, a higher-timeframe EMA trend check using previous-bar values, RSI, MACD, Stochastic RSI, ADX, a volume spike test and optional London

Strategy v5 ScalpingTrend
Updated 6 months ago · None stated GitHub repository of APEX Scalper v3

ARPS ZEMA Cross

by ali-rajabpour
1 stars

An overlay indicator written in Pine v4 that plots two zero-lag EMAs, a fast 50-period and a slow 200-period line, and labels long and short entries where they cross. Both averages are calculated from a fixed ten-minute BTCUSDT series rather than the chart sym

Indicator v4 Moving averagesTrend
Updated 6 months ago · None stated GitHub repository of ARPS ZEMA Cross

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