Pine Library · 3,064 open-source scripts

Free Moving Average Pine Scripts (page 4)

Open-source Pine scripts built on moving averages: EMA and SMA tools, ribbons, Hull and adaptive averages, and crossover strategies.

Pine scripts3,064
Code shown here1,765open licence
Updated in a year1,828
No repaint flag2,707

Moving averages: Indicators, Strategies and Libraries

This indicator plots buy and sell signals on the price chart overlay using Supertrend as the primary trend filter combined with multiple moving average crossover strategies. Users select from preset modes or enable custom combinations via toggles for 12 differ

Indicator v6 TrendMoving averages
Updated 5 weeks ago · MIT GitHub repository of Quantum Queen X + Supertrend Signal
3 stars

This strategy implements a daily Bitcoin trend-following system combining exponential moving averages (EMA 25, 52, and 144) with daily and 4-hour MACD indicators. It triggers long and short positions based on EMA alignments, zero-line momentum segments, and hi

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of BTC 1D MACD 回测对比

Mean Reversion T

by Ye-Yu-Mo
3 stars

Mean Reversion T is a dual-engine intraday indicator designed for 15-minute charts to detect mean-reversion and shock-reversal trading opportunities. It calculates Z-score price deviations from a moving average mean alongside regime scores across 15-minute and

Indicator v6 Mean reversionMoving averages Repaints
Updated 2 months ago · MPL-2.0 GitHub repository of Mean Reversion T

AI Bot - Manual Alerts

by thanhcong1211
3 stars

AI Bot - Manual Alerts is an overlay indicator that scores buy and sell conditions from optional MACD, EMA, RSI, and break-of-structure checks. It treats the share of enabled conditions that fire as a confidence value and sends a JSON buy or sell alert once pe

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 3 months ago · None stated GitHub repository of AI Bot - Manual Alerts
3 stars

The Buy/Sell Position Strategy combines a long-term Exponential Moving Average (EMA) with a short-term Relative Strength Index (RSI) to capture pullbacks in an uptrend. It enters a long position on the price chart when the price is above the EMA filter and the

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Buy/Sell Position Strategy

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five configurable timeframes for up to three symbols. It evaluates price relative to a fast EMA along with RSI momentum, weighting each timeframe to generate a normalized confluence sc

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

The Linchuan Event Indicator plots multi-timeframe opening price zones alongside key moving averages and Bollinger Bands in a separate indicator pane. It tracks opening price lines and colored expansion zones across 5-minute, 30-minute, 1-hour, and 4-hour time

Indicator v5 Support & resistanceMoving averages
Updated 5 months ago · None stated GitHub repository of Linchuan Event Indicator

DIY Entry Signals

by benso87
3 stars

This indicator plots optional moving averages on the price chart and generates entry signals based on custom conditions from multiple technical indicators. Users select which indicators contribute to long or short signals, choose confirmation of candles, and c

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · MPL-2.0 GitHub repository of DIY Entry Signals

CryptoSwarmStrategy

by aegntic
3 stars

CryptoSwarmStrategy is a chart overlay strategy that enters long when a fast EMA crosses above a slow EMA, RSI is below the oversold level, and volume exceeds its 20-bar average. It enters short on the opposite EMA cross with RSI above overbought and the same

Strategy v5 Moving averagesOscillators & momentum
Updated 6 months ago · MIT GitHub repository of CryptoSwarmStrategy

GainzAlgo EA

by saadkhan371
3 stars

GainzAlgo EA is a trend-following strategy designed for scalping and intraday trading, optimized for gold and liquid assets. It establishes trend direction using a three-EMA alignment alongside RSI momentum filters and an optional higher-timeframe trend confir

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of GainzAlgo EA
3 stars

This strategy calculates standard Bollinger Bands and Average True Range to implement a basic mean-reversion system. It opens long positions when price drops below the lower band and short positions when price pierces above the upper band. Open trades are exit

Strategy v5 Mean reversionVolatility & bands
Updated 7 months ago · MIT GitHub repository of Bollinger Band Mean Reversion

Crypto Bull Market Strategy

by EngineeredSuccess
3 stars

Crypto Bull Market Strategy is a long-term Bitcoin cycle indicator overlaying price targets and trend phase tracking on the price chart. It calculates a 50-week simple moving average to evaluate long-term market trends and monitors progress toward user-defined

Indicator v6 TrendMoving averages
Updated 1 year ago · Custom licence GitHub repository of Crypto Bull Market Strategy
3 stars

This indicator plots a fast and a slow exponential moving average on the price chart and marks buy and sell signals for Bitcoin scalping. A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its sig

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of BTC 1–5 min Scalping Signals

Golden Strategy

by AliAhmadi-Software
3 stars

The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Golden Strategy

Brahmāstra

by HelloMoto069
3 stars

Brahmāstra plots a fixed 10-period exponential moving average on the price chart and marks candles that sit entirely beyond it. A red candle whose low is above the average gets a cross, and a later green candle that opens below and closes above that candle's h

Indicator v5 Moving averagesCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Brahmāstra

Cipher A

by diehardyearone
3 stars

