Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 14)

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

5 stars

This strategy calculates fast and slow exponential moving averages to execute trend-following trades based on CDC ActionZone logic. It colors price bars across six conditions depending on price position relative to the fast and slow EMAs. Entries occur when th

Strategy v5 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Xsodus CDC ActionZone V3
5 stars

ChandraQuant Kala-Chakra is an overlay indicator for Indian equity indices. It calculates Sun and Moon ecliptic longitudes from Meeus periodic series, converts them to the sidereal zodiac with the Lahiri ayanamsa, and marks nakshatra changes, Purnima and Amava

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant — Kāla-Chakra
5 stars

RG Structure Break-Retest Strategy estimates pivot-constrained support and resistance trendlines and evaluates market regimes. It enters trades upon two-stage break and retest confirmation, scoring setup quality to dynamically scale position sizing between tie

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Break-Retest Strategy

This strategy draws on the price chart and defines a long setup when the 50-period EMA is above the 200-period EMA, price is above the faster EMA, RSI is below 50, and stochastic %K crosses above %D. Entries use a percentage of equity. Take profit and stop los

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 2 EMAs + RSI + Stochastic Long Strategy
5 stars

This indicator calculates smoothed Heikin Ashi and typical price series to identify trend direction and generate directional signals. It derives synthetic Heikin Ashi values and applies multi-layered exponential and triple exponential moving average smoothing

Indicator v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of Smoothed Heikin Ashi Signals

RSI+EMA+ST

by sawantuday
5 stars

This strategy overlays a fast EMA, a slow EMA, and a Supertrend line on the price chart. It opens a long when RSI is above 50, the fast EMA is above the slow EMA, and Supertrend direction is bullish, and only after 2010. It closes all positions when the fast E

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · CC0-1.0 GitHub repository of RSI+EMA+ST

This strategy plots five simple moving averages on the price chart and trades crosses of price against the longest signal average. It enters long when the close crosses above the 150-period SMA and enters short when the close crosses below it, but only from th

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 150MA Cross BuyAndSell Strategy [d3nv3r]

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Antigravity Elite

BB Remix

by InNoobWeTrust
4 stars

This indicator plots a quadruple Bollinger Band overlay on the price chart by combining fast and slow period lengths with inner and outer standard deviation multipliers. It calculates average upper and lower band boundaries, tracks band directional momentum, a

Indicator v6 Volatility & bandsTrend
Updated 2 days ago · None stated GitHub repository of BB Remix
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 3 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)
4 stars

This strategy plots a fast and a slow simple moving average on the price chart and trades long only. It enters when the fast average crosses above the slow average and closes the position when the fast average crosses back below. There is no stop loss or take

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of SMA cross + TokIO check

Alert Examples

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages along with RSI for detecting crossovers and overbought/oversold conditions. It plots the two EMAs on the price chart with dynamic coloring and displays triangle shapes on crossovers. Bullish c

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Examples

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo
4 stars

This strategy executes trend-following trades based on exponential moving average crossovers filtered by a daily trend baseline. It calculates a fast EMA and a slow EMA alongside a daily 200 EMA fetched from a daily timeframe. When the fast EMA crosses above t

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of EMA Crossover 21/50 + Daily Filter
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

Chande Kroll Stop

by Hugs-4-Bugs
4 stars

This indicator plots the Chande Kroll Stop on the price chart. It builds a long stop from the lowest low over a lookback plus a multiple of average true range, then takes the lowest of that series over a second window. It builds a short stop from the highest h

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chande Kroll Stop

FluidTrades - SMC Lite

by ShabbirHasan1
4 stars

FluidTrades - SMC Lite identifies Smart Money Concepts (SMC) market structure elements directly on the main price chart. It plots supply and demand zones as styled boxes, along with optional zig-zag structure lines and price action labels such as higher highs,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of FluidTrades - SMC Lite

This strategy plots Ichimoku conversion and base lines on the price chart using Donchian midpoints. It detects conversion-base crossovers and classifies the cross, the close, and a 26-bar price lag relative to the displaced cloud. Inputs enable or disable long

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Conversion Base Break

