Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 38)

Open-source Pine scripts that measure momentum: RSI and MACD variants, stochastics, CCI, multi-timeframe oscillators and momentum strategies.

Pine scripts3,035
Code shown here1,673open licence
Updated in a year1,920
No repaint flag2,652

Oscillators & momentum: Indicators, Strategies and Libraries

Bull Bear Power

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the combined Bull Bear Power oscillator in a separate pane. It computes Bull Power as the difference between the high and an exponential moving average, and Bear Power as the difference between the low and the EMA. The sum o

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Bull Bear Power

Diverlong A002

by ruckard
13 stars

Diverlong A002 is an automated trading strategy designed for cryptocurrency pairs on intraday timeframes. It detects classic bullish and bearish divergences by comparing price changes against transitions in the Squeeze Momentum Indicator. Positions are exited

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong A002

Volume Conviction Index

by eddiebelaval
7 stars

The Volume Conviction Index measures volume conviction by evaluating volume intensity and relative changes against historical medians. It computes a robust median volume and median absolute deviation to derive volume Z-scores while winsorizing extreme outliers

Indicator v6 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Volume Conviction Index

ALGOX

by IAMATOMIC001
3 stars

ALGOX is a multi-indicator trend-following strategy plotted directly on the main chart. It generates trade entries based on configurable setups, moving average trends, and higher-timeframe inputs. Users can apply sideways market filters using customizable RSI

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of ALGOX

TWAP VWAP EMA MACD

by jawauntb
3 stars

The TWAP VWAP EMA MACD indicator calculates two exponential moving averages: one based on the time-weighted average price (TWAP) and another on the volume-weighted average price (VWAP). It subtracts the VWAP EMA from the TWAP EMA to form the MACD line and appl

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of TWAP VWAP EMA MACD

Oscillator

by TamTH-Dev
2 stars

Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), custom VWAP tracking, and volume breakout analysis into a single separate-pane indicator. It calculates oscillator wave values along with moving average smoothing to highlight overbought

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Oscillator

Alpy Spot

by avatar-lavventura
2 stars

Alpy Spot is an oscillator and trend strategy that calculates a WaveTrend indicator alongside a multi-timeframe 60-minute Volume Weighted Moving Average (VWMA) with percentage band offsets. It plots WaveTrend lines, overbought and oversold threshold levels, an

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Spot
2 stars

This strategy detects adaptive market regimes by combining ATR volatility with fast and slow EMA moving averages to determine trend direction. It applies multi-timeframe confirmation using RSI and MACD on a higher timeframe. Signals appear as buy and sell arro

Strategy v6 Volatility & bandsMoving averages Repaints

超级趋势RSI

by wynnforthework
2 stars

This strategy applies a Supertrend calculation directly to Relative Strength Index values rather than raw price, plotting the result in a separate pane. Traders can enable optional RSI smoothing via a Hull Moving Average and overlay a secondary moving average

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 超级趋势RSI

RSI Superstack

by Web3Degenerate
2 stars

RSI Superstack plots the relative strength index from three user-selected timeframes in a separate pane. Each series uses the same RSI length and turns purple when it reaches the overbought or oversold threshold. A red background marks when all three readings

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of RSI Superstack
1 stars

This multi-model strategy combines kinematic price modeling, Bayesian inference forecasts, volume profile consolidation zones, and automated pattern recognition directly on the price chart. It evaluates market trajectory using weighted kinematic regression, un

Strategy v5 AI / machine learningSupport & resistance
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended

Elder Ray Index

by pineforge-4pass
1 stars

Calculates Elder Ray Bull Power and Bear Power by measuring differences between price extremes and an exponential moving average. It takes long entries during an uptrend when Bear Power is negative but rising, and short entries during a downtrend when Bull Pow

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Elder Ray Index

DEPV2 Debug All

by YuceSezar89
1 stars

DEPV2 Debug All is a multi-asset quantitative analysis indicator designed for separate pane execution. It evaluates signal conditions across up to twenty cryptocurrency pairs simultaneously using four analytical dimensions: Trend, Momentum, Volatility, and Vol

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug All

Mirror Oscillator

by morindok
1 stars

This indicator calculates the average percentage distance between the closing price and three benchmark mirror levels: a central midpoint derived from 500-period highs and lows, and dynamic upper and lower period bounds. The averaged distance is smoothed with

