Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 7)

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

MultiStrategy-LazyBear

by sassiz-root
2 stars

This overlay strategy combines optional scalp and swing modes for crypto charts. It filters trades with a higher-timeframe ADX reading, stochastic bands, and a price channel defined by amplitude and deviation. Long or short direction is selected by trend toggl

Strategy v5 TrendOscillators & momentum Repaints
Updated 3 years ago · MIT GitHub repository of MultiStrategy-LazyBear

Backtester For Anything

by theupslidedown
2 stars

This strategy serves as a backtesting template for any trading system. It accepts external signals to trigger long or short entries and exits, with optional filters based on EMA and ADX indicators to refine conditions. Time-based restrictions limit trading to

Strategy v5 Screeners & dashboardsTrend Repaints
Updated 3 years ago · None stated GitHub repository of Backtester For Anything

Signal Moving Average

by ctkqiang
2 stars

The Signal Moving Average indicator calculates an adaptive trend line weighted by the R-squared correlation between price and bar index over a configurable period. When the correlation exceeds a fixed threshold, the indicator blends a simple moving average wit

Indicator v5 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Signal Moving Average
2 stars

This indicator plots buy and sell labels on the price chart. It calculates a WaveTrend-style oscillator from exponential moving averages, then requires a cross to agree with the slope of a Jurik moving average built on a blended close, VWAP, and OHLC source. A

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Wave Up Indicator - Pro
2 stars

This indicator tracks market direction by combining Bollinger Bands breakouts with ATR-adjusted pivot point channels. It establishes a primary trend line based on price breaking outer Bollinger Bands filtered by ATR, then validates the movement with a secondar

Indicator v4 TrendVolatility & bands
Updated 5 years ago · None stated GitHub repository of DeFi Follow Line Trend Signal

Asif 4H TP5 and MS Break

by Asifali549
1 stars

A long-only strategy for crypto on the 4-hour chart that combines two entry types: an Ichimoku plus market structure break signal, and a structure break confirmed by a volume spike. Trend EMAs and a volume multiple filter entries, and each signal type has a co

Strategy v6 BreakoutTrend
Updated yesterday · None stated GitHub repository of Asif 4H TP5 and MS Break

BD Trading Cockpit

by BD-Chess
1 stars

A separate-pane indicator that gathers several readings into one table: a percentage ZigZag, a multi-timeframe consensus across up to eight selectable timeframes, a short-term sync momentum check between two symbols (Bitcoin and Ethereum by default), and an MD

Indicator v6 Screeners & dashboardsTrend
Updated yesterday · None stated GitHub repository of BD Trading Cockpit
1 stars

A regime-first signal engine for the price chart. It classifies the market stage with a long moving average on an automatically chosen timeframe, then looks for setups: trend pullback, base breakout, stage-two entry, and two bottom-reversal types after heavy s

Indicator v6 TrendBreakout Repaints
Updated yesterday · None stated GitHub repository of Institutional Buy & Sell v9.4
1 stars

This indicator calculates and plots the standard Average Directional Index (ADX) to measure overall trend strength. It calculates positive and negative directional movement against the true range using RMA smoothing to derive the directional index, which is th

Indicator v6 TrendOscillators & momentum
Updated yesterday · Custom licence GitHub repository of Average Directional Index

Matrix Trend BTR

by natalivm
1 stars

A price-chart overlay that draws an Ichimoku-style cloud and a moving average, then prints buy and sell triangles from a chosen engine: RSI crossing its average in the cloud trend direction, EMA trend reversals, or manual price-level rules. Extra optional sign

Indicator v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Matrix Trend BTR

SURGE Sentinel

by Reckless2316
1 stars

A Pine v6 overlay for crypto charts that scores several confluence layers across the chart timeframe, a middle timeframe and a higher timeframe, with an optional reference asset. A signal fires only when the winning score, the number of agreeing layers and the

