Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 65)

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

TD Sequential

by zhuzp98
1 stars

The TD Sequential indicator calculates and tracks trend exhaustion and potential reversal points based on Tom DeMark's sequential counting logic. It evaluates relative high and low price conditions across historical bars to determine setup, continuation, and r

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TD Sequential

Pin Bar Magic v1

by Alorse
330 stars

This strategy trades price action pin bar patterns aligned with moving average trend alignment on the main price chart. It defines uptrends or downtrends using a fan arrangement of three moving averages (6 EMA, 18 EMA, and 50 SMA). Entry conditions require a b

Strategy v4 Candlestick patternsTrend
Updated 2 months ago · None stated GitHub repository of Pin Bar Magic v1
99 stars

This indicator plots John Ehlers' Adaptive Laguerre Filter on the price chart. It estimates tracking error from the absolute difference between the source and the last filter value, normalizes that error with the highest and lowest values over the length windo

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Adaptive Laguerre Filter
13 stars

This strategy automates the TradingLatino methodology by evaluating Squeeze Momentum combined with the Average Directional Index (ADX). It executes long or short positions based on momentum shifts and directional strength. Risk management options include const

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Ruckard Lupown TradingLatino A002

This indicator classifies market conditions into Trend, Range, or Chaos regimes by combining the Kaufman Efficiency Ratio, Fractal Dimension Index, and Choppiness Index into a single trendiness metric. It normalizes and applies custom weightings to each sensor

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Regime Classifier [WavesUnchained]

GARY - Patterns

by g-moe
3 stars

GARY - Patterns is a multi-horizon chart pattern detection indicator that identifies wedge and triangle patterns across short-term, medium-term, and long-term lookback periods. It evaluates swing high and low pivot points using customizable lookback spans and

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of GARY - Patterns

PF IES probe 06 - pivot sweep

by pineforge-4pass
1 stars

This Pine Script strategy detects pivot liquidity sweeps on the price chart. It identifies swing highs and lows using ta.pivothigh and ta.pivotlow with user-defined left and right bar counts. The script maintains state for the last confirmed pivot and flags a

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 06 - pivot sweep

DEPV2 DEBUG S8

by YuceSezar89
1 stars

DEPV2 DEBUG S8 is a Pine Script v6 indicator that draws in a separate pane. It watches up to twenty user-selected crypto perpetual symbols, defaulting to Binance USDT perpetual contracts. Direction comes from four classes: trend, momentum, volatility, and volu

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S8

Grok Prime Flip Engine v1

by vedkanani123
1 stars

An always-in flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A regime layer classifies the market as range or trend using ADX, efficiency and a range box, and can freeze aggressive paths in a range. The ATR

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Grok Prime Flip Engine v1
1 stars

This strategy plots a Vegas-style exponential moving average tunnel on the price chart, plus a 12-period EMA, a 240-period SMA, and Bollinger Bands. It also computes a MACD difference from 48- and 56-period EMAs. Long entries open on tunnel-average crosses or

Strategy v4 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Vegas Tunnel strategy
1 stars

A Pine v4 strategy that plots a 13-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of UNIBTC EMA Cross Strategy

Notch Filter (NOTCH)

by mihakralj
47 stars

The Notch Filter is a second-order IIR digital filter designed to attenuate a specific cyclic frequency component from price data while leaving other frequencies intact. It computes a band-stop filter based on a target cycle period and relative bandwidth. The

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Notch Filter (NOTCH)

This overlay classifies the chart into bull, bear, or neutral regimes from moving-average zone position and an adaptive engine driven by the efficiency ratio and ATR entry and exit bands. A volatility percentile rank adds quiet, normal, or volatile context, pl

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Regime Detector (MA Zones Overlay) [WavesUnchained]

Momentum Checklist

by eddiebelaval
7 stars

This overlay indicator calculates ADX, DI+ and DI- from directional movement and true range, and a Money Flow Index from typical price and volume. It classifies bias as long when DI+ exceeds 25 and DI- stays under 20, short under the opposite condition, and ne

Indicator v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Checklist
1 stars

This strategy enters long when a fast EMA crosses above a slow EMA, the position is flat, a cooldown bar count has elapsed, and the day's trade count is below a cap. It closes that long when the fast EMA crosses back under the slow EMA. Inputs set both EMA len

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 07 - cooldown + daily cap

DEPV2 DEBUG S9

by YuceSezar89
1 stars

DEPV2 DEBUG S9 is a multi-symbol indicator for 20 major cryptocurrencies traded on Binance futures. It generates trading signals by combining four method classes: trend based on price levels, momentum using rate of change, volatility based on expansion or nois

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S9

Dragon Strength Pro

by morindok
1 stars

Dragon Strength Pro is an overlay indicator that stores recent pivot highs and pivot lows confirmed by left and right bar lengths, keeping up to fifty of each. It averages the slope from those pivots to the current close and scores upward impact from lows and

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Dragon Strength Pro
1 stars

