Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 10)

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

1 stars

A price-chart overlay built around a customised Ichimoku setup with Tenkan, Kijun, a coloured cloud, Chikou span, quality and direction lines, and Tenkan/Kijun cross markers. It adds an optional zero-lag EMA from a chosen timeframe, a T3 moving average system

Indicator v4 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of ARPS Zenith Ichimoku Framework

TR 10 [Vaibhav]

by DeveloperVaibhav1
1 stars

TR 10 [Vaibhav] is an overlay indicator that plots buy and sell signals on the price chart. It calculates signals using multiple EMA periods for trend direction, RSI for momentum, and a confluence score combining these factors. Signals are generated when condi

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of TR 10 [Vaibhav]
1 stars

A large all-in-one overlay built for the 30-minute chart that bundles many tools in one script. It includes the Williams Alligator and fractal reversal setups, divergence detection, RSI, an ATR-ADX trend gauge, EMA crosses on 30-minute, 4-hour and daily frames

Indicator v5 TrendOscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate Trading Solution (A)
1 stars

A Pine v4 indicator in a separate pane that combines many signal modules into one counter-style display for intraday charts. Modules include an adaptive ATR and ADX trend stop on a 4 hour interval, zero-lag EMA crosses on 30 minute, 4 hour and daily frames, Ic

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate Signal Framework

ARPS Super Ichimoku

by ali-rajabpour
1 stars

An Ichimoku overlay that offers either the classic 9, 26, 52 settings or a longer set aimed at around-the-clock markets, with an optional denoiser. It plots Tenkan, Kijun, the cloud and Span B, projects future Tenkan, Kijun and Span B values, and marks valid m

Indicator v5 TrendSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS Super Ichimoku

ARPS Scalp Short Indicator

by ali-rajabpour
1 stars

A multi-signal overlay aimed at spotting short-side setups. It combines candlestick patterns such as dojis, shooting stars, harami and engulfing shapes with an RSI and weighted moving average cross, a stochastic, the Awesome Oscillator and optional single or d

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Short Indicator

ARPS Scalp Suite

by ali-rajabpour
1 stars

A Pine v4 study that bundles many tools on the price chart: short and long SMAs, zero-lag 50 and 200 EMAs, an awesome oscillator, RSI and stochastic crosses, Parabolic SAR, a trend continuation factor and an optional Ichimoku cloud. It also reads a 200 EMA of

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Suite

ARPS Long Term Strategy

by ali-rajabpour
1 stars

Despite its name, this is an indicator that stacks many studies on the price chart: an Ichimoku-style set of lines and cloud, a Hull moving average with a Tillson T3 line, a configurable moving average with several smoothing methods, WaveTrend signals, ATR-bas

Indicator v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of ARPS Long Term Strategy

ARPS Info Table

by ali-rajabpour
1 stars

An overlay that gathers several studies into an on-chart table. It reads 200-period simple and exponential moving averages on 30 minute, 1 hour, 4 hour, 6 hour, 12 hour, daily and weekly timeframes, and calculates ATR-based long and short stop levels. It also

Indicator v5 Moving averagesScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of ARPS Info Table

ARPS IchiGann

by ali-rajabpour
1 stars

An Ichimoku-based indicator on the price chart that plots the Tenkan, Kijun and Chikou lines and the Kumo cloud, and adds projected future values for Tenkan, Kijun, Span B and the cloud. It marks valid Tenkan, Kijun and Span B levels, highlights support and re

Indicator v5 TrendSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS IchiGann

ARPS Scalp Strategy

by ali-rajabpour
1 stars

A Pine v4 study, despite its name not a backtesting strategy, that combines many tools on the price chart. It plots zero-lag 50 and 200 EMAs, an awesome-style oscillator, an RSI and stochastic cross, Parabolic SAR, a trend continuation factor and an optional I

Indicator v4 Candlestick patternsOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Scalp Strategy

Algo1.0

by dtheran1
1 stars

A combined overlay with two modules for the price chart. The ATR Trend module draws a trend line from an ATR-based band, with ten choices of smoothing type, an optional fast trend, a smoothed range channel and buy and sell markers when the trend flips. The sec

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo1.0

MTF Confluence Strategy

by DirtDemon31
1 stars

A multi-timeframe confluence indicator that scores setups from several components: an EMA ribbon with ADX and DMI, MACD, Bollinger Bands, volume against its average, VWAP with pivot points, and Stochastic RSI timing. Daily, 4-hour and 1-hour closes versus an E

Indicator v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of MTF Confluence Strategy

SUPER3 Brahmastra

by sukur123
1 stars