Indicator v6 TrendVolatility & bands Repaints
Updated yesterday · None stated GitHub repository of SURGE Sentinel

Indicator Template

by Jahanzaib211
1 stars

A starter indicator template that plots a fast and slow exponential moving average on the price chart. A long or short marker appears on a confirmed bar when the averages cross and RSI is above or below 50. Each signal calculates an ATR-based stop level and a

Indicator v6 Moving averagesTrend
Updated yesterday · MIT GitHub repository of Indicator Template

NSE Swing v6 Pro UI

by Tilak004
1 stars

A trend-following swing strategy for Indian stocks. Longs need an EMA 21, 50 and 200 alignment with rising slopes, then enter on a pullback to the 21 EMA or a breakout above a recent swing high, filtered by ADX, volume against its average, RSI and an optional

Strategy v5 TrendBreakout
Updated yesterday · None stated GitHub repository of NSE Swing v6 Pro UI

BTC Trend Ensemble 2-of-3

by nvolpe2007-cell
1 stars

A long-or-cash strategy where three trend checks vote at each daily close: price above a 100-bar SMA, above a 200-bar SMA, and above its close 90 bars earlier. It holds a long position when at least the required number of votes agree, two by default, and moves

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of BTC Trend Ensemble 2-of-3

HA Candles

by teshmi9z-beep
1 stars

An overlay that redraws the chart using an alternative candle type. The user can choose normal candlesticks, Heikin Ashi candles, or candles built from linear regression of open, high, low and close over an adjustable length. Alternative candles are coloured c

Indicator v6 Trend
Updated yesterday · MIT GitHub repository of HA Candles
1 stars

A separate-pane chart port of a scanner's decision logic, intended to read setups bar by bar. It reproduces a Z-score regime engine, a weekly midline heat phase, absorption and climax markers, nine core checks and a final signal tree, plus an optional divergen

Indicator v6 TrendScreeners & dashboards Repaints
Updated 2 days ago · None stated GitHub repository of Reflex RCCE - Engine View

MEXC Paper Technical Alerts

by sjbrenchley89
1 stars

This indicator plots 9-period and 21-period exponential moving averages directly on the price chart to identify momentum changes. It generates entry signals when a fast EMA crosses above a slow EMA while RSI is between 50 and 65 and the MACD histogram is posit

Indicator v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MEXC Paper Technical Alerts

15m EMA + OI Flip Signals

by grzresearch
1 stars

The indicator plots the fast 9 and slow 15 EMA on the price chart and colors the area between them green for bullish trend and red for bearish. It generates BUY signals on the fast EMA crossing above the slow EMA and SELL signals on the opposite crossover. Sig

Indicator v6 TrendMoving averages
Updated 2 days ago · MPL-2.0 GitHub repository of 15m EMA + OI Flip Signals
1 stars

An indicator for crypto perpetual futures that scores each bar from trend, momentum, volume and market structure, then confirms it across four timeframes. Scores at or above a long threshold or at or below a short threshold produce signals, optionally gated by

Indicator v6 TrendSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of AURA Confluence Signal System

A price-chart indicator that plots a 200-length double exponential moving average and colours it by trend strength. The line turns green when price is above it and ADX is at or above a threshold, red when price is below it, and grey when ADX is weak. ADX and d

Indicator v5 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of DEMA 200 and ADX Combined Indicator
1 stars

This trend-following strategy implements Paul Tudor Jones' long-term moving average rule directly on the price chart. It calculates an SMA or EMA baseline with an optional percentage band and a confirmation close counter to filter out false breakouts. The stra

Strategy v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of 200-Day Rule (Paul Tudor Jones) [JR]

Ichimoku Cloud

by hongdangcs
1 stars

Plots the standard Ichimoku Cloud on the price chart: conversion line, base line, leading spans A and B and lagging span, using Donchian midpoints with default lengths of 9, 26 and 52. Lengths and displacement can be adjusted. The script also holds a group of