Indicator v6 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Davo Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that searches for W and M shapes, meaning five-point double-bottom and double-top patterns, in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Unlike the original it allows patterns to form over more than fi

Indicator v4 Oscillators & momentumDivergence
Updated 3 months ago · MIT GitHub repository of Davo Strategy Indicator

SMA Spread OSC

by rubbermetal
1 stars

SMA Spread OSC plots the percentage distance between a fast SMA (20) and a slow SMA (200) as an oscillator in a separate pane, with optional smoothing. It adds average-distance bands from the spread's own history, an optional histogram and fills, acceleration

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Spread OSC

SMI Auto MTF

by Focal-QuantAI
1 stars

An indicator in a separate pane that plots the Stochastic Momentum Index with a signal line and a histogram. Its lookback, smoothing and signal periods are chosen automatically from the chart timeframe, for example shorter values on 15 minutes and longer on we

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of SMI Auto MTF

Stochastic RSI Crossover

by Basant1Saini
1 stars

This strategy calculates Stochastic RSI crossovers occurring in extreme overbought or oversold zones, filtered by an optional Exponential Moving Average trend filter. Long positions enter when the %K line crosses above %D from below the oversold threshold whil

Strategy v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Stochastic RSI Crossover
1 stars

High-Frequency Swing Reversal is a Pine Script v5 strategy that computes a reversal score from Bollinger Bands distance, RSI exhaustion, and candlestick rejection patterns such as hammers and stars. It plots VWAP, Bollinger Bands, and EMA20 on the price chart.

Strategy v5 Oscillators & momentumVolatility & bands
Updated 9 months ago · None stated GitHub repository of High-Frequency Swing Reversal

V5 Combination by YZZ

by webcrack4
1 stars

This indicator script combines Volume Profile or Market Profile (Time Price Opportunity) calculations with a MACD oscillator overlay directly on the price chart. It measures volume or time distribution across configurable ranges such as visible range, anchored

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ
1 stars

Technical Ratings Pro - Pump Wave calculates an aggregated technical rating derived from a suite of moving averages and oscillators. It evaluates indicators including multiple SMAs, EMAs, Hull MA, VWMA, Ichimoku Cloud, RSI, Stochastic, MACD, CCI, and the Ultim

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Technical Ratings Pro - Pump Wave

QS Fast Coppock

by nvFede
1 stars

A Pine v4 oscillator in a separate pane based on the Coppock curve. It sums 14-bar and 11-bar rates of change, smooths them with a Hull moving average, and averages the result again with a smoothness setting. The line and area are green or red depending on the

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Fast Coppock

MTM Metric [SMA]

by JohnsonHsiao
1 stars

This indicator calculates momentum metrics by measuring the differences between three simple moving averages of closing prices. It computes a short-term bias by subtracting a medium-period SMA from a fast-period SMA, and a long-term bias by subtracting a long-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric [SMA]

