Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 55)

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

114 stars

This indicator modifies LazyBear's Squeeze Momentum indicator by scaling momentum values between 0 and 1. It identifies market compression when Bollinger Bands contract inside Keltner Channels, plotting colored dots at the 0.5 baseline to show whether a squeez

Indicator v4 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Squeeze Momentum Indicator Mod

BTC/USD - RSI

by hasnocool
106 stars

This strategy calculates the Relative Strength Index (RSI) to generate mean-reversion signals based on multi-tier overbought and oversold thresholds. When the RSI falls below the oversold levels without an active trade, it enters a long position; conversely, w

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BTC/USD - RSI

The Ehlers SSF Detrended Synthetic Price indicator calculates a detrended price series using dual Super Smooth Filters based on a dominant cycle period. It subtracts a half-cycle super smooth filter from a quarter-cycle super smooth filter to isolate cyclical

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers SSF Detrended Synthetic Price (SSFDSP)
2 stars

The Detrended Rhythm Oscillator combines a Detrended Price Oscillator with ZigZag pivot logic to measure market cycle lengths and dominant swing rhythms. It plots detrended oscillations in a separate pane along with dynamic distance labels between swing highs

Indicator v5 Oscillators & momentumSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Detrended Rhythm Oscillator
99 stars

This indicator plots John Ehlers Super Passband Filter in a separate pane. It builds a wide-band passband oscillator by differencing two z-transformed exponential moving averages that use a smoothing factor of five divided by the period. It also plots the root

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Super Passband Filter (SPBF)

Hidden Relative Strength

by eddiebelaval
7 stars

The Hidden Relative Strength indicator normalizes price changes of a symbol by dividing them by ATR volatility, then subtracts the normalized move of a benchmark symbol such as QQQ to derive raw relative strength. This value is accumulated over time, scaled by

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Hidden Relative Strength

J8 Refactor

by g-moe
3 stars

J8 Refactor is a multi-indicator trading strategy that combines a custom Supertrend, multiple moving average filters, RSI levels, and MACD logic with Bollinger Bands. It executes entries based on multi-condition alignment and offers customizable exits, includi

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 Refactor

My Script

by ricardosantos79
261 stars

This indicator is a Pine Script v4 drawing experiment that stores ten recent price changes and a rounded RSI reading in arrays. It plots those values as circles in a separate pane, using plot offsets to place points horizontally and a gradient function to colo

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of My Script
99 stars

This indicator calculates John Ehlers Trendflex in a separate pane. It pre-filters the chosen source with a two-pole SuperSmoother, sums the difference between the current filtered value and recent filtered values as a cumulative slope, then divides that slope

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Trendflex (TRENDFLEX)

Vein Exhaustion is a price-chart indicator that scores how stretched a directional move is before structure confirms a turn. It builds separate bull and bear scores from consecutive directional bars, EMA distance in ATR units, RSI and MFI extremes, volume-base

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Exhaustion [WavesUnchained]

This indicator combines MACD calculations, Bollinger Bands, and Keltner Channels to identify trend conditions and momentum shifts. It plots colored MACD lines, dot signals, and a squeeze cloud in a separate pane to highlight overbought or oversold momentum lev

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Jerry Buy Sell Indicator Premium
2 stars

Divergence-Support/Resistence combines dual Zigzag pivot detection with momentum oscillators to identify divergence patterns and plot support and resistance levels directly on the price chart. Users can select from various built-in oscillators, such as RSI, CC

Indicator v5 DivergenceSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Divergence-Support/Resistence
1 stars

TN Sovereign Lorentzian v6 is a quantitative strategy that classifies price action regimes using multi-dimensional indicators and causal volume auditing. It generates entry signals based on RSI center-line crossovers, 10-period momentum, and price alignment re

Strategy v6 AI / machine learningTrend
Updated 2 months ago · None stated GitHub repository of TN Sovereign Lorentzian v6

This strategy takes long trades only. It enters when a fast simple moving average crosses above a slower one and either weekly CCI or ADX meets its threshold, depending on the toggles. It closes the long when price falls below a third moving average, and it ca

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Only Strategy with Dynamic Re-Entry and Exit