Indicator v5 TrendSupport & resistance
Updated 4 days ago · None stated GitHub repository of Ichimoku Cloud

EMA · RSI

by Tomas-Cyberia
1 stars

The EMA RSI indicator plots multiple moving averages including EMAs and MAs on the price chart and the RSI oscillator in a separate pane. It identifies when a trending asset returns to support with RSI in oversold, using green signals and confirmations at key

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of EMA · RSI

Mahi_varma PA

by manthenamahendravarma-IO
1 stars

This indicator maps market structure and price action levels directly on the price chart. It detects Break of Structure (BOS) and Change of Character (CHOCH) patterns alongside swing points. The script identifies key zones including Quasimodo Levels (QML), Sup

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · MIT GitHub repository of Mahi_varma PA

Multi-Strategy Bot

by eliRap1
1 stars

This Pine Script v5 indicator overlays multiple technical strategies on the price chart to generate buy and exit signals. It scores confluence across SuperTrend direction flips, momentum (EMA, RSI, ROC), Bollinger Band mean reversion, breakout volume, and Stoc

Indicator v5 TrendOscillators & momentum
Updated 5 days ago · None stated GitHub repository of Multi-Strategy Bot

Trend Mastery

by LemonPower21
1 stars

A long-only trend strategy using a 50-period and a 200-period EMA with an RSI filter. It buys when price crosses above the fast EMA or the fast EMA crosses above the slow one, provided price is above the slow EMA and RSI is above a set level. It closes when th

Strategy v5 TrendMoving averages
Updated 5 days ago · None stated GitHub repository of Trend Mastery

Indicator EMA Crossover

by Jakub-Pinkowski
1 stars

This script calculates two Exponential Moving Averages (EMAs), default periods 9 and 21, and plots them directly on the price chart. It shades the area between the lines green during bullish trends and red during bearish trends. Crossovers trigger delayed Buy

Indicator v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Indicator EMA Crossover

This indicator evaluates and visualizes institutional banker, hot money, and retail trader strength inspired by the MCDX model. It measures RSI-based momentum across daily, weekly, and monthly timeframes, combining them into a weighted composite strength score

Indicator v6 Oscillators & momentumTrend

Adaptive MA Function

by pineforge-4pass
1 stars

This strategy calculates Kaufman's Adaptive Moving Average (KAMA) using a custom efficiency-ratio function on closing prices. It plots a color-coded KAMA line directly on the price chart, turning green when the slope is positive and red when negative. The stra

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of Adaptive MA Function
1 stars

A Pine v6 overlay that reads closed-candle data from three higher timeframes and tracks fast and slow EMAs, RSI, Bollinger Bands, ADX, VWAP and volume against its average. It is designed to send updates only when a value changes by more than a set threshold fo

Indicator v6 TrendOscillators & momentum
Updated 6 days ago · None stated GitHub repository of Multi-Timeframe Trend Monitor

This strategy calculates fast and slow EMAs crossed with an RSI filter to generate long and short signals on the price chart. It enters positions based on EMA crossover conditions filtered by RSI thresholds and exits using stop-loss and take-profit levels scal

Strategy v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Hyperliquid-Ready Webhook Strategy Template

EMA Volume

by engtuncay
1 stars

The EMA Volume indicator plots two exponential moving averages on the price chart, with lengths of 50 and 200 periods. It calculates a simple moving average of volume and filters cross signals based on volume levels. Bullish and bearish crossovers between the

Indicator v6 Moving averagesVolume
Updated 6 days ago · None stated GitHub repository of EMA Volume

Gann HiLo Swing

by allanninal
1 stars

This indicator draws two tools from W.D. Gann on the price chart. The HiLo Activator line follows the average of recent lows in an uptrend and recent highs in a downtrend, changing colour as the side flips. A dotted line connects confirmed swing highs and lows

