Pine Library · 3,870 open-source scripts

Free Trend Pine Scripts (page 8)

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

Aroon Oscillator

by AkashSasikumar47
1 stars

The Aroon Oscillator calculates the difference between the Aroon Up and Aroon Down indicators to measure trend strength and direction over a user-defined lookback length. Drawn in a separate pane below the price chart, it plots a single line oscillating betwee

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Aroon Oscillator

And Detector

by moonyroy
1 stars

The indicator detects the three largest rises and three largest declines in a symbol's price over the last N years. It tracks price movements by identifying when price exceeds a percentage threshold T in the opposite direction from the current leg, then record

Indicator v6 TrendSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of And Detector

Adaptive Signals V17

by Matthew-Eucaristo
1 stars

A crypto futures signal indicator in a separate pane that scores setups and only flags those passing a validity gate. It has a trend pullback engine using limit-order style entries and a range engine that fades stretched moves back toward the mean. Filters inc

Indicator v6 TrendMean reversion
Updated 3 weeks ago · MIT GitHub repository of Adaptive Signals V17

UT Bot Alerts

by ApekTahua
1 stars

An ATR trailing stop indicator for the price chart. It places a stop line a set multiple of ATR from price, and prints Buy and Sell labels when price crosses that line, with bars colored green or red by direction. The key value changes sensitivity, the ATR per

Indicator v4 TrendVolatility & bands
Updated 4 weeks ago · None stated GitHub repository of UT Bot Alerts
1 stars

A strategy for 15-minute Bitcoin charts that opens a trade when several conditions agree: fast and slow EMA alignment, RSI inside a set band, MACD line and histogram direction, volume above a fraction of its average, price between the Bollinger basis and the n

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of BTC 15M Tight Stop Strategy
1 stars

Calculates an Average True Range trailing stop directly on the price chart. It measures true range smoothed by a simple moving average to align with MT5 ATR semantics, multiplied by a user-defined factor. The stop ratchets upward during uptrends and downward d

Indicator v5 TrendVolatility & bands
Updated 5 weeks ago · MIT GitHub repository of ATR Trailing Stop (demo)
1 stars

This indicator overlays an EMA stack, Supertrend, and ATR range bands on the price chart and scores long or short confluence from trend, WaveTrend, StochRSI, confirmed divergence, and volume. Labels mark when the score meets the long or short threshold, with A

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Momentum Confluence Suite [MCS]

Kernal Cipher

by kdricha0602
1 stars

Kernal Cipher is a custom TradingView Pine Script v6 indicator that overlays multiple technical components on the price chart for discretionary momentum trading. It calculates trend using EMA fast, slow, and long lengths with slope filters, regime detection vi

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher

Mac Buy/Sell Indicator

by acquillemac
1 stars

A SuperTrend-style indicator built on ATR and RMA bands that prints buy and sell signals when the direction flips, optionally filtered by a 9 and 21 EMA cross. It draws two ATR-based take profit levels, background colour and a stats table that scores past sign

Indicator v6 TrendSMC / ICT / price action
Updated 6 weeks ago · None stated GitHub repository of Mac Buy/Sell Indicator
1 stars

A signal overlay that merges two entry sources: an Andean oscillator with clustered Money Flow Index levels, and a UT Bot ATR trailing stop. Signals pass through optional filters: a FRAMA trend channel, a choppiness index, an ATR percentage range, a higher-tim

Indicator v6 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of MUFCA AtomDC v3.1 Elite

AQR TSMOM Pro Strategy

by cagriKarakulak
1 stars

A Pine v5 strategy that applies time-series momentum, taking the sign of past returns over about one, three and twelve months and averaging them into a long or short score. Position size is scaled to a target annual volatility with a maximum leverage cap, with

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · MIT GitHub repository of AQR TSMOM Pro Strategy

SuperTrend MTF

by Onair-santa
1 stars

Plots a Supertrend-based oscillator in a separate pane, scaled between -100 and 100, with a signal line, histogram and bands at 80 and -80. Buy and sell labels appear when price crosses the Supertrend line. An optional filter requires two higher timeframes, by

Indicator v6 TrendVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of SuperTrend MTF

A simple strategy that goes long when a 20-period EMA crosses above a 50-period EMA and short on the opposite cross. Each entry gets a stop one ATR away and a take profit set at a risk to reward multiple of the ATR, adjustable by one input. Position size is a

Strategy v5 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of Lyzer Baseline Control - Simple EMA Cross
1 stars

Calculates a Simple Moving Average (SMA) and Relative Strength Index (RSI) to render a live status dashboard table on the price chart. The script plots the SMA line directly on the price chart with color dynamic styling based on market trend direction. On the

Indicator v6 Screeners & dashboardsMoving averages
Updated 7 weeks ago · MPL-2.0 GitHub repository of Dashboard Block Pattern Reference
1 stars

A Pine v6 example strategy from a trading guide that enters long when a fast EMA crosses above a slow EMA and short when it crosses below, defaulting to 10 and 50 periods. Each open position gets a percent stop loss and a percent take profit measured from the

