Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 6)

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

alpyvix

by avatar-lavventura
2 stars

This strategy implements a self-calibrating WaveTrend oscillator with rolling percentile-based dynamic entry zones rather than fixed levels. It enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zone

Strategy v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of alpyvix
2 stars

This Pine Script v5 strategy calculates two simple moving averages with customizable fast and slow lengths and plots them on the price chart. It generates long signals on fast MA crossover above the slow MA and short signals on the reverse crossover. The strat

Strategy v5 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of MA Crossover Strategy with SL/Targets

The Asset Rotation System evaluates relative trend strength and rotational performance across up to six selectable assets. It calculates trend classification based on user-selected technical indicators including RSI, CCI, SuperTrend, DMI, and Parabolic SAR. Th

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Asset Rotation System [InvestorUnknown]

Apex Signal Matrix Pro

by farbodghasemlu
2 stars

Apex Signal Matrix Pro is an overlay indicator that scores long and short bias from trend, momentum, structure, participation, and risk-reward. It plots entry and strong-entry signals when a smoothed score clears thresholds and the directional spread exceeds a

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of Apex Signal Matrix Pro

BMNR Power Law

by 0xDkd
2 stars

BMNR Power Law is a crypto-focused valuation channel indicator that plots dynamic power law bands on the main chart. It calculates top, middle, and bottom valuation lines using exponential model parameters applied to daily prices. An optional Average True Rang

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 9 months ago · MIT GitHub repository of BMNR Power Law

HMACross Algobid

by Algobid-ir
2 stars

HMACross Algobid calculates and plots a Hull Moving Average (HMA) with trend signal indicators directly on the main price chart. It evaluates multi-timeframe market data across four user-defined timeframes and incorporates an optional Average Directional Index

Indicator v5 TrendMoving averages Repaints
Updated 10 months ago · None stated GitHub repository of HMACross Algobid

QQE + AK Trend + EFI

by realanthonyc
2 stars

Combines Quantitative Qualitative Estimation (QQE), AK Trend calculation, and Elder Force Index (EFI) into a single indicator pane. It calculates a smoothed RSI-based QQE histogram with Wilder's ATR factor, integrates dynamic timeframe scaling for the AK Trend

Indicator v6 Oscillators & momentumTrend
Updated 10 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

EMA Trend Surfer

by nxtaiapp
2 stars

EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer

Magic Sequential 9

by realanthonyc
2 stars

Magic Sequential 9 tracks price sequences by comparing the current close to the close four bars prior, drawing numerical markers on the chart for counts seven, eight, and nine. It incorporates an optional Average True Range volatility threshold to filter out s

Indicator v6 TrendVolatility & bands
Updated 11 months ago · MPL-2.0 GitHub repository of Magic Sequential 9
2 stars

The MA/EMA + RSI Trend & Pullback indicator combines moving averages with the RSI oscillator to determine trend direction and identify pullback opportunities for entries and exits. It plots fast and slow MAs on the price chart along with the RSI, and applies b

Indicator v6 TrendOscillators & momentum
Updated 11 months ago · None stated GitHub repository of MA/EMA + RSI Trend & Pullback
2 stars

This indicator identifies swing pivot points using an external signal library configured with depth, deviation, and backstep parameters. It calculates market direction changes and plots buy and sell signal labels directly on the price chart. Users can configur

Indicator v6 Support & resistanceTrend Repaints
Updated 12 months ago · None stated GitHub repository of Buysellsignal-Yashgode9

VWAP Price Channel Enhanced

by realanthonyc
2 stars

Calculates an adaptive price channel anchored to Donchian extremes, combining VWAP resets on dynamic highs and lows. The indicator automatically toggles between short-term and long-term calculation lengths based on the chosen timeframe. It plots upper and lowe

Indicator v6 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of VWAP Price Channel Enhanced

This indicator automatically detects and plots support and resistance areas on the price chart. It identifies reversal patterns using candlestick spikes, pivot points, and trend analysis while applying noise filtering for small candles. Areas get shaded with c

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Trend Areas - Support/Resistance

2Mars - MA / BB / SuperTrend

by wynnforthework
2 stars

This strategy combines moving averages, Bollinger Bands, and SuperTrend indicators to generate long and short entry signals. It uses configurable moving average crossovers and Bollinger Band threshold levels for trade execution, complemented by optional SuperT

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of 2Mars - MA / BB / SuperTrend
2 stars

