Pine Library · 3,064 open-source scripts

Free Moving Average Pine Scripts (page 6)

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

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

Tex Santos Up Left

by scallywag41
2 stars

This indicator monitors technical conditions across up to ten user-defined ticker symbols simultaneously in a separate chart pane. For each symbol, it fetches market data and computes nine-period and two-hundred-period simple moving averages, a fourteen-period

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tex Santos Up Left

ATR Reversion System

by Web3Degenerate
2 stars

The ATR Reversion System is a long-only mean-reversion strategy that plots ATR bands around a short-term EMA (20) and a long-term EMA (200) filter on the price chart. It signals entries by checking if the close is below the bottom ATR band and above the long E

Strategy v5 Mean reversionMoving averages
Updated 2 years ago · None stated GitHub repository of ATR Reversion System

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#
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

VWAP Percent Distance

by francolla
2 stars

VWAP Percent Distance calculates and plots the relative percentage difference between the closing price and the Volume Weighted Average Price (VWAP). Designed as a mean-reversion tool, it helps traders measure how far price has stretched from VWAP in percentag

Indicator v5 Mean reversionMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of VWAP Percent Distance

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
2 stars

The Quantitative Stock Confluence Finder is a Pine Script v5 indicator that plots technical elements directly on the price chart to help identify potential confluence zones in stocks. It calculates and displays bands around a simple moving average with adjusta

Indicator v5 Moving averagesOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Quantitative Stock Confluence Finder

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

IB & EMA

by jvalen01
2 stars

This TradingView indicator plots three exponential moving averages of 10, 21, and 50 periods on the price chart. Users toggle visibility of each EMA via a group input. It also colors bars yellow when an inside day forms, defined by the current bar's high and l

Indicator v5 Moving averagesCandlestick patterns
Updated 3 years ago · None stated GitHub repository of IB & EMA

AD

by RightShiner
2 stars

This indicator plots the standard Accumulation/Distribution line along with a smoothed signal line in a separate pane. Users can configure the signal line as an exponential moving average or a simple moving average with adjustable length. When enabled, a dynam

Indicator v4 VolumeMoving averages
Updated 3 years ago · None stated GitHub repository of AD

Bollinger Bands Strategy

by TravisLeeRichardson
2 stars

This strategy plots standard and dual-level Bollinger Bands on the main price chart to generate breakout signals. It enters a long position when the price crosses above the upper band and enters a short position when the price crosses below the lower band. Pos

Strategy v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Bollinger Bands Strategy
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

LS Volatility Index

by andreperez
2 stars

The LS Volatility Index measures price volatility relative to a customizable moving average. It computes the percentage distance of the current price from the chosen source (such as close or open) and normalizes this value by historical volatility, producing a

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · MPL-2.0 GitHub repository of LS Volatility Index

Signal Moving Average

by ctkqiang
2 stars

The Signal Moving Average indicator calculates an adaptive trend line weighted by the R-squared correlation between price and bar index over a configurable period. When the correlation exceeds a fixed threshold, the indicator blends a simple moving average wit

Indicator v5 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Signal Moving Average
2 stars

This indicator plots buy and sell labels on the price chart. It calculates a WaveTrend-style oscillator from exponential moving averages, then requires a cross to agree with the slope of a Jurik moving average built on a blended close, VWAP, and OHLC source. A

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Wave Up Indicator - Pro

3xEMA 1min Startegy

by DaniilOkrug
2 stars

This strategy identifies entry setups on short timeframes by combining moving average trend filters with Bill Williams fractal breakouts. It tracks multi-bar high and low fractals to establish market structure, waiting for confirmed fractal breaks in the direc

Strategy v5 Moving averagesSupport & resistance
Updated 4 years ago · MIT GitHub repository of 3xEMA 1min Startegy

BIAS

by kat3samsin
2 stars

This multi-indicator strategy combines the Relative Strength Index (RSI), Choppiness Index, Stochastic Oscillator, and an Arnaud Legoux Moving Average (ALMA). It plots RSI, Stochastic, and Choppiness lines in a separate pane. Long entries trigger when RSI cros

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of BIAS
2 stars

The ANN MACD Future Forecast is an experimental indicator serving as a true deep learning sample on TradingView. It calculates Bollinger Bands and Squeeze Momentum using custom functions for SMA, EMA, standard deviation, highest and lowest values. The script p

Indicator v4 AI / machine learningVolatility & bands
Updated 7 years ago · MIT GitHub repository of ANN MACD Future Forecast (SPY 1D)

Area Momentum

by xopromo
1 stars