Strategy v6 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of MA Crossover (Guide Example)

BIST MTF Signal System

by Baran-Ozkann
1 stars

This indicator scores each bar of a BIST equity with a weighted confluence of thirteen layers and plots the result in a separate pane. Daily ADX, SMA and EMA alignment lock direction and can veto a candidate. The one-hour timeframe needs a PAC touch plus a con

Indicator v6 TrendOscillators & momentum Repaints
Updated 8 weeks ago · None stated GitHub repository of BIST MTF Signal System

AEGIS Demo

by pythonbygabby
1 stars

AEGIS Demo is an EMA crossover strategy designed to trigger webhook signals for an external automated execution bot. It calculates a 20-period fast exponential moving average and a 50-period slow exponential moving average, plotting both lines directly on the

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of AEGIS Demo
1 stars

Calculates and plots customizable moving averages on the price chart using 20 native slots and 5 cross-timeframe overlay slots. Supports SMA, EMA, RMA, VWMA, and WMA moving average types with user-defined sources, lengths, colors, and line widths. Visibility c

Indicator v6 TrendMoving averages Repaints
Updated 2 months ago · MPL-2.0 GitHub repository of MA Slots - Multi-Timeframe

Alpha Forge Core Elite

by vedkanani123
1 stars

A price-chart indicator that plots a basis line with volatility bands and graded buy and sell setups. Presets for Scalping, Day, Swing or Custom, plus an auto market profile that detects forex, gold, crypto, stocks or futures, set trend length, band width and

Indicator v6 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Alpha Forge Core Elite

A price-chart indicator based on the UT Bot ATR trailing stop, with separate buy and sell engines that each have their own key value and ATR period, so long and short signals can react at different speeds. Signals print as selectable label, triangle, arrow or

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of UT Bot Alerts 2026 Elite Edition

Anish TB Foster Fix

by nishpa800
1 stars

Overlay indicator for stock-style charts that flags pocket pivot candles: a large percentage body whose volume beats the highest opposite-colour volume over a lookback. It also tests trend stages using 50, 150 and 200 period EMAs plus distance from the 52-week

Indicator v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of Anish TB Foster Fix
1 stars

A price-chart indicator designed for gold that scores buy and sell setups from several smart money concepts. It finds swing pivots, detects breaks of structure and changes of character, flags simple fair value gap and liquidity sweep proxies, and adds a fast a

Indicator v5 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of GoldX AI Trader Auto SMC Signals
1 stars

A configurable signal builder for the price chart. The user picks a leading indicator, with Range Filter as the default, and can then require confirmation from optional filters such as EMA position, two or three EMA crosses, Rational Quadratic Kernel, SuperTre

Indicator v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of DIY Custom Strategy Builder v1

Daddy's Special Mix

by timoanttila
1 stars

Daddy's Special Mix is an indicator that combines an anchored VWAP with a standard deviation band, ATR distances, RSI levels and turtle-style breakout windows. It tracks entries after VWAP crosses, allows a set number of additional entries, and flags exits on

Indicator v6 BreakoutTrend Repaints
Updated 2 months ago · GPL-3.0 GitHub repository of Daddy's Special Mix
1 stars

EMA & Time Exit Strategy v6 is an overlay trend-following strategy based on exponential moving averages and fixed-duration holding periods. It plots a fast EMA and a slow EMA directly on the price chart, triggering a long entry when the fast EMA crosses above

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of EMA & Time Exit Strategy v6
1 stars

A Pine v6 indicator that plots the built-in Supertrend next to a hand-written expansion of the same calculation on the price chart. The explicit version builds ATR-based upper and lower bands from the midpoint of each bar and flips direction when the close cro

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of SuperTrend Explicit Port Reference
1 stars

This strategy trades pullbacks to the 21 EMA inside a full EMA 21, 50, 200 stack, shorts only by default. Filters include ADX strength, an RSI range, volume relative to its average, a minimum candle body, an ATR floor, a panic-volatility check and an optional

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Adaptive Pullback Momentum 5m
1 stars

This strategy arms a stop entry slightly beyond the close of a confirmed signal candle, filtered by SuperTrend, fast and slow EMAs, MACD, RSI, rising ADX and higher timeframe checks, within a trading session. A basket of 10 lots books half at a one-point targe

Strategy v6 ScalpingTrend
Updated 2 months ago · Custom licence GitHub repository of 5m Weapon One Leg 10 Lots Basket

This indicator classifies market conditions into five regimes using Bandt-Pompe permutation entropy on price closes. It calculates an entropy score to assess order versus randomness, smooths it into a predictability metric, and computes an adaptive percentile

Indicator v6 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Permutation Entropy Regime [Jayadev Rana]

KB# GOLD

by jayadevrana
1 stars

KB# GOLD is a trading strategy that identifies trend entries and exits using moving average crossovers and optional Tillson T3 breakout filtering. The script calculates fast and slow exponential moving averages alongside a T3 smoothing curve. When breakout mod