AYDIN-FIBO V2

by Kalumur
4 stars

This indicator plots three EMAs with customizable lengths, narrow and wide Bollinger Bands, ALMA with adjustable offset and sigma, and multiple Fibonacci retracement levels on the price chart. It generates buy and sell signals on EMA5 crossing EMA13. Main sett

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of AYDIN-FIBO V2

This strategy combines two Supertrend indicators with a MACD histogram filter to identify trend-following entries on the price chart. Long entries trigger when both Supertrend lines are bullish and the MACD histogram is positive. Short entries execute when bot

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Dual-Supertrend with MACD - Strategy [presentTrading]
4 stars

Auto Trendline automatically identifies fractal pivot points on the price chart and connects them to draw trendlines. It scans for higher highs, lower highs, higher lows, and lower lows over a customizable fractal period. Users can configure colors and visibil

Indicator v5 Support & resistanceTrend
Updated 3 years ago · None stated GitHub repository of Auto Trendline [DojiEmoji]

Snag - Makson

by dearvn
4 stars

The script is a price chart overlay indicator. It calculates a five period weighted moving average of close prices. Long signals trigger on crossovers from below the EMA combined with upward price action and trend continuation. Short signals trigger on crossov

Indicator v5 TrendMoving averages Repaints
Updated 4 years ago · None stated GitHub repository of Snag - Makson

EMA_v1

by aofwittawat
4 stars

This indicator plots an exponential moving average on the price chart and colors it green when the close is above the average and red when it is below. It marks a long triangle when price flips from below the average to above it, and a short triangle on the op

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of EMA_v1
4 stars

This strategy plots three exponential moving averages on the price chart and trades their alignment. It enters long when the fast EMA crosses above the mid EMA while price is above the slow EMA, and closes that long on the opposite cross with price below the s

Strategy v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of Algo Trading: Simple 3-EMA Strategy

This indicator combines Stochastic RSI, Relative Strength Index (RSI), and Average Directional Index (ADX) into a single separate oscillator pane. It calculates momentum indicators alongside trend strength values to assess overall market conditions. The Stocha

Indicator v4 Oscillators & momentumTrend
Updated 5 years ago · GPL-3.0 GitHub repository of Stochastic RSI/RSI/Strength of Trend

This strategy combines Ichimoku Cloud calculations with an RSI filter to generate trading signals directly on the price chart. It offers options for displaying either standard offset lines or non-offset non-repainting cloud components. Users can configure para

Strategy v4 TrendOscillators & momentum
Updated 6 years ago · Apache-2.0 GitHub repository of Ichimoku Cloud - Kijun-Sen - RSI

EMA Cross

by degenview
3 stars

This indicator plots two exponential moving averages of a chosen price source on the price chart. A green upward triangle marks when the fast average crosses above the slow average, and a red downward triangle marks the opposite cross. Both events are also exp

Indicator v6 Moving averagesTrend
Updated 2 days ago · GPL-3.0 GitHub repository of EMA Cross

AT+T3

by gocaman
3 stars

AT+T3 is a TradingView Pine Script indicator that overlays the T3 moving average (with Fibonacci variant) and AlphaTrend on price charts for BIST stocks. T3 uses Tim Tillson's smoothing formula with adjustable length and volume factor to produce trend lines th

Indicator v5 TrendVolatility & bands Repaints
Updated 2 days ago · None stated GitHub repository of AT+T3
3 stars

Zigzag Impulse Stats calculates statistical metrics across dynamic zigzag segments overlayed on the price chart. It measures segment ratio, depth, heterogeneity, uniformity, trendline deviation, candle deviations, and envelope area. An optional Impulse Mode hi

Indicator v6 TrendSupport & resistance Repaints
Updated 5 days ago · MIT GitHub repository of Zigzag Impulse Stats

Chandelier Exit

by AkashSasikumar47
3 stars

