Pine Library · 3,064 open-source scripts

Free Moving Average Pine Scripts (page 5)

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

EMA & PVSR Master MP

by midngtpickle
2 stars

This indicator unifies Price Volume Spread Analysis (PVSRA) with a suite of moving averages and VWAP. It calculates volume classifications—flagging climax, above-average, and regular bars—and projects synchronized candle coloring, six customizable EMAs, three

Indicator v6 Moving averagesVolume
Updated 4 weeks ago · Custom licence GitHub repository of EMA & PVSR Master MP

KAMA Values to JSON

by damianhunziker
2 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) and plots it directly on the main price chart. Traders can configure the efficiency ratio length, fast length, and slow length parameter settings. During real-time bar updates, the script store

Indicator v5 Moving averages
Updated 5 weeks ago · Custom licence GitHub repository of KAMA Values to JSON

Algo

by TamTH-Dev
2 stars

This indicator plots dual Kaufman Adaptive Moving Averages (KAMA) alongside a volume profile component on the main price chart. Users can configure two separate KAMA instances with distinct timeframes, lookback lengths, and fast or slow smoothing limits. The i

Indicator v6 Moving averagesVolume
Updated 5 weeks ago · None stated GitHub repository of Algo

Bridge Protocol Example

by propfirmgorilla
2 stars

This example strategy demonstrates how to format Pine Script order alerts into JSON payloads for automated execution engines. It generates entry signals using a 10-period and 30-period simple moving average crossover and calculates protective stop-loss prices

Strategy v5 Moving averagesTrend
Updated 6 weeks ago · MIT GitHub repository of Bridge Protocol Example

Trust Me Bro Strategy

by moonyroy
2 stars

A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions

Strategy v6 Oscillators & momentumDivergence
Updated 7 weeks ago · MIT GitHub repository of Trust Me Bro Strategy
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

GODMODE Dashboard

by EricMohlathe
2 stars

This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of GODMODE Dashboard
2 stars

This overlay indicator demonstrates TradingView alert configuration. It plots 20- and 50-period simple moving averages and creates alert conditions when price crosses the shorter average or the averages cross each other. It also alerts on RSI crossing 70 or 30

Indicator v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Configuration Examples

A-SLP DEMALONG 6M

by danielvm-git
2 stars

This strategy plots up to three double exponential moving averages on the price chart and flags crossovers and crossunders between them. With the third length at zero, it compares the first and second DEMAs; other length combinations change which series is use

Strategy v4 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of A-SLP DEMALONG 6M
2 stars

ATR% Multiple from MA measures price extension relative to a moving average, expressed in multiples of Average True Range percentage. It calculates ATR as a percentage of close, evaluates the percentage distance between the price and its moving average, and no

Indicator v6 Moving averagesVolatility & bands
Updated 3 months ago · Apache-2.0 GitHub repository of ATR% Multiple from MA

MahadevLevels35 PRO

by phadmahadev-ops
2 stars

MahadevLevels35 PRO is a Pine Script v6 indicator that draws Mahadev price levels with endings like 03, 11, 29, 35, 65 and 71 across a user-defined range directly on the price chart. It overlays a stack of seven EMAs with customizable colors and source, plus V

Indicator v6 Support & resistanceMoving averages
Updated 3 months ago · MIT GitHub repository of MahadevLevels35 PRO

HTF / Power Play Levels

by mirkothepirko
2 stars

This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart. It measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plot

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · Custom licence GitHub repository of HTF / Power Play Levels

RedK EVEREX v2.0

by bigzhu
2 stars

The RedK EVEREX v2.0 indicator examines effort versus results by plotting normalized bands comparing price change to volume. It computes rate of flow using selectable moving averages with smoothing options, and applies lookback averaging to highlight anomalies

Indicator v5 Moving averagesVolume
Updated 3 months ago · None stated GitHub repository of RedK EVEREX v2.0

QTrade MACD

by Can3299
2 stars

QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · AGPL-3.0 GitHub repository of QTrade MACD
2 stars

This strategy executes long trades based on a 50 and 200 SMA golden cross and manages exits using a dynamic trailing stop. Upon entry, it places an initial stop loss at the lowest low of the previous lookback bars. Whenever price prints a new high over the spe

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2-Bar Trailing Stop Strategy
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v1

This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Indicador de Tendências do BTC e Altcoins
2 stars

ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc

Indicator v4 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate MultiStrategy Trading

BB Breakout Reversal Strategy

by WayneMoore1006
2 stars

This quantitative strategy calculates custom Bollinger Bands using a standard moving average and standard deviation multiplier. It generates long entry signals when the bar close breaks above the upper band, and short entry signals when the close breaks below

Strategy v6 Volatility & bandsBreakout
Updated 6 months ago · None stated GitHub repository of BB Breakout Reversal Strategy
2 stars

The ARCStage indicator calculates and color-codes Stan Weinstein's four market stages using the slope of the 30-week SMA and the price position relative to it. Stage 1 appears in light gray during basing consolidation, Stage 2 in light green during advancing,

Indicator v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Stan Weinstein Stage Analysis
2 stars

This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi

Strategy v5 TrendOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of WINNER MNQ Strategy - Optimized 2026
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

This indicator measures how far price sits from a simple moving average, expressed as a percentage, then smooths that difference and plots it as an area in a separate pane. Green marks a positive deviation and red a negative one, so the series acts as a direct

Indicator v6 Moving averagesMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Direction plugin] Price Deviation [psyll]

This indicator plots Bollinger Bands and Keltner Channel on the price chart to analyze volatility and price action. It supports switching between Bollinger Bands, Keltner Channel, Parallel Channels, and VWAP Bands. Users select the source price, moving average

Indicator v6 Volatility & bandsMoving averages
Updated 9 months ago · MPL-2.0 GitHub repository of Bollinger Bands + Keltner Channel Refurbished

This indicator detects breakout signals on the price chart when volume exceeds a threshold, a gap appears, or a strong candle forms, combined with an upward MA50 trend. It plots MA10, MA50, MA150 and MA200 for reference and places entry and exit labels directl

Indicator v6 BreakoutMoving averages
Updated 10 months ago · MIT GitHub repository of Breakout Strategie + MA Labels + Stops

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

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

[TradingX] SMA|EMA

by TradingX-TF
2 stars

This indicator plots six moving averages on the price chart. Each line is independently set as an SMA or EMA, with default lengths of 11, 22, 50, 100, 200 and 360. It draws colored plots and optional labels that name each length and type. When enabled, it high

Indicator v6 Moving averages
Updated 11 months ago · None stated GitHub repository of [TradingX] SMA|EMA
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

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

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

The Kairi Relative Index with Arrows indicator calculates the percentage deviation of a chosen price source relative to its Simple Moving Average. It plots green and red arrows when the KRI crosses above or below the zero line, signaling potential bullish or b

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MIT GitHub repository of Kairi Relative Index with Arrows

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

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

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