Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 5)

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

3 stars

This strategy template overlays a demonstration system of Parabolic SAR, regression channels, and Supertrend on the price chart while packaging TV-Hub webhook commands. It generates buy, sell, and close alert messages for selected crypto exchanges. Inputs set

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TV-Hub Boilerplate / Template Strategy

This trend-following strategy calculates asymmetric Bollinger Bands and overlays them on the price chart alongside a central moving average. It enters long positions when the price crosses above the upper band, provided an optional benchmark trend filter (chec

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MIT GitHub repository of Bollinger Band Trend Follow Strategy

TradeEase

by RA1NCS
3 stars

TradeEase is a Smart Money Concepts indicator that maps market structure and key liquidity zones directly on the main price chart. It identifies internal and swing market structure changes, including Break of Structure (BOS) and Change of Character (CHoCH), as

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TradeEase
3 stars

This Pine Script strategy plots a G-Channel and a 200-period Exponential Moving Average (EMA) directly on the price chart. It triggers buy signals when price crosses the lower G-Channel line while trading below the EMA line. Long positions are managed using Av

Strategy v4 TrendMoving averages
Updated 2 years ago · Apache-2.0 GitHub repository of G-Channel & EMA Strategy with ATR SL/TP

Larry Williams 9.1

by leocairos
3 stars

This strategy tracks directional shifts in a 9-period Exponential Moving Average (EMA) to identify trend reversals based on the Larry Williams 9.1 setup. It plots the 9 EMA on the main chart and generates a long signal when the EMA turns upward after declining

Strategy v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Larry Williams 9.1

EMA Crossover

by mr-s8
3 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-2.0 GitHub repository of EMA Crossover

This indicator plots Linear Regression lines with deviation bands on the price chart to identify support and resistance levels. It filters signals using configurable EMA lines and optional Supertrend filter. A session filter restricts calculations to specified

Indicator v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading LR + TTP Indicator Lite

Combined Script

by maxits
3 stars

Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe

Strategy v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Combined Script

Carmelita Adelina Leandro by Professor Theta is an intraday signal script designed for futures charts. It calculates VWAP and a 9-period Exponential Moving Average to identify trend reversal triggers. Long and short entry signals are evaluated based on open pr

Strategy v5 TrendMoving averages
Updated 4 years ago · Unlicense GitHub repository of Carmelita Adelina Leandro by Professor Theta

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

Combines Ichimoku Cloud, SuperTrend, Bollinger Bands, and three moving averages into a single overlay indicator. It plots trend direction, volatility bands, and key averages directly on the price chart. The indicator features a Bollinger Band pinch detector th

Indicator v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Ichimoku + SuperTrend + 3MA + Bollinger Bands

Icarus

by niloysaha
3 stars

Icarus is an overlay indicator that projects momentum and level indicators directly onto the price chart. It calculates higher-timeframe equivalents for moving averages, computes Supertrend, and constructs price-equivalent RSI upper and lower bands based on La

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Icarus

Bulk Notification

by bit4you-io
3 stars

Calculates price direction for the current asset alongside 60-minute directional changes for BCH and LTC using multi-symbol requests. Combines these conditions with a 24-bar percentage price change threshold to produce bullish or bearish consensus signals. Set

Indicator v4 TrendOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of Bulk Notification

BTC MA Accumulation v1

by yalili8521
2 stars

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of BTC MA Accumulation v1

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper

VCP Silver Tier Strategy

by alejandr02820
2 stars

The VCP Silver Tier Strategy is a MACD-based trading system in Pine Script v5 that draws signals on the price chart. It computes the MACD line using fast length 12, slow length 26, and signal length 9. Long entries fire on MACD crossover below zero; short entr

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of VCP Silver Tier Strategy

This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of Ver15 Environment Recognition (Provisional Pivot)
2 stars

The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Adaptive Decycler Supertrend

FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger

Strategy v6 TrendOscillators & momentum
Updated 3 weeks ago · MIT GitHub repository of FortiTrade Elite Multi-Strategy with DeepSeek Turbo

SMC Marks

by kxngHADES
2 stars

This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi

Indicator v6 SMC / ICT / price actionTrend
Updated 4 weeks ago · None stated GitHub repository of SMC Marks

EMA & PVSR Master MP

by midngtpickle
2 stars

This indicator unifies Price Volume Spread Analysis (PVSRA) with a suite of moving averages and VWAP. It calculates volume classifications—flagging climax, above-average, and regular bars—and projects synchronized candle coloring, six customizable EMAs, three

Indicator v6 Moving averagesVolume
Updated 4 weeks ago · Custom licence GitHub repository of EMA & PVSR Master MP

MTF OTF Close Filter

by flaviusapop
2 stars

MTF OTF Close Filter calculates multi-timeframe breakout or continuation states by comparing each timeframe's current close to the highest and lowest closes over the prior N bars. It plots a six-cell status table at the bottom right of the chart showing UP, DO

Indicator v5 BreakoutTrend
Updated 5 weeks ago · None stated GitHub repository of MTF OTF Close Filter

Bridge Protocol Example

by propfirmgorilla
2 stars

This example strategy demonstrates how to format Pine Script order alerts into JSON payloads for automated execution engines. It generates entry signals using a 10-period and 30-period simple moving average crossover and calculates protective stop-loss prices

Strategy v5 Moving averagesTrend
Updated 6 weeks ago · MIT GitHub repository of Bridge Protocol Example

Apex Swing System

by omharde42
2 stars

Apex Swing System is a trend and momentum indicator designed for swing trading. It combines a 200-period simple moving average filter, RSI momentum checks, and the Ichimoku Cloud to identify bullish and bearish setups. Upon confirming a signal, it plots fixed

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Apex Swing System

Trust Me Bro Strategy

by moonyroy
2 stars

A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions

Strategy v6 Oscillators & momentumDivergence
Updated 7 weeks ago · MIT GitHub repository of Trust Me Bro Strategy
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

GODMODE Dashboard

by EricMohlathe
2 stars

This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of GODMODE Dashboard

TFX Gold Sniper - V26 Black-Gold

by vijayavardhanarajumahanandi-cell
2 stars

This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of TFX Gold Sniper - V26 Black-Gold

A-SLP DEMALONG 6M

by danielvm-git
2 stars

This strategy plots up to three double exponential moving averages on the price chart and flags crossovers and crossunders between them. With the third length at zero, it compares the first and second DEMAs; other length combinations change which series is use

Strategy v4 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of A-SLP DEMALONG 6M

FYP Bot 1

by aleks-drozy
2 stars

This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of FYP Bot 1
2 stars

This indicator analyzes volume character and market structure in a separate chart pane. It color-codes volume bars to identify institutional accumulation, distribution, climax volume, and volume dry-up conditions during volatility contraction patterns. The scr

Indicator v5 VolumeTrend
Updated 4 months ago · None stated GitHub repository of TJ Essentials - Daily Swing

QTrade MACD

by Can3299
2 stars

QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · AGPL-3.0 GitHub repository of QTrade MACD
2 stars

This strategy executes long trades based on a 50 and 200 SMA golden cross and manages exits using a dynamic trailing stop. Upon entry, it places an initial stop loss at the lowest low of the previous lookback bars. Whenever price prints a new high over the spe

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2-Bar Trailing Stop Strategy
2 stars

This overlay indicator draws Elliott Wave structure on the price chart. It builds up to three independent ZigZag swings from user-selected high and low sources, then connects impulse legs labeled one through five and corrective legs labeled A through C. Four a

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Elliott Wave [LuxAlgo]

Trend Duration Forecast

by middlechild0
2 stars

Trend Duration Forecast plots Hull Moving Average on the price chart and detects trend changes using consecutive rising or falling slopes. It counts trend bar durations, stores bullish and bearish counts in arrays, and calculates average probable extension len

Indicator v6 Trend
Updated 5 months ago · None stated GitHub repository of Trend Duration Forecast
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v1

This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Indicador de Tendências do BTC e Altcoins
2 stars

ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc

Indicator v4 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate MultiStrategy Trading

MTF Signal Strategy

by Flopchamp
2 stars

The MTF Signal Strategy is designed for 1-minute charts to identify trade entries using multi-timeframe EMA trends, Opening Range Breakout (ORB) levels, key daily high/low levels, and custom pivot zones. It generates trade signals on bar closes when price alig

Strategy v5 TrendBreakout
Updated 7 months ago · None stated GitHub repository of MTF Signal Strategy
2 stars

The ARCStage indicator calculates and color-codes Stan Weinstein's four market stages using the slope of the 30-week SMA and the price position relative to it. Stage 1 appears in light gray during basing consolidation, Stage 2 in light green during advancing,

Indicator v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Stan Weinstein Stage Analysis
2 stars

This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi

Strategy v5 TrendOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of WINNER MNQ Strategy - Optimized 2026

Hari Sweep Scalper

by godlesscherry
2 stars

This overlay strategy looks for Bollinger Band and optional fractal sweeps only in the Supertrend direction, with an optional MACD filter. Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters

Strategy v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Hari Sweep Scalper

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