This indicator uses a k-Nearest Neighbors (kNN) machine learning algorithm to classify current market conditions based on historical indicator pairs. It evaluates combinations of fast and slow periods of RSI, Rate of Change (ROC), and Commodity Channel Index (

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-Based Strategy (MTF)

Chaikin Money Flow

by TWODS-CAPITAL
37 stars

The Chaikin Money Flow indicator measures the volume of money flow over a specified lookback period. It calculates the Accumulation Distribution value for each bar based on the relationship between closing, high, and low prices, then divides cumulative money f

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Chaikin Money Flow

Diverlong B002

by ruckard
13 stars

This strategy enters when Squeeze Momentum color-section changes diverge from price, comparing the latest change with a prior one and confirming the divergence across two pairs. A smaller squeeze value with a higher price opens a short, while a larger squeeze

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong B002

This indicator expands Alexander Elder's Bull Power and Bear Power concept into a multi-model pressure analysis system displayed in a separate pane. It calculates bull, bear, and net pressure alongside dominance, impulse, and acceleration using selectable movi

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Elder Ray Pressure Engine [WavesUnchained]

MACD_Crossover_STEPFUN

by eltonaguiar
4 stars

This strategy enters long when the MACD line crosses above its signal line and short when it crosses below. Optional filters require the histogram to exceed a threshold, price to sit on the matching side of a simple moving average, and a simplified three-bar d

Strategy v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of MACD_Crossover_STEPFUN

TrendStop+boll

by gocaman
3 stars

The TrendStop+boll indicator combines a trend trailing level system with configurable Bollinger Bands directly on the price chart. It evaluates Directional Movement (+DI/-DI) and MACD, locking in an EMA or VWAP benchmark level whenever momentum and directional

Indicator v5 TrendVolatility & bands
Updated 2 days ago · None stated GitHub repository of TrendStop+boll

This strategy evaluates market conditions on the price chart by combining composite RSI STARC bands, an EMA and SMA crossover, VWAP standard deviation bands, and security-derived volume metrics. It enters long positions when cumulative delta, momentum breakout

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Alpha: Composite Momo + Volume + Price Strategy

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots the Williams Vix Fix in a separate pane with Bollinger Bands and VWMA lines. It signals long entries when the Vix Fix color shifts from lime to gray, meets VWMA long conditions and close is lower. Short signals trigger on the opposite color

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

Magnificent 7 Oscillator

by regalouisei
2 stars

Calculates smoothed momentum across the primary Magnificent 7 mega-cap tech stocks (AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META) and optional additional tickers. It aggregates their performance either through equal weighting or market comparison modes against be

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Magnificent 7 Oscillator

RSI Swing Signal

by Web3Degenerate
2 stars

This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle. It sizes a stop from the recent extreme plus an ATR multiple, then

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Swing Signal

RSI Zones

by jayadevrana
1 stars

Calculates the Relative Strength Index (RSI) based on close prices over a customizable period length. Plots the resulting oscillator in a separate chart pane alongside fixed horizontal lines at the standard 70 overbought and 30 oversold thresholds. When the RS

Indicator v6 Oscillators & momentum
Updated 4 days ago · MPL-2.0 GitHub repository of RSI Zones

DEPV2 DEBUG DAY

by YuceSezar89
1 stars

This debug version of the DEPV2 indicator tests multi-method signal logic. It evaluates four categories—TREND, MOMENTUM, VOLATILITY and VOLUME—across 20 cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT and others. Users select signal modes for simult

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG DAY
1 stars

The Mirror Oscillator Morindok calculates a bounded momentum oscillator in a separate chart pane. It computes dynamic price reflection levels using a moving average and high-low channels over a specified lookback window. The script normalizes the current closi

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Morindok

Stochastic RSI

by rubbermetal
1 stars

Stochastic RSI plots smoothed K and D lines of a stochastic calculation in a separate pane, using smoothed moving average smoothing instead of a plain average. The K line shifts color from green to red by level. Overbought and oversold zones are filled, K/D cr

Indicator v6 Oscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Stochastic RSI

Volume Spike Reversal

by Basant1Saini
1 stars

The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish

Strategy v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Volume Spike Reversal

V5 Combination by yzz

by webcrack4
1 stars

Combines multiple analytical tools on the main price chart, prominently featuring an interactive Volume Profile and Market Profile alongside an overlaid MACD indicator. It calculates volume or price distribution over visible, anchored, or full ranges, plotting

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz

Vortex Indicator

by amico1234
1 stars

The Vortex Indicator calculates positive (VI+) and negative (VI-) directional movement lines to help identify trend direction and momentum. It measures the sum of upward and downward price movements relative to the true range over a specified lookback period.

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Vortex Indicator

MTM Metric EMA

by JohnsonHsiao
1 stars

This indicator plots momentum bias metrics using three exponential moving averages (EMAs) of periods 20, 60, and 180. It calculates short_bias as the difference between the fast and mid EMAs, and mid_bias as the difference between the mid and long EMAs. These

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MTM Metric EMA

TMA RSI Divergence

by rajatjpatel
1 stars

A separate-pane RSI divergence tool written in Pine v4. It plots a 14-period RSI in yellow with a 50-period smoothed average and a 50 midline, then detects pivot lows and highs of the RSI within a lookback range of 5 to 60 bars. Labels mark regular bullish, hi

Indicator v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of TMA RSI Divergence
330 stars

Improvising [Alorse] is a price-chart strategy that looks for a one-bar candle reversal filtered by a 10-period EMA, a 14-period RSI, and a rising or falling MACD. Longs require a bearish bar followed by a bullish close above the EMA, RSI below 65, and a risin

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of Improvising [Alorse]
47 stars

This indicator calculates John Ehlers' Autocorrelation Periodogram to estimate the dominant cycle length of a market. It pre-filters price data using high-pass and smoothing filters, then computes Pearson correlation coefficients across a spectrum of lag perio

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Autocorrelation Periodogram

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