The Multi EMA + VWAP Combo indicator consolidates five Exponential Moving Averages (EMAs) and a Volume Weighted Average Price (VWAP) into a single chart overlay. It calculates five configurable EMAs (defaulting to 9, 21, 50, 100, and 200 periods) to track mult

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multi EMA + VWAP Combo

Complexity Trender

by panzmoravylab
2 stars

Complexity Trender is an indicator that combines EMA crossovers, RSI momentum, Stochastic signals, Bollinger Bands, ADX trend strength, volume analysis, and divergence detection to identify trends. It plots labels, trend lines, and a summary table directly on

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Complexity Trender

Trend Analyzer EMA Only

by panzmoravylab
2 stars

Trend Analyzer EMA Only is a price-chart indicator that compares a fast and a slow exponential moving average. It marks BUY and SELL when the averages cross, and it treats a trend as up or down only when both slopes agree and their relative gap exceeds a neutr

Indicator v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Analyzer EMA Only
2 stars

This indicator plots an Exponential Moving Average directly on the price chart and dynamically changes its color based on the market trend. When the closing price is above the moving average, the line and background tint turn green to indicate bullish conditio

Indicator v6 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of 200 EMA with Trend Color

15M

by etnt
2 stars

15M is an intraday chart overlay designed for 15-minute timeframes. It plots a volume-weighted moving average (VWMA) alongside a simulated 5-day moving average calculated from user-defined daily trading hours. The script detects several classic candlestick pat

Indicator v6 Moving averagesCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of 15M
2 stars

The Multi-Indicator Trading System is an indicator that plots EMAs on the price chart. It calculates EMA50 and EMA200 crossovers on the 15-minute timeframe, with optional trend filters from 1H or 4H timeframes. Confirmations come from RSI, MACD, Bollinger Band

Indicator v6 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

Custom Strong Levels

by ashwagamma
2 stars

This indicator identifies key support and resistance price levels and automatically plots trendlines connecting major highs and lows directly on the price chart. It tracks price structure using custom level objects and processes 1-minute lower timeframe data t

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Custom Strong Levels

This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

Logan Bollinger Bands

by RsKBruno
2 stars

This Pine Script strategy plots Bollinger Bands on the price chart using a central line and standard deviation for volatility detection. It includes an optional EMA trend filter and ADX strength filter to refine signals. The strategy allows buy or sell entries

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of Logan Bollinger Bands

Advance Trading Script

by devgaganin
2 stars

This overlay indicator applies a recursive multi-pole filter to a chosen price source and is set up to scale that filter with a filtered true range. The pole count selects the filter order from one to nine, while the sampling period controls how quickly the sm

Indicator v6 TrendMoving averages
Updated 1 year ago · GPL-3.0 GitHub repository of Advance Trading Script
2 stars

This overlay indicator counts consecutive bars where the close is below the close four bars earlier, and a separate count where the close is above that reference. Each count runs from 1 to 13 and then restarts at 1. It paints price bars with a gradient that da

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Tom DeMark Sequential Heat Map

Startegy

by orenkats
2 stars

This strategy draws on the price chart and sizes positions from account equity, a risk percent, and a leverage multiplier. It tracks long and short stops, pending add-on entries, limit and stop order offsets, and a percentage profit target. Settings change lin

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Startegy
2 stars

The Refined Multi-TF Crypto Analyzer plots technical analysis signals on the main price chart by combining multi-timeframe moving averages, RSI, ADX, and volume spikes. It checks for trend alignment between the chart timeframe and a higher timeframe, identifie

Indicator v6 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Refined Multi-TF Crypto Analyzer

Wavy Tunnel MS3

by algoboss710
2 stars

The Wavy Tunnel MS3 strategy plots multiple exponential moving averages to form a wavy tunnel on the price chart. It computes wavy high, close, and low lines using 34-period EMAs, along with 144- and 169-period tunnel lines and a 12-period EMA. Optional RSI an

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Wavy Tunnel MS3

Advanced Scalping EMA & RSI Strategy is an overlay indicator that combines fast and smooth moving averages with RSI levels and candlestick patterns to generate scalping signals. Users can select calculation methods for moving averages, such as SMA, EMA, WMA, o

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Advanced Scalping EMA & RSI Strategy

SuperTrend

by KorayGocmen
2 stars

This indicator plots a SuperTrend line on the price chart to mark trend direction. It builds upper and lower bands from a user-selected price source and either average true range or standard deviation, then trails the active band as the trend continues. A gree

Indicator v5 TrendVolatility & bands Repaints
Updated 2 years ago · None stated GitHub repository of SuperTrend