This indicator plots a Chandelier Exit trailing stop on the price chart. It subtracts a multiple of ATR from the highest high or highest close for the long stop and adds the same distance to the lowest low or lowest close for the short stop. The active stop ra

Indicator v6 Volatility & bandsTrend
Updated 2 weeks ago · MIT GitHub repository of Chandelier Exit

PCA Risk Indicator

by jash-git
3 stars

The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual

Indicator v5 Oscillators & momentumTrend Repaints
Updated 4 weeks ago · None stated GitHub repository of PCA Risk Indicator
3 stars

This indicator calculates Williams' Variable Accumulation/Distribution (WVAD) pressure alongside a signal line in a separate pane. It incorporates optional filters such as higher-timeframe confirmation, an ADX strength filter, and various adaptive smoothing ch

Indicator v6 VolumeOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Williams Variable A/D Pressure

AI Bot - SMC Advanced

by thanhcong1211
3 stars

This overlay indicator marks smart-money structure on the price chart. It stores recent confirmed swing highs and lows and labels the structure bullish, bearish, or ranging from higher highs and lows or lower highs and lows. It marks a bullish or bearish order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of AI Bot - SMC Advanced

Mc War Ten + EMA

by tuanmcwar
3 stars

This indicator plots three exponential moving averages directly on the price chart using default lengths of 34, 89, and 200. Alongside the moving averages, it renders on-chart watermark tables displaying a custom title, subtitle, ticker symbol, timeframe, and

Indicator v5 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Mc War Ten + EMA

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five customizable timeframes for up to three symbols using an EMA and RSI dual-vote system. It displays an on-chart dashboard table summarizing individual timeframe states, weighted ag

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of MTF Confluence Dashboard
3 stars

ETH Momentum Breakout is a momentum-based strategy overlay for crypto trading. It identifies volatility compression by checking when Bollinger Bands fall within Keltner Channels for a minimum number of bars. It triggers breakout orders when price breaks out be

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of ETH Momentum Breakout

The Judas Indicator

by regardhodler
3 stars

The Judas Indicator strategy calculates a multi-factor composite score combining Volume Profile High Volume Nodes, Cumulative Volume Delta (CVD), pivot proximity, volume absorption, order imbalance, and higher-timeframe trend EMAs. It triggers trade entries wh

Strategy v5 TrendVolume
Updated 8 months ago · None stated GitHub repository of The Judas Indicator

Stella's MACD Crossover

by stella-entry
3 stars

This strategy calculates the standard Moving Average Convergence Divergence oscillator and generates trade entries based on signal line crossovers. It opens long positions on bullish crossovers and short positions on bearish crossunders. An optional exponentia

Strategy v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Stella's MACD Crossover

JINADA Up

by cathxrsys
3 stars

JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback

Indicator v6 TrendMoving averages
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Up

Hedge Short Setup Finder

by shitcoding
3 stars

Hedge Short Setup Finder identifies potential short entry opportunities by combining multiple technical confluence conditions. It scans for momentum exhaustion using price surge percentage over a lookback period, overbought RSI with rollover confirmation, Boll

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Finder

Elliott Wave Crypto Analysis

by EngineeredSuccess
3 stars

The indicator draws Elliott Wave analysis on the price chart for cryptocurrency. It locates pivot highs and lows using a user-set length, counts waves one through five automatically, and allows a manual wave override. Optional Fibonacci retracement and extensi

Indicator v6 Support & resistanceTrend
Updated 1 year ago · Custom licence GitHub repository of Elliott Wave Crypto Analysis

ATR-SB Algo Strategy

by TheMikerik
3 stars

This strategy plots an ATR trailing trend line on the price chart, built from each close and a risk-scaled average true range. A close crossing that line marks a buy or sell location. Optional drawing includes a colored trend line, a fill between price and the

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of ATR-SB Algo Strategy

This strategy plots Fibonacci retracement levels from a rolling high-low range and trades long only on the price chart. It enters when price is above the first Fibonacci level, volume exceeds its moving average, and price is above a simple moving average. It c

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Volume + Fibonacci + Trend + ATR Strategy with 1% TP

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