Strategy v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of KB# GOLD
1 stars

This Pine Script indicator plots a range filter line along with high and low target bands on the price chart. It calculates a smoothed average range using a sampling period and multiplier, then applies a filter to detect upward and downward trends. Signals tri

Indicator v5 TrendVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Range Filter Buy and Sell 5min

3 - 30 Formula

by jayadevrana
1 stars

A Pine v5 strategy that enters on a 3-period and 30-period EMA crossover when the candle is strong, meaning its body is at least 80 percent of its full range. A bullish cross on a strong green candle opens a long, and a bearish cross on a strong red candle ope

Strategy v5 Moving averagesTrend
Updated 2 months ago · Custom licence GitHub repository of 3 - 30 Formula
1 stars

This Pine Script indicator plots fast and slow EMA lines on the price chart to identify trend direction. It applies RSI and MACD filters to confirm momentum strength and checks volume against its average for confirmation. Buy signals trigger on fast EMA crossi

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Lesson 5 Buy Sell Logic Demo

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is a multi-indicator overlay designed primarily for gold trading. It combines higher-timeframe exponential moving averages with momentum oscillators like RSI, MACD, and StochRSI, alongside volatility tools such as ATR, Bollinger Bands, and A

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro
1 stars

Draws three projected future candles to the right of the price chart. A directional score blends EMA trend, MACD histogram, Bollinger position, RSI and VWAP distance, and the score sets an expected return, a bullish probability and a confidence figure shown on

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of BTC and FX 3-Candle Forecast

聪明钱概念 SMC [LuxAlgo]

by RouZuoMong2003
1 stars

This script provides a Chinese localization of the LuxAlgo Smart Money Concepts suite, plotting market structure directly onto the price chart. It detects both internal and swing market structure shifts, including break of structure (BOS) and change of charact

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · Custom licence GitHub repository of 聪明钱概念 SMC [LuxAlgo]

This indicator identifies confluence patterns based on smart money concepts including liquidity grabs, break of structure, order blocks, and fair value gaps. It maintains a statistical database of past setups, logs outcomes on bar close, and calculates dynamic

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of Smart Money Concepts V3.5.5 - Confluence Learning Engine
1 stars

A strategy that trades only when a fast and slow EMA crossover agrees with an RSI filter and an external signal input. Optional filters add a 200 EMA trend check, a volume multiple and MACD confirmation. Exits use a chandelier and ATR trailing stop with an eme

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of NEXYROTH x AlgoPro Hybrid

Super Duper Trend

by shahrukhhaider
1 stars

A strategy built on a SuperTrend line using an ATR period and multiplier, entering when the trend direction flips and sizing trades by a fixed amount input. Optional exits can be enabled: a faster SuperTrend, an ATR trailing stop, an EMA exit, and fixed percen

Strategy v6 TrendVolatility & bands
Updated 3 months ago · Custom licence GitHub repository of Super Duper Trend

Trend Correlation Heatmap

by AubakirovArman
1 stars

Shows a heatmap of trend strength for up to four user-chosen timeframes. For each timeframe it measures the Pearson correlation of price with time over lookbacks from 50 to 500 bars in steps of 50, and colours each cell by strength and direction. It reports th

Indicator v5 TrendScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Trend Correlation Heatmap

PineFlow v6 — ORB Risk Strategy

by loveyuanfandj-glitch
1 stars

PineFlow v6 — ORB Risk Strategy executes opening range breakout trades filtered by trend and momentum indicators. It defines an initial opening range and trades breakouts during the active trading session when aligned with fast and slow EMAs, ADX momentum, and

Strategy v6 BreakoutSessions & time
Updated 3 months ago · MIT GitHub repository of PineFlow v6 — ORB Risk Strategy
1 stars

MTF Confluence Strategy is a Pine Script strategy that generates long and short signals based on Supertrend flips on the chart timeframe confirmed by Supertrend on a higher timeframe. Signals require ADX above a threshold for trending conditions and optional v

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of MTF Confluence Strategy

EMA Crossover Strategy

by jaichaturvedi88
1 stars

A simple long-only strategy written for an Indian rupee account. It buys when the close is above a short EMA, default 9, and closes the position when the high falls below a longer EMA, default 26. Order size is a fixed rupee amount divided by price, and tradin

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

This indicator overlays precomputed Elliott Wave count structures directly on the price chart for ETHUSD. It draws motive and corrective wave paths across primary and alternate wave scenarios, along with wave projections, subwaves, channels, invalidation level

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of ETHUSD Elliott Wave Count

Buddha Bands

by DarthBuddha
1 stars

A chart-overlay indicator that draws four pairs of long-term moving averages, each pair forming a filled band between a slow and a fast line. The default lengths are 20 and 21, 50 and 55, 200 and 233, and 365 and 377. Each band can be switched on or off, its m

Indicator v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of Buddha Bands

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