This indicator plots John Ehlers' truncated bandpass filter beside a standard infinite-impulse-response bandpass in a separate pane. It passes cycles near a chosen center period, with bandwidth setting how wide the passband is and length setting the finite tru

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Truncated Bandpass Filter (TBF)

Vein: Pullback identifies temporary counter-trend retracements and signals when they end versus when structure breaks. It calculates a multi-layer confluence score from 0 to 10 based on trend quality, move weakness, structure preservation, and Fibonacci retrac

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Pullback [WavesUnchained]
3 stars

The Jerry Buy Zone Strategy calculates standard MACD line values and applies Bollinger Bands directly to the MACD line to identify momentum breakouts. Long entries trigger when the MACD line crosses above zero while remaining above the upper Bollinger Band, or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Jerry Buy Zone Strategy
1 stars

This strategy executes trades based on MACD line crossovers filtered by trend direction and histogram slope. Long positions open on bullish MACD crossovers when price is above the trend EMA and histogram momentum is rising. Short positions open on bearish cros

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MACD v6
114 stars

Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Volume Weighted Distance
47 stars

This indicator calculates the Williams Gator Oscillator derived from Bill Williams Alligator lines and plots dual histograms in a separate pane. The upper histogram displays the absolute difference between the Jaw and Teeth moving averages, while the lower his

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Williams Gator Oscillator
9 stars

The script calculates a two-layer reversal scoring system designed to identify potential market turning points. Layer A evaluates momentum, overextension, volume, and candle metrics to establish a setup score, while Layer B confirms structural events such as m

Indicator v6 Oscillators & momentumSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Score 4H

Jerry MACD

by g-moe
3 stars

Jerry MACD is a momentum oscillator indicator displayed in a separate pane. It calculates a standard Moving Average Convergence Divergence line, signal line, and histogram using fast, slow, and signal lengths. The indicator features symbol-specific entry thres

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Jerry MACD

Dynamic Money Flow

by regalouisei
2 stars

This indicator calculates volume-weighted money flow across price action, plotting in a separate pane. It combines close-to-range and close-to-close metrics using dynamic or static weighting. Users can toggle between an index mode smoothed by RMA or a cumulati

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Dynamic Money Flow

This indicator draws support and resistance zones on the price chart from reversal bars that later reach ATR-based targets. Weak and strong labels depend on travel distance, adverse move, and how quickly the target is hit. Nearby same-direction zones merge, a

Indicator v6 Support & resistanceOscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Zones [WavesUnchained]

OBV Signal Confluence

by vedkanani123
1 stars

An On-Balance Volume oscillator in a separate pane. It plots an OBV histogram against a moving average chosen from SMA, RMA, WMA or VWMA and marks regular and hidden divergence from pivots. Optional filters use a higher-timeframe confirmation, ADX and a volume

Indicator v6 VolumeDivergence
Updated 2 months ago · None stated GitHub repository of OBV Signal Confluence

Z-Score

by mihakralj
47 stars

The Z-Score indicator computes the standardized deviation of a source series from its mean and variance over a specified lookback period. It plots the resulting Z-Score values in a separate pane on the chart. Users adjust the period length and select the sourc

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Z-Score

This indicator plots calendar-spread context for commodity futures on the price chart. It maps the chart symbol to front and next month contracts automatically, or uses manual symbols, then calculates the spread as a difference or ratio. Fast and slow EMAs, a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Spread Context [WavesUnchained]
261 stars

This indicator plots the RSI oscillator on the main chart and displays its value distribution in a table positioned at the top right. The script calculates the relative strength index using the input source and length, then plots horizontal lines at 0, 50, and

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables-003 Oscillator Distribution
99 stars

The Ehlers Ultimate Strength Index (USI) calculates a symmetric RSI replacement using the UltimateSmoother filter instead of Wilder's exponential smoothing. It plots the USI value in a separate pane, bounded between -1 and +1, with bullish signals above 0 and

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Strength Index USI
99 stars

This indicator calculates the Ehlers Universal Oscillator by extracting white noise through two-bar price differencing, smoothing the series with a two-pole Super Smoother filter, and normalizing values using automatic gain control peak tracking. It plots a co

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Universal Oscillator (UO)
9 stars