Cipher A is a trend-following overlay indicator that plots a multi-line moving average ribbon alongside long-term moving averages, VWAP, and higher-timeframe weekly and monthly key levels directly on the price chart. It incorporates underlying WaveTrend, RSI,

Indicator v6 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Cipher A

This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a

Strategy v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Optimized Volume + Fibonacci + Trend + ATR Strategy

This indicator plots a fast and a slow simple moving average on the price chart and marks a buy when the fast average crosses above the slow average and a sell when it crosses below. It creates alert conditions that send structured JSON messages with the signa

Indicator v5 Moving averages
Updated 1 year ago · MIT GitHub repository of Moving Average Crossover with External URL Notification

200DMA Entry

by FinDeckDao
3 stars

The 200DMA Entry strategy plots the 200-day simple moving average on the price chart. It generates long signals when the close crosses above the 200 MA on the prior bar. Positions are sized at 1 percent of account equity. The strategy exits at a 2.5 times take

Strategy v5 Moving averagesTrend
Updated 1 year ago · MIT GitHub repository of 200DMA Entry

This indicator plots a MACD-style oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. SMA or EMA can be selected for both the oscillator and the sig

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Relative Moving Average Convergence Divergence (RMAC)

This trend-following strategy calculates asymmetric Bollinger Bands and overlays them on the price chart alongside a central moving average. It enters long positions when the price crosses above the upper band, provided an optional benchmark trend filter (chec

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MIT GitHub repository of Bollinger Band Trend Follow Strategy
3 stars

This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of 周末布林带策略

This overlay indicator draws MarketSmith-style price bars and several moving averages on the chart. Bar color follows the current close versus the open, or versus the previous close when that option is enabled. Four daily averages and four weekly averages can

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketSmith Indicator Indian Market
3 stars

This Pine Script strategy plots a G-Channel and a 200-period Exponential Moving Average (EMA) directly on the price chart. It triggers buy signals when price crosses the lower G-Channel line while trading below the EMA line. Long positions are managed using Av

Strategy v4 TrendMoving averages
Updated 2 years ago · Apache-2.0 GitHub repository of G-Channel & EMA Strategy with ATR SL/TP

Larry Williams 9.1

by leocairos
3 stars

This strategy tracks directional shifts in a 9-period Exponential Moving Average (EMA) to identify trend reversals based on the Larry Williams 9.1 setup. It plots the 9 EMA on the main chart and generates a long signal when the EMA turns upward after declining

Strategy v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Larry Williams 9.1

EMA Crossover

by mr-s8
3 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-2.0 GitHub repository of EMA Crossover

This indicator plots Linear Regression lines with deviation bands on the price chart to identify support and resistance levels. It filters signals using configurable EMA lines and optional Supertrend filter. A session filter restricts calculations to specified

Indicator v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading LR + TTP Indicator Lite
3 stars

This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of 5min Scalping EMA50, EMA200, MACD

Combined Script

by maxits
3 stars

Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe

Strategy v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Combined Script

Carmelita Adelina Leandro by Professor Theta is an intraday signal script designed for futures charts. It calculates VWAP and a 9-period Exponential Moving Average to identify trend reversal triggers. Long and short entry signals are evaluated based on open pr

Strategy v5 TrendMoving averages
Updated 4 years ago · Unlicense GitHub repository of Carmelita Adelina Leandro by Professor Theta

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

Combines Ichimoku Cloud, SuperTrend, Bollinger Bands, and three moving averages into a single overlay indicator. It plots trend direction, volatility bands, and key averages directly on the price chart. The indicator features a Bollinger Band pinch detector th

Indicator v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Ichimoku + SuperTrend + 3MA + Bollinger Bands

Icarus

by niloysaha
3 stars

Icarus is an overlay indicator that projects momentum and level indicators directly onto the price chart. It calculates higher-timeframe equivalents for moving averages, computes Supertrend, and constructs price-equivalent RSI upper and lower bands based on La

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Icarus

BB RSI Strategy

by infinityhao
3 stars

BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of BB RSI Strategy

BTC MA Accumulation v1

by yalili8521
2 stars

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of BTC MA Accumulation v1

1x MA = Moving Average

by piecioshka
2 stars

This indicator plots a single moving average of user-defined length and type overlaid on the price chart. The average can be SMA, EMA, WMA, VWMA or RMA with default length 50 and EMA type. The line color is also configurable. An optional label at the end of th

Indicator v6 Moving averages
Updated 11 days ago · MIT GitHub repository of 1x MA = Moving Average

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper

VCP Silver Tier Strategy

by alejandr02820
2 stars

The VCP Silver Tier Strategy is a MACD-based trading system in Pine Script v5 that draws signals on the price chart. It computes the MACD line using fast length 12, slow length 26, and signal length 9. Long entries fire on MACD crossover below zero; short entr

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of VCP Silver Tier Strategy

This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of Ver15 Environment Recognition (Provisional Pivot)
2 stars

The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Adaptive Decycler Supertrend

FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger

Strategy v6 TrendOscillators & momentum
Updated 3 weeks ago · MIT GitHub repository of FortiTrade Elite Multi-Strategy with DeepSeek Turbo

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