Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 46)

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

Calculates the Hilbert Transform In-Phase and Quadrature components of a price series to measure underlying cyclic behavior. It processes the input source through smoothing, detrending, and Hilbert phase calculation steps to generate two orthogonal component l

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_PHASOR: Hilbert Transform Phasor Components
16 stars

This strategy enters long or short when price breaks a Donchian channel and RSI confirms the same direction. It sizes each unit from a risk percent of equity and can add units after a set ATR advance, up to a unit limit. An initial ATR stop and a trailing stop

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 45: Dual Momentum

CVD Momentum Divergence

by eddiebelaval
7 stars

This indicator approximates cumulative volume delta from each bar's volume and candle body, then detrends and normalizes both price and CVD so they can be compared in a separate pane. It plots the two smoothed series and an optional histogram of their differen

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of CVD Momentum Divergence

This short-only trading strategy combines the Relative Strength Index (RSI), Slow Stochastic, and MACD to identify bearish setup entries. A short position triggers when the RSI drops below 50, the Slow Stochastic crosses down while overbought, and the MACD lin

Strategy v4 Oscillators & momentumTrend
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + Slow Stochastic + MACD Short Strategy
4 stars

This indicator computes a momentum value via linear regression on the difference between close price and a mid-value average that blends highest-lowest range and high-close average over the Keltner Channel length. It overlays Bollinger Bands and Keltner Channe

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · MIT GitHub repository of Squeeze Momentum [trugurpala]

VWMA 1hr + WF

by avatar-lavventura
2 stars

This script calculates a 1-hour 24-period Volume Weighted Moving Average (VWMA) and plots it directly on the price chart with customizable upper and lower percentage offset bands. It combines Williams Fractals for local swing highs and lows with a 14-period Re

Indicator v4 Moving averagesOscillators & momentum
Updated 7 months ago · None stated GitHub repository of VWMA 1hr + WF

Fractal Engulfing Candles

by Web3Degenerate
2 stars

This indicator identifies bullish and bearish engulfing candlestick patterns filtered by fractal swing points and RSI momentum levels. It detects swing highs and lows over a configurable lookback period, requiring bullish signals to coincide with a swing low a

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Fractal Engulfing Candles

Momentum ROC Combo

by pineforge-4pass
1 stars

A strategy that combines the Momentum and Rate of Change indicators, shown in a separate pane with a zero line. It enters long when momentum crosses above zero while rate of change is positive, and short when momentum crosses below zero while rate of change is

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of Momentum ROC Combo

DEPV2 DEBUG S25

by YuceSezar89
1 stars

The script is a multi-symbol crypto indicator that computes trading signals across twenty major pairs including BTCUSDT, ETHUSDT and others. It evaluates four core methods for signals: trend based on price levels, momentum using rate of change, volatility via

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

E3 F2 Cluster Signals

by nishpa800
1 stars

Overlay indicator that extracts six signal types from a larger signal study: cluster, E3 and First Two momentum-bar patterns, each in a bullish and bearish version, plus combined any-bull and any-bear markers. Visibility, alert switches and marker colours are

Indicator v5 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of E3 F2 Cluster Signals

A Pine Script v5 indicator in a separate pane, version A3.0 of a Hurst spectral oscillator. It fetches a selectable source, hl2 by default, with lookahead on and runs it through bandpass filters for cycles from 1 day to 18 years. Bandwidth and period are set f

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator A3.0
1 stars

This indicator calculates regular and hidden divergences across multiple momentum and volume oscillators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW-MACD, CMF, and MFI, as well as an optional external input. It scans for pivot highs and lows using

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combined Indicators Fixed

Flawless Victory Strategy is a mean-reversion overlay that combines Bollinger Bands, RSI, and Money Flow Index (MFI) to identify trade entries and exits. The script provides three preset configuration modes: Version 1 executes signals without target exits, whi

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Flawless Victory Strategy [Alorse]

AAPP

by capissimo
114 stars

This indicator plots an adaptive moving average or scaled RSI divergence line directly on the price chart. It calculates dual RSI series to measure momentum divergence, scales the values to the chart's price range, and constructs an adaptive average filtered b

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of AAPP
106 stars

Calculates a momentum squeeze using Bollinger Bands and Keltner Channels alongside a trend-filtering moving average. It generates long and short entries based on squeeze momentum bar conditions and an optional pre-squeeze dot count filter. Exits can trigger on

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Athena Momentum Squeeze - Autoview
99 stars