A price-chart indicator by BigBeluga, based on the HalfTrend logic from everget, that draws a HalfTrend line with ATR channel bands and prints long and short signals on trend flips. Each signal draws entry, stop loss and three take-profit levels, with the stop

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of HalfTrend Long/Short Signal Engine

The Regime Transition Engine categorizes the market into seven distinct regime states, including compression, expansion, trend, and exhaustion. It calculates volatility percentiles, efficiency ratios, choppiness, and linear regression slopes to measure market

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Regime Transition Engine [WavesUnchained]

PF IES Probe 08 - Equity Sizing

by pineforge-4pass
1 stars

PF IES Probe 08 is a strategy designed to evaluate equity-feedback dynamic position sizing logic. It determines market regimes using the Average Directional Index to scale position size dynamically based on current strategy equity, user-defined risk percentage

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 08 - Equity Sizing
1 stars

A trend indicator on the price chart that prints BUY and SELL labels on confirmed bar closes, each meant to exit one side and enter the other. It combines a Supertrend line, fast and slow EMAs and a ZLEMA, and requires ADX, DMI spread and RSI conditions plus a

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Hermes Prime v1 - Confirmed Flip

Zig Zag

by ivansoft
1 stars

Draws a zig zag line on the price chart connecting swing pivots using an imported Zig Zag library. A new reversal is accepted when price moves by a set percentage, 5 by default, and pivots use a leg count of 10. Labels can show the reversal price, cumulative v

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Zig Zag
13 stars

This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short direction. A corridor built from recent high and low prices filters entries: longs open below the corridor while the bias is long, and shorts open a

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

Relative Leg Efficiency (RLE) measures price efficiency across pivot-to-pivot movement legs. Plotted in a separate pane with chart pivot overlays, it calculates path distance, execution duration, and counter-pressure to produce efficiency scores. Traders can a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency (RLE) - Panel + Chart [WavesUnchained]

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy

PF IES Probe 09 - Integration

by pineforge-4pass
1 stars

PF IES Probe 09 - Integration is a multi-layered quantitative strategy designed to test interaction among market regime, trend bias, momentum, and price pressure. It computes an ADX and ATR volatility regime, a multi-EMA trend bias score, an RSI and MACD momen

Strategy v6 TrendOscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 09 - Integration

DEPV2 Debug SIGD

by YuceSezar89
1 stars

DEPV2 Debug SIGD evaluates multi-symbol and multi-method signal confluence across up to twenty cryptocurrency symbols. It processes four distinct market dimensions—trend, momentum, volatility, and volume—to derive confirmation signals under simultaneous or seq

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug SIGD

The Zero Lag Exponential Moving Average indicator calculates and plots a moving average designed to minimize lag relative to price action. It achieves this by subtracting price data from a prior lag period prior to smoothing with an exponential moving average.

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Zero Lag Exponential Moving Average

GetTrend Strategy

by capissimo
114 stars

GetTrend Strategy plots a higher-timeframe open and close on the price chart and treats their crossover as a directional signal. A long entry fires when the higher-timeframe close crosses above the open, and a short entry fires on the opposite cross. Optional

Strategy v4 Trend Repaints
Updated 1 year ago · None stated GitHub repository of GetTrend Strategy
99 stars

This indicator computes the Ehlers Correlation Cycle in a separate pane. It correlates a chosen price source with cosine and negative-sine waves of a fixed period, then converts those real and imaginary components into a phasor angle that cannot move backward.

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Correlation Cycle (CCOR)
13 stars

This strategy draws trend ribbons and price corridors directly on the price chart using configurable moving averages of highs, lows, and closes. It identifies trend direction from ribbon state changes and generates long entries when price drops below the corri

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon

This indicator scores each pivot-to-pivot price leg from 0 to 100 and draws the result on the price chart. It combines path efficiency, time efficiency, and counter-pressure, then colors completed leg lines and optional labels. A live score updates on the unfi

Indicator v6 Support & resistanceTrend
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency [WavesUnchained]

DEPV2 Debug Sigt

by YuceSezar89
1 stars

This indicator evaluates trading signals across up to twenty cryptocurrency pairs using four core analytical dimensions: trend, momentum, volatility, and volume. It generates signals based on configurable confluence modes, including single-category triggers, s

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

TN Sentiment Macro Sovereign is a trend-following strategy that combines technical moving average crossovers with external macro sentiment data. It calculates 12-period and 26-period Exponential Moving Averages alongside a smoothed sentiment metric fetched via

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sentiment Macro Sovereign
1 stars

A Pine v4 strategy that plots a 41-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of XLMBTC EMA Cross Strategy
330 stars

This strategy implements a trend-following execution model based on the classic Supertrend indicator. When the ATR-derived Supertrend flips to a bullish state, the strategy opens a long position. The initial stop loss is determined by the lowest price over a u

Strategy v4 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Supertrend [Alorse]

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