A bundle of overlay tools on one price chart: central pivot range levels for today, tomorrow and the week, with R1 to R3 and S1 to S3 lines, previous day high, low and close, and an optional VWAP. It also includes an ATR-based trend line with buy and sell labe

Indicator v5 Support & resistanceTrend Repaints
Updated 6 months ago · None stated GitHub repository of SUPER3 Brahmastra

This indicator calculates Kaufman's Efficiency Ratio normalized by an ATR ratio to create a dynamic volatility-adjusted threshold. It classifies market states into uptrend, downtrend, choppy, or consolidation regimes and colors price chart bars accordingly. It

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Adaptive Regime Filter + Divergence (AER-VN) [KEYALGOS]

Jigsa God Mode Pro

by jigsabersisa
1 stars

This indicator overlays a 50 and 200 EMA trend filter, RSI confirmation and pivot-based zones on the price chart, and prints buy and sell signals with projected entry, ATR-based stop loss and risk to reward take profit lines. Optional layers include liquidity

Indicator v5 SMC / ICT / price actionTrend
Updated 6 months ago · GPL-3.0 GitHub repository of Jigsa God Mode Pro

ADX Backtest

by AlanGuo
1 stars

A long-only strategy that uses the Average Directional Index to time entries, with a moving average trend filter. It buys when ADX crosses above a threshold, optionally requiring the plus DI to lead, while price is above a 60-period SMA, EMA or RMA, or when pr

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of ADX Backtest

AI Trading Signals

by ebrahim-sani
1 stars

An overlay indicator that prints buy and sell labels on the price chart using local technical rules: price above or below a fast and slow EMA, RSI between 50 and 70 or 30 and 50, and the MACD histogram sign. It can also draw take profit and stop loss levels ba

Indicator v5 TrendOscillators & momentum
Updated 7 months ago · Custom licence GitHub repository of AI Trading Signals
1 stars

CSA-15 Crypto Scalping Indicator is a TradingView Pine Script v5 overlay indicator designed for crypto scalping. It calculates multiple confirmations including trend direction from fast and slow EMAs, momentum via RSI, volume surge detection, squeeze and volat

Indicator v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of CSA-15 Crypto Scalping Indicator

Wirezard Wave Rider

by udhansingh
1 stars

An overlay that combines ADX, RSI, an impulse MACD, VIDYA and volume to draw buy and sell markers, swing pivot labels, divergence markers and Fibonacci levels. A multi-timeframe score uses three higher timeframes, automatic at two, four and eight times the cha

Indicator v6 TrendOscillators & momentum
Updated 7 months ago · MIT GitHub repository of Wirezard Wave Rider

Blackflag FTS

by ymlee1104
1 stars

Blackflag FTS is an overlay trend-following indicator that calculates dynamic trailing stop levels using an ATR-based volatility filter and Wilder's moving average. It features both modified and standard true range calculations to limit extreme volatility spik

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Blackflag FTS
1 stars

An indicator for the price chart that classifies the market regime from a daily EMA slope and price position, plus a four-hour ATR percentile rank for volatility. Based on the combination, it shades the chart background to show which of two companion strategie

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Strategy Rotation (Regime-Based)

HalfTrend

by 0xRadicalEd
1 stars

The indicator overlays HalfTrend trend-following lines and ATR channel bands on the main price chart. It calculates trend reversals using high and low price channels over a user-defined amplitude, combined with Average True Range deviation channels. Directiona

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of HalfTrend
1 stars

A template file of simple Pine strategy examples, led by an EMA crossover that goes long when a 10-bar EMA crosses above a 20-bar EMA and short on the reverse. Other templates in the file show ATR-based stop loss and take profit, an RSI overbought and oversold

Strategy v6 Moving averagesTrend Repaints
Updated 8 months ago · None stated GitHub repository of EMA Crossover Template
1 stars

This indicator measures trend strength with Bollinger Bands. It computes a simple moving average as basis and plots upper and lower bands using standard deviation. The region between bands fills with color. Bar color changes based on price position relative to

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Trend Strength Signals Enhanced
1 stars

A Pine v5 strategy that classifies the market as volatile, trending or ranging using ATR against its history and ADX thresholds. In trending conditions it trades a 9 and 20 EMA crossover, and in ranging conditions it fades Bollinger Band extremes. Stops and ta

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of APSAlgo Adaptive Pattern System

Agentic AI Trading Indicator

by Algorithmic-Token
1 stars

A price-chart indicator that draws two simple moving averages, Bollinger Bands and an RSI-based condition set, then prints buy and sell labels when a trend condition and a pullback condition agree. A signal strength value from zero to one counts confirmed cond

Indicator v5 TrendMean reversion
Updated 8 months ago · Custom licence GitHub repository of Agentic AI Trading Indicator
1 stars

A Pine v5 long-only strategy that switches behavior with an ADX trend reading. When ADX is above the threshold it buys on a fast EMA crossing above a slow EMA, and when ADX is below it buys on RSI under 30. It closes the long on the opposite EMA cross in trend

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of AU Adaptive Regime Switch
1 stars

0-DTE Momentum Continuation Pro is a Pine Script indicator that overlays labels on the price chart to mark A+ BUY, A+ SELL, B BUY and B SELL setups. It calculates EMA trend structure using fast and slow EMAs, checks momentum with close price position relative

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of 0-DTE Momentum Continuation Pro

Backtest Example

by propuchon
1 stars

A course example strategy that buys when a fast EMA crosses above a slow EMA and then manages the trade with a percentage stop loss and take profit measured from the average entry price. Only long trades are opened; the short condition is calculated but not us

Strategy v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Backtest Example
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It tracks the highest high over a 115-bar lookback. It buys when the close is at or above 70 percent of that high and sells when the close falls below 52 percent of it

Strategy v6 TrendBreakout
Updated 9 months ago · MIT GitHub repository of 52-Week High 115/70/52

SmaCross Strategy

by SimonLai-28198
1 stars

A long-only strategy that buys when a short simple moving average crosses above a long one and closes the position when it crosses back below. Defaults are 10 and 50 bars, both adjustable. It draws both averages and buy and sell triangles on the price chart, e

Strategy v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of SmaCross Strategy
1 stars

Auto Chart Patterns Trendoscope automatically identifies and plots technical chart patterns on the main price chart using multi-depth ZigZag pivot calculations. It detects various geometric formations including channels, wedges, and triangles across rising, fa

Indicator v6 Support & resistanceTrend
Updated 9 months ago · None stated GitHub repository of Auto Chart Patterns Trendoscope

Live Market Scanner - V7

by IamTamheedNazir
1 stars

The Live Market Scanner V7 is a real-time market analysis indicator that fuses MACD, RSI, EMAs, volume, and price momentum to calculate LONG and SHORT scores. It determines market status (LONG, SHORT, WAIT) using a sensitivity-based threshold and plots signals

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · Custom licence GitHub repository of Live Market Scanner - V7

Donchian Breakout + ATR Risk

by JustACoder279
1 stars

A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has

Strategy v5 BreakoutTrend Repaints
Updated 9 months ago · MIT GitHub repository of Donchian Breakout + ATR Risk
1 stars

A chart-overlay trailing stop that adapts to market conditions. It uses Kaufman's adaptive moving average to measure how efficiently price is moving, scales an ATR-based stop distance accordingly, and optionally adds a k-nearest-neighbours pattern layer that n

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Adaptive ML Trailing Stop

Apex Trend & Liquidity Master (SMC)

by app-builder-sketch
1 stars

Apex Trend & Liquidity Master (SMC) is an overlay indicator that combines trend-following filters with Smart Money Concepts market structure and liquidity tools. It calculates baseline trend clouds using moving averages such as HMA, EMA, SMA, or RMA alongside

Indicator v6 SMC / ICT / price actionTrend
Updated 10 months ago · GPL-3.0 GitHub repository of Apex Trend & Liquidity Master (SMC)

This strategy automatically adapts its moving average lengths and types based on the chart's timeframe, covering scalping, intraday, and swing styles. It generates entry signals when a fast moving average crosses a slow moving average, provided price is on the

Strategy v6 TrendMoving averages
Updated 10 months ago · MIT GitHub repository of EMA / SMA Crossover + ADX + EMA100 Trend Filter

HTS NemoN Simple

by nemon82-web
1 stars

Draws two bands on the price chart, one from smoothed highs and lows over a fast length and one over a slow length, using Wilder-style moving averages. The fast length must be smaller than the slow one or the script stops with an error. Settings change the two

Indicator v6 Moving averagesTrend
Updated 10 months ago · None stated GitHub repository of HTS NemoN Simple
1 stars

A trend-following strategy that goes long when the fast EMA is above the slow EMA, RSI is above its threshold and the MACD histogram is positive, and goes short on the opposite conditions. An optional filter requires the close to sit beyond both EMAs. When ena

Strategy v6 TrendOscillators & momentum
Updated 11 months ago · None stated GitHub repository of Hybrid EMA+RSI+MACD Strategy

This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and

Strategy v5 TrendBreakout Repaints

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