Indicator v6 Trend
Updated 7 days ago · Custom licence GitHub repository of Gann HiLo Swing

NSE Algo Trading System v1

by ArunTelegramBot
1 stars

A strategy for Indian stocks that lets the user choose one of five rule sets: SuperTrend with an EMA, an EMA crossover, RSI with MACD, a Bollinger Band squeeze, or a VWAP pullback. A time window in UTC limits trading to exchange hours. Risk management sizes by

Strategy v5 TrendOscillators & momentum
Updated 10 days ago · None stated GitHub repository of NSE Algo Trading System v1

DEPV2

by YuceSezar89
1 stars

DEPV2 is a multi-symbol indicator for cryptocurrency trading. It aggregates signals from trend, momentum, volatility, and volume methods across 20 crypto pairs. Users select confirmation modes including simultaneous, sequential, or automatic per symbol. The in

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2
1 stars

This strategy identifies an Opening Price Range during a specified time window and trades breakouts above or below the established range during the New York trading session. Entries can be filtered using optional RSI extremes and EMA trend direction, restricte

Strategy v6 BreakoutSessions & time
Updated 12 days ago · None stated GitHub repository of NQ NY Session OPR Breakout Strategy

AlphaTrend Scalping

by MuhammadMuhamid
1 stars

A strategy designed for a fifteen-minute chart that takes one trade per AlphaTrend buy signal. Entries need price above 15-minute and 1-hour moving averages, plus filters for sideways markets (stacked rising averages, ADX floor, breakout above recent highs). A

Strategy v6 TrendScalping
Updated 12 days ago · None stated GitHub repository of AlphaTrend Scalping

ATR Expansion with Trend

by quantxaashish
1 stars

This indicator identifies potential bullish breakout opportunities by detecting volatility expansions in the direction of an established trend. It calculates the Average True Range (ATR) and determines if volatility is expanding by comparing ATR to its moving

Indicator v5 TrendVolatility & bands
Updated 13 days ago · MIT GitHub repository of ATR Expansion with Trend

Calculates an Average True Range (ATR) trailing stop that trails price by a configurable distance multiplier. It draws the trailing stop line on the price chart and marks flip points when price crosses the line. The indicator allows confirmation of flips on ba

Indicator v6 TrendVolatility & bands
Updated 13 days ago · MPL-2.0 GitHub repository of Taught to Trade - ATR Trailing Stop with Flip Audit

This strategy demonstrates a decoupled architecture where external Python optimization feeds parameters into Pine Script through a formatted configuration payload. The script parses the payload to set the SMA length, ATR length, take profit percentage, and ATR

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Off-Chain Python-Pine Architecture [The Quant Science]

Trend Sniper Mini

by kasutu
1 stars

A multi-engine indicator that marks historical trade setups on the price chart. It combines trend entries filtered by a 200 EMA bias and higher timeframe, range breakouts from compressed ranges, and fades or reclaims after large news-style candles. Stops use A

Indicator v6 TrendBreakout Repaints
Updated 2 weeks ago · None stated GitHub repository of Trend Sniper Mini
1 stars

A long-entry strategy for the price chart that scores twelve conditions: RSI, MACD histogram, an EMA stack, SuperTrend, Bollinger position, ATR volatility, VWAP, volume ratio, stochastic, ADX, Ichimoku cloud and MFI. A buy needs at least nine to pass. Inputs s

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of 12-Indicator Webhook Trigger

GOD Conviction Engine

by Oluwacutyp
1 stars

A large all-in-one overlay aimed at gold and Bitcoin charts. It combines trend EMAs, an HMA baseline, an elastic EMA, order blocks, fair value gaps, breaker blocks, liquidity sweeps, an Asian range box, key levels, VWAP, market structure and several tables inc

Indicator v6 SMC / ICT / price actionTrend
Updated 2 weeks ago · Unlicense GitHub repository of GOD Conviction Engine

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