This indicator calculates the Commodity Channel Index in a separate pane. It forms typical price from high, low, and close, tracks a simple moving average with a circular buffer, and divides the price deviation by a scaled mean absolute deviation. The Length i

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Commodity Channel Index (CCI)

The HT_SINE indicator calculates the Hilbert Transform SineWave and LeadSine components based on the dominant cycle of a selected price source. Using in-phase and quadrature signal processing along with a custom atan2 implementation, it measures the phase of t

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_SINE: Hilbert Transform - SineWave

This indicator evaluates how price relates to one selected moving-average family rather than treating a crossover as a signal. It scores trend quality, historical respect of the average, extension, compression, acceleration, and exhaustion, then plots a relati

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Market–Average Relationship Engine [WavesUnchained]

This overlay strategy enters long when regular or hidden bullish RSI divergence forms between price lows and RSI pivot lows. A regular signal needs a lower price low with a higher RSI low, and a hidden signal needs a higher price low with a lower RSI low, both

Strategy v4 Oscillators & momentumDivergence
Updated 3 years ago · Apache-2.0 GitHub repository of RSI Divergence Long Strategy (Not Good)

Stoch RSI [trugurpala]

by trugurpala
4 stars

Calculates and plots the Stochastic RSI oscillator in a separate pane using customizable RSI, Stochastic, and SMA smoothing lengths for %K and %D lines. It generates bullish crossover signals when %K crosses above %D in oversold territory below 20, and bearish

Indicator v6 Oscillators & momentum
Updated 2 months ago · MIT GitHub repository of Stoch RSI [trugurpala]
1 stars

This strategy plots market structure on the price chart from confirmed swing highs and lows and flags breaks of those levels. Breaks can use the wick or the close, and structure logic can stay standard or include sweeps. ChoCH mode selects Ping, Verify, or bot

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of CHOCH-Strategy (Structure Only)

MTF Array Stats

by pineforge-4pass
1 stars

MTF Array Stats is a multi-timeframe strategy created as an engine validation probe. It collects daily close prices into a rolling 20-element array buffer. Using array functions, it calculates the median and percentile rank of the latest daily close relative t

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of MTF Array Stats

DEPV2 DEBUG S26

by YuceSezar89
1 stars

This indicator generates trading signals for multiple cryptocurrency symbols using four methods: trend, momentum, volatility, and volume. It supports three signal modes - single method, simultaneous confirmation requiring a minimum number of agreeing methods,

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

A Pine Script v5 indicator in a separate pane, version A4.0 of a Hurst spectral oscillator. The hl2 source, changeable in the settings, is requested with lookahead on and filtered with bandpass filters covering cycles from 1 day to 18 years. Each cycle can be

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator A4.0
1 stars

This indicator scans multiple technical indicators—including MACD, RSI, Stochastic, CCI, Momentum, OBV, VWMA, CMF, and MFI—to detect regular and hidden divergences against price pivot points. It overlays divergence lines and labels directly on the price chart

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Divergence for Many Indicators yzz
1 stars

A long-only Pine v4 strategy built on a 12/26 MACD with a nine-period signal line. It enters on a green candle when the MACD has risen for three consecutive bars while still below zero and above its signal line. It closes when the opposite falling-MACD conditi

Strategy v4 Oscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of RPLWETH Uniswap MACD Strategy

Money Flow Index

by everget
947 stars

Calculates the standard Money Flow Index (MFI) oscillator alongside an exponential moving average signal line in a separate pane. The script visually highlights trend conditions through dynamic ribbon filling, optional difference histogram bars, and overbought

Indicator v4 Oscillators & momentumVolume
Updated 12 days ago · GPL-3.0 GitHub repository of Money Flow Index
330 stars

Heikin Ashi Strategy V2 [Alorse] is a trend-following strategy that generates trading signals using multi-timeframe Heikin Ashi moving average crossovers. It calculates a fast and slow exponential moving average from higher-timeframe Heikin Ashi close data and

Strategy v4 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of Heikin Ashi Strategy V2 [Alorse]

RSI Basic Template

by TradersPost
228 stars

This indicator plots a classic Relative Strength Index in a separate pane. It calculates RSI from a chosen price source and length, then draws dashed oversold and overbought levels plus a dotted midline at 50. Background shading highlights when RSI is above th

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of RSI Basic Template

AAPP with Alerts

by capissimo
114 stars

This indicator calculates an adaptive moving average filter and relative strength divergence to identify directional shifts directly on the price chart. It signals long entries when the moving average slope turns upward and short entries when it turns downward

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of AAPP with Alerts

Connors RSI (CRSI)

by mihakralj
99 stars

The Connors RSI indicator calculates a composite momentum oscillator as the average of standard RSI on the input source, RSI on directional price streaks, and percent rank of one-bar rate of change. It plots this value in a separate pane below the price chart.

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Connors RSI (CRSI)
16 stars

This strategy implements a trend-following Donchian channel breakout system with momentum-based position sizing. It enters an initial scaled position on a channel breakout to minimize false breakout risk, then adds to the position if RSI confirms directional s

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 47: Momentum Sized

This strategy evaluates the dynamic relationship between price and a chosen moving average across six diagnostic dimensions: trend, respect, extension, compression, acceleration, and exhaustion. It plots a normalized relationship oscillator bounded between -10

Strategy v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Market–Average Relationship Engine [WavesUnchained]
4 stars

This strategy executes trades based on Stochastic Oscillator crossovers combined with a trend filter and ATR-based risk management. It calculates smoothed %K and %D lines alongside an Exponential Moving Average (EMA). A long signal triggers when %K crosses abo

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of Stoch Strategy [trugurpala]
3 stars

Calculates buy and sell volume pressure alongside the Awesome Oscillator to scan for market divergence opportunities. It initiates long and short strategy entries when divergence signals meet conditions, optionally filtered by New York trading session hours an

Strategy v5 DivergenceVolume
Updated 5 months ago · None stated GitHub repository of Divergence Scanner

Super Algo Setup [Aura]

by IAMATOMIC001
3 stars

This overlay indicator combines SuperTrend, RSI, MACD, and an EMA to mark labeled tops and bottoms on the price chart. Optional filters hide repeating signals and keep only relevant exits, and a Krypton fear-and-greed filter can limit bottoms and tops to overs

Indicator v5 Oscillators & momentumMoving averages
Updated 12 months ago · None stated GitHub repository of Super Algo Setup [Aura]

VWMA_WF_cross

by avatar-lavventura
2 stars

Calculates a 24-period Volume-Weighted Moving Average (VWMA) and RSI divergence using 60-minute timeframe data, accompanied by percentage-based envelope bands and Williams Fractal logic. The indicator plots the VWMA line alongside customizable upper and lower

Indicator v4 Moving averagesVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of VWMA_WF_cross

DEPV2 DEBUG S27

by YuceSezar89
1 stars

DEPV2 DEBUG S27 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It classifies market behavior into four analytical dimensions: trend, momentum, volatility, and volume. The script supports multi

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

A Pine Script v5 indicator in a separate pane, the second revision of a Hurst spectral oscillator. It passes the hl2 price through bandpass filters for cycles from 1 day upward and draws the cycle waves with a composite line. A single bandwidth value applies t

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator V2
1 stars

This indicator identifies regular and hidden divergences across up to ten technical oscillators simultaneously, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VW-MACD, CMF, MFI, and an external source. It plots divergence lines and text labels directly o

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Divergence for Many Indicators yzz

RSI Please!

by tseitz
1 stars

A Pine v4 strategy that plots a 66-period weighted moving average and combines a 12/26 MACD, a 14-period RSI, candle sizes and rolling highs and lows over a long lookback. Inputs set take-profit and stop-loss percentages for each side, the long lookback and th

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 4 years ago · None stated GitHub repository of RSI Please!
330 stars

This momentum strategy combines the Moving Average Convergence Divergence and Directional Movement Index indicators to generate long trading signals. It enters a long position when the MACD line crosses above its signal line while positive directional movement

Strategy v4 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of MACD + DMI [Alorse]

RSI Divergence Scanner

by TradersPost
228 stars

The RSI Divergence Scanner calculates the Relative Strength Index and identifies regular and hidden bullish or bearish divergences against price using pivot high and low points. It plots divergence lines and customizable labels directly on the price chart. Inp

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of RSI Divergence Scanner

Aggregate Signal

by capissimo
114 stars

This indicator builds an aggregate oscillator in a separate pane. It scales open, high, low, close, and volume into a 0 to 1 range, then averages scaled readings from MACD, a MACD histogram, RSI, stochastic, CCI, momentum, OBV, a directional index, volume-weig

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Aggregate Signal

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