Vein: Trend is a signal aggregator indicator that plots directional markers on the main price chart based on a weighted composite confluence score. It evaluates technical conditions across three layers: momentum setup using RSI, MFI, and Bollinger Bands; confi

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Trend [WavesUnchained]
1 stars

A Pine v4 pane indicator that builds a stack of up to 28 rows of moving average based momentum readings and colors them as a heat map, with greens for positive and reds for negative momentum. The moving average type can be SMA, EMA or WMA, momentum can be smoo

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map
99 stars

This indicator calculates John Ehlers' Voss predictive filter. It first applies a two-pole bandpass to the selected source, then builds a weighted feedback predictor that offsets filter delay by a chosen number of bars. Period sets the primary cycle length, Pr

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Voss Predictive Filter (VOSS)
1 stars

A Pine v4 pane indicator that shows moving average based momentum as a heat map of up to 28 rows, with a second moving average setting and a second slower smoothing for short-term readings. Colors run from green for positive to red for negative momentum, with

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map Plot

Test 009 Stat Mining

by ricardosantos79
261 stars

This statistical analysis tool mines historical relationships between RSI values and candle volatility. It calculates a 14-period RSI from the previous bar and normalizes absolute price change using a 14-period Average True Range (ATR). Based on the normalized

Indicator v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Test 009 Stat Mining

This strategy generates trend-following entries using double-smoothed exponential moving averages, two Commodity Channel Index (CCI) periods, VWAP, and volume filters. Long entries require price to trade above smoothed EMAs and VWAP alongside high volume and b

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI & EMA strategy by Tradeswithashish

Elder Ray Index (ERI)

by mihakralj
99 stars

The Elder Ray Index plots Bull Power and Bear Power values in a separate pane to measure buying and selling pressure. Bull Power is calculated as high minus EMA and Bear Power as low minus EMA, where the EMA uses a period-based smoothing formula with alpha and

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Ray Index (ERI)

Price Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the percentage price oscillator in a separate pane. It divides the difference between a short moving average and a longer moving average by the longer average, then multiplies by 100. Users choose the source, both lengths, and whether the

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Price Oscillator
1 stars

This indicator calculates a smoothed momentum oscillator from price and plots many offset momentum lines in a separate pane as a colour-graded heat map. Moving average type, smoothing periods, the number of plotted lines and the colour theme are adjustable. It

Indicator v4 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map Plot

Test 010 Linearity

by ricardosantos79
261 stars

This experimental script calculates a custom linearity metric using rolling historical close price data stored in a fixed-size array. It computes a weighted sum of price differences relative to the oldest price held in the array buffer. The script plots the re

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Test 010 Linearity
106 stars

This intraday strategy enters positions based on an alignment of trend, momentum, and oscillator indicators. It triggers long entries when the Commodity Channel Index is above a positive threshold, a fast Relative Strength Index crosses above a slow RSI, price

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI + EMA with RSI Cross Strategy

Rate Of Change

by TWODS-CAPITAL
37 stars

This indicator plots the rate of change of a chosen price source in a separate pane. It calculates the percentage difference between the current source value and the value a set number of bars earlier, then draws that series as a line together with a horizonta

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Rate Of Change

Sergdi A002

by ruckard
13 stars

Sergdi A002 is a directional strategy designed for crypto trading. It generates long entry signals when the 4-hour DI+ crosses over the 4-hour DI-, and short entry signals on a cross under. It features configurable risk management options, including fixed perc

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi A002

Wave Navigator is a price-chart indicator that builds zigzag swings from ATR or percentage thresholds and scans stored pivots for Elliott-style impulse, diagonal, flat and triangle patterns. It scores candidates with optional Fibonacci, time-ratio, RSI or MACD

Indicator v6 Support & resistanceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Wave Navigator [WavesUnchained]
3 stars

The Limitless Trading Indicator is an overlay tool that combines multi-timeframe Exponential Moving Averages (13 and 62 EMAs) with Relative Strength Index (RSI) crossovers. It evaluates trend direction on a user-selected higher timeframe and filters entry sign

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Limitless Trading Indicator

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