SJCMom C#

by techcrewe
2 stars

SJCMom C# is an overlay indicator that identifies trading setups based on multiple moving averages, ATR volatility, and swing pivots. It offers two main strategy modes—Expansion and Band Play—supporting breakout or pullback entries. Users can filter setup dire

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of SJCMom C#

Mc War Final

by tuanmcwar
2 stars

Mc War Final is a market structure and Smart Money Concepts indicator that plots swing high and low points, market structure labels, order blocks, and strong or weak high/low levels directly on the price chart. Users can customize swing detection lengths, visu

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mc War Final

Range Filter [DW]

by Amirzamani1l
2 stars

Range Filter [DW] calculates a smoothed trend filter line accompanied by high and low volatility bands directly on the price chart. The script computes market range using selectable methods such as ATR, Average Change, Standard Deviation, points, or percentage

Indicator v4 TrendVolatility & bands
Updated 2 years ago · None stated GitHub repository of Range Filter [DW]
2 stars

This indicator plots an exponential moving average of close and a volume-weighted exponential moving average on the price chart. It builds the volume-weighted line from close multiplied by half the bar volume, divided by an exponential average of that half vol

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of EMA with Volume Weighted EMA

This indicator calculates and plots the Average Directional Index (ADX) along with the positive (+DI) and negative (-DI) directional movement lines in a separate pane. It evaluates trend strength by processing daily price data regardless of the current chart t

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Average Directional Index (ADX)

This indicator plots four exponential moving averages (50, 100, 200, and 5 periods) on the price chart. It computes an ATR-based trailing stop using sensitivity and period settings. The trailing stop updates based on price action and Heikin Ashi candles if ena

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Combined 3EMA and UT Bot Alerts with 5 EMA Trend Alert

Index Trend Filter

by jpiedrafita
2 stars

This indicator plots a constant histogram in a separate pane to show whether a selected index is above or below its simple moving average. It requests the index close on the chart timeframe, computes an SMA of a user-set length, and colors the bar lime when pr

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Index Trend Filter

[wsh]CCC_MAs_dev

by klevler
2 stars

This indicator plots adaptive moving averages directly on the price chart based on the selected timeframe. On daily charts, it calculates 10 and 21 EMAs along with 50, 150, and 200 SMAs. On non-daily timeframes, it switches to 30, 40, and 50 SMAs. Additionally

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of [wsh]CCC_MAs_dev

EarnWithKoKo_1.1

by kamrankhoxa
2 stars

The indicator plots a linear regression channel on the price chart to identify support and resistance levels. It includes options for diagonal trendlines, horizontal support lines, and detects broken channels. Users can show Fibonacci levels, extend lines, and

Indicator v5 TrendSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of EarnWithKoKo_1.1

Ichimoku Cloud Strategy

by mhiproducts
2 stars

This strategy calculates modified Ichimoku components using moving averages of high and low values to identify trend directions. It evaluates market outlook based on price relative to Senkou Span lines and generates signals when the Tenkan-Sen crosses the Kiju

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Ichimoku Cloud Strategy

BB & RSI & MACD

by Sauyang520
2 stars

This trading strategy combines Bollinger Bands, Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD) to generate trading signals. It enters positions based on price interactions with Bollinger Bands alongside RSI overbought or overso

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of BB & RSI & MACD
2 stars

This indicator calculates and plots up to three independent Zigzag lines on the price chart, each with its own customizable period and styling. It automatically generates Fibonacci retracement levels based on user-selected Zigzag legs, such as the latest or pr

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of 3 Zigzag for MTF Fib Alert [MsF]

ICT Silver Bullet

by syuraj
2 stars

The ICT Silver Bullet indicator plots Smart Money Concepts market structure elements directly on the main price chart. It detects and highlights market structure shifts, breaks of structure, bullish and bearish order blocks, fair value gaps, balance price rang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of ICT Silver Bullet
2 stars

This strategy starter boilerplate serves as a backtesting template that overlays directly on the price chart. It sets default position sizing to twenty percent of equity and calculates an exponential moving average alongside high and low price thresholds. Inpu

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of [CBB] 2023 Strategy Default

Mini-Project

by Core-Four
2 stars

Mini-Project is a customizable multi-indicator strategy that enables traders to combine entry signals from Linear Regression, RSI, MACD, Parabolic SAR, and Supertrend. Users can toggle individual technical filters on or off to drive trade entries or enable a c

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Mini-Project

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