An indicator on the price chart that treats the distance between price and a moving average as an area. It enters when the growth of that area has accelerated for a set number of bars and exits when growth slows. Settings pick the average type (SMA, EMA, WMA o

Indicator v6 Moving averagesOscillators & momentum
Updated yesterday · None stated GitHub repository of Area Momentum

Indicator Template

by Jahanzaib211
1 stars

A starter indicator template that plots a fast and slow exponential moving average on the price chart. A long or short marker appears on a confirmed bar when the averages cross and RSI is above or below 50. Each signal calculates an ATR-based stop level and a

Indicator v6 Moving averagesTrend
Updated yesterday · MIT GitHub repository of Indicator Template

BTC Trend Ensemble 2-of-3

by nvolpe2007-cell
1 stars

A long-or-cash strategy where three trend checks vote at each daily close: price above a 100-bar SMA, above a 200-bar SMA, and above its close 90 bars earlier. It holds a long position when at least the required number of votes agree, two by default, and moves

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of BTC Trend Ensemble 2-of-3

BL-ESW Pinbar Market Lab

by tulukakaniwa
1 stars

BL-ESW Pinbar Market Lab is an overlay indicator that calculates rolling VWAP cost anchors across multiple fixed windows to establish dynamic price levels. It detects Pinbar candlestick patterns using customizable wick-to-body ratios and plots GetDelta volatil

Indicator v6 Support & resistanceCandlestick patterns
Updated yesterday · AGPL-3.0 GitHub repository of BL-ESW Pinbar Market Lab

MEXC Paper Technical Alerts

by sjbrenchley89
1 stars

This indicator plots 9-period and 21-period exponential moving averages directly on the price chart to identify momentum changes. It generates entry signals when a fast EMA crosses above a slow EMA while RSI is between 50 and 65 and the MACD histogram is posit

Indicator v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MEXC Paper Technical Alerts

15m EMA + OI Flip Signals

by grzresearch
1 stars

The indicator plots the fast 9 and slow 15 EMA on the price chart and colors the area between them green for bullish trend and red for bearish. It generates BUY signals on the fast EMA crossing above the slow EMA and SELL signals on the opposite crossover. Sig

Indicator v6 TrendMoving averages
Updated 2 days ago · MPL-2.0 GitHub repository of 15m EMA + OI Flip Signals

A price-chart indicator that plots a 200-length double exponential moving average and colours it by trend strength. The line turns green when price is above it and ADX is at or above a threshold, red when price is below it, and grey when ADX is weak. ADX and d

Indicator v5 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of DEMA 200 and ADX Combined Indicator
1 stars

This trend-following strategy implements Paul Tudor Jones' long-term moving average rule directly on the price chart. It calculates an SMA or EMA baseline with an optional percentage band and a confirmation close counter to filter out false breakouts. The stra

Strategy v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of 200-Day Rule (Paul Tudor Jones) [JR]

EMA · RSI

by Tomas-Cyberia
1 stars

The EMA RSI indicator plots multiple moving averages including EMAs and MAs on the price chart and the RSI oscillator in a separate pane. It identifies when a trending asset returns to support with RSI in oversold, using green signals and confirmations at key

Indicator v6 TrendMoving averages
Updated 4 days ago · None stated GitHub repository of EMA · RSI
1 stars

A small demonstration indicator that marks crossovers between a 3-period and a 5-period simple moving average on completed bars, with a triangle below the bar for a bullish cross and above it for a bearish cross. It also checks a fixed set of twelve sample clo

Indicator v6 Moving averages
Updated 4 days ago · MIT GitHub repository of SCA EA Parity Demo SMA 3/5

ES1! Long 1D MA200 MA5

by luifertorres
1 stars

A long-only daily strategy for E-mini S&P futures. It enters long when the 200-period SMA is rising, the candle is bearish and the whole bar sits below the 5-period SMA, and it closes the position when price closes above the 5-period SMA. Size is a fixed one c

Strategy v6 Mean reversionMoving averages
Updated 5 days ago · MIT GitHub repository of ES1! Long 1D MA200 MA5

Trend Mastery

by LemonPower21
1 stars

A long-only trend strategy using a 50-period and a 200-period EMA with an RSI filter. It buys when price crosses above the fast EMA or the fast EMA crosses above the slow one, provided price is above the slow EMA and RSI is above a set level. It closes when th

Strategy v5 TrendMoving averages
Updated 5 days ago · None stated GitHub repository of Trend Mastery

Indicator EMA Crossover

by Jakub-Pinkowski
1 stars

This script calculates two Exponential Moving Averages (EMAs), default periods 9 and 21, and plots them directly on the price chart. It shades the area between the lines green during bullish trends and red during bearish trends. Crossovers trigger delayed Buy

Indicator v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Indicator EMA Crossover

Adaptive MA Function

by pineforge-4pass
1 stars

This strategy calculates Kaufman's Adaptive Moving Average (KAMA) using a custom efficiency-ratio function on closing prices. It plots a color-coded KAMA line directly on the price chart, turning green when the slope is positive and red when negative. The stra

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of Adaptive MA Function

This strategy calculates fast and slow EMAs crossed with an RSI filter to generate long and short signals on the price chart. It enters positions based on EMA crossover conditions filtered by RSI thresholds and exits using stop-loss and take-profit levels scal

Strategy v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Hyperliquid-Ready Webhook Strategy Template

EMA Volume

by engtuncay
1 stars

The EMA Volume indicator plots two exponential moving averages on the price chart, with lengths of 50 and 200 periods. It calculates a simple moving average of volume and filters cross signals based on volume levels. Bullish and bearish crossovers between the

Indicator v6 Moving averagesVolume
Updated 6 days ago · None stated GitHub repository of EMA Volume

Combo

by pouyA-png
1 stars

This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi

Strategy v5 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Combo

This strategy demonstrates a decoupled architecture where external Python optimization feeds parameters into Pine Script through a formatted configuration payload. The script parses the payload to set the SMA length, ATR length, take profit percentage, and ATR

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Off-Chain Python-Pine Architecture [The Quant Science]

FVG Prob TW Strategy

by gplee789-afk
1 stars

This strategy trades Taiwan-stock fair value gaps on the price chart. It marks gaps that pass an ATR size and displacement filter, tracks inverse FVGs, internal order-block retests and sweeps, and scores enabled triggers with fixed weights. A signal confirms o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 3 weeks ago · MPL-2.0 GitHub repository of FVG Prob TW Strategy
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

Composite Market Bias

by mrme000m
1 stars

Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Composite Market Bias

BTCUSD Long Only

by Pr-ashant-pawar
1 stars

This overlay indicator detects candles that stay entirely below a short exponential moving average and groups them into a sequence. When price later closes above the sequence high, it waits for a pullback that touches that level and then marks a long entry, re

Indicator v6 Moving averagesBreakout
Updated 7 weeks ago · None stated GitHub repository of BTCUSD Long Only

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