Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 40)

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

47 stars

This indicator calculates John Ehlers' Sine Wave cycle indicator and plots it in a separate pane. It detrends the chosen input price using a two-pole high-pass filter, smooths the result with a two-pole Super-Smoother filter, and resolves the cycle into in-pha

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Sine Wave (SINE)

This indicator builds a momentum score from the rate of change of close, using a lookback that expands or contracts with ATR relative to its standard deviation. It divides that rate of change by price standard deviation, scales the result, and weights it by vo

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 8 weeks ago · None stated GitHub repository of Adaptive Volatility-Adjusted Momentum Score

Diverlong E002

by ruckard
13 stars

Diverlong E002 is a trading strategy that identifies momentum divergences using state changes in the Squeeze Momentum Indicator. It triggers long and short entries when price action diverges from momentum transition phases. Position exits are determined by Cur

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Diverlong E002
7 stars

This indicator overlays two Bollinger Band sets from two timeframes on the price chart. It centers RSI on zero and classifies the second timeframe as up, sideways, or down. A buy appears when that trend is down or sideways and the first timeframe percent B is

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 months ago · None stated GitHub repository of RSI + BB Signal Alert

MACD Breakout

by jerryinyang
5 stars

This indicator plots a higher-timeframe MACD breakout setup on the price chart and combines it with linear regression channels. It marks support and resistance zones from MACD histogram sensitivity, then filters them with the MACD zero line, a linear regressio

Indicator v4 Oscillators & momentumBreakout
Updated 2 years ago · None stated GitHub repository of MACD Breakout

Simpleton Stepfun

by eltonaguiar
4 stars

This indicator plots signals on the price chart for crypto trading. It computes RSI-2, MACD crossover, Bollinger Band squeeze, volume spikes, Triple EMA alignment and Ichimoku Cloud to produce confluence signals. Each indicator can be toggled with adjustable w

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Simpleton Stepfun

MACD + ATR13

by jash-git
3 stars

This indicator plots a standard MACD oscillator alongside an average true range line in a separate pane. It calculates the MACD line, signal line, and histogram using customizable fast, slow, and smoothing periods. It also computes a 13-period ATR plotted with

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · None stated GitHub repository of MACD + ATR13

Alpy Vix

by avatar-lavventura
2 stars

Alpy Vix is a strategy that calculates and plots the Williams Vix Fix indicator adapted for BIST stocks in a separate pane. It generates entry signals when the Vix Fix crosses upper bands or percentile ranges and meets filtered criteria based on price action s

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

A strategy that builds on the JAT+BSM family: an AlphaTrend style core with MACD, three consolidation layers with volume profile, candlestick and macro pattern drawings, and a kinematic and Bayesian forecast with a feedback learning rate. Inputs include a stra

Strategy v5 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v15 Unified

DEPV2 DEBUG S10

by YuceSezar89
1 stars

Calculates and coordinates trading signals across up to twenty cryptocurrency instruments using four core analytical dimensions: trend, momentum, volatility, and volume. Users can configure signals to trigger from single dimensions, simultaneous multi-factor c

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

True RSI

by vedkanani123
1 stars

A separate-pane oscillator by MisinkoMaster that rebuilds RSI by weighting each bar's gain and loss with Aroon up and down values over the lookback, then scaling to a 0 to 100 line. Trend turns long when the value crosses above a long threshold and short below

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of True RSI

GitLemon Con

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal patterns in price, OBV and Williams %R, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be added as a condi

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of GitLemon Con

Crypto Scanner Climax

by rubbermetal
1 stars

A dashboard indicator in a separate pane that reads many measurements for the chart symbol across several timeframes. Columns cover prices, volume, delta and VWAP, oscillators such as RSI, stochastic, CCI and MFI, a quad rotation stochastic status, trend measu

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Crypto Scanner Climax
1 stars

This strategy overlays price and combines SuperTrend, ADX, OBV, MACD, directional movement, EMA, and a volatility filter to decide long and short entries. Each filter can be switched on or off, and trading starts only after a chosen date. It can close when ena

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Percentile_SuperTrend_OBV&DI&EMA

Momentum Breakout

by knectardev
1 stars

This Pine Script strategy detects momentum breakouts on price charts by combining trend momentum signals with a volume filter. It enters trades when price breaks above resistance with volume 1.5 times average, reducing false signals. No specific stop loss or t

Strategy v5 Oscillators & momentumBreakout
Updated 9 months ago · None stated GitHub repository of Momentum Breakout

V5 Combination by YZZ

by webcrack4
1 stars

This indicator combines multiple script features into a single overlay on the main price chart. It calculates a modified MACD line and signal oscillator with configurable modes including traditional, histogram-based, leader, and source-based variations. The os

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

A Pine v4 oscillator in a separate pane. It computes RSI from Wilder-smoothed gains and losses, then averages it with a simple moving average set by a smoothness input. The line turns green when rising for two bars and red otherwise, with reference lines at 30

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Smoothness Advanced RSI

Relative Sharpe Ratio

by JohnsonHsiao
1 stars

The Relative Sharpe Ratio indicator calculates risk-adjusted return measures over a user-defined lookback window and plots them in a separate pane. It calculates single-period simple returns, sums them over the period, and divides the sum by the return varianc

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Relative Sharpe Ratio

MACD 15 min

by tseitz
1 stars

A Pine v4 strategy that pairs a 12/26 MACD and 14-period RSI with rolling highs and lows over a short and a long lookback. Inputs set both lookbacks, take-profit and stop-loss percentages for longs and shorts, and a maximum number of adds. It tracks counts of

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD 15 min
330 stars

This strategy plots MACD line, signal line, Bollinger Bands, and RSI on the price chart. It signals long entries on MACD crossover above signal with RSI below 50 and price below BB basis, plus optional DMI filter. Short entries are available but disabled by de

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of MACD + BB + RSI [Alorse]

Market Speedometer

by TradersPost
228 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer
106 stars

This indicator plots an adaptive MACD in a separate pane. It builds the MACD from price changes using fast and slow smoothing factors, then scales the recursion with an R-squared term from the correlation of close and bar index over the R2 period. An EMA of th

Indicator v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Adaptive MACD [LuxAlgo]

This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo

Indicator v6 VolumeOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bill Williams Market Facilitation Index

This indicator calculates the Ehlers Trendflex oscillator and plots it in a separate pane. It applies a two-pole SuperSmoother low-pass filter to the chosen source, sums the cumulative slope over the lookback with a running buffer, and divides that slope by an

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Ehlers Trendflex Indicator (TRENDFLEX)
16 stars

This strategy enters long or short on Donchian channel breakouts and can add units when price moves in the trade direction and RSI confirms momentum. It sizes each unit from a risk percent of equity and exits with an ATR initial stop, a chandelier trail that t

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 32: Momentum + Time

Diverlong F002

by ruckard
13 stars

Diverlong F002 is a price-chart strategy that enters on Squeeze Momentum divergences and exits on Curie closing moving-average lines. A short is taken when a light-green to dark-green squeeze section is smaller while price is higher; a long is taken on the opp

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

RSI 3

by suyons
7 stars

This indicator calculates three Relative Strength Index (RSI) oscillators with distinct length settings, defaulting to 14, 28, and 56 periods. It renders the three RSI curves stacked vertically in a separate pane using numerical offsets to prevent line overlap

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RSI 3

MACD Breakout

by jerryinyang
5 stars

MACD Breakout builds a higher-timeframe MACD from preset fast and slow lengths using SMA or EMA, and marks support and resistance zones from histogram sensitivity. Optional filters require zero-line agreement, higher-timeframe direction, and linear-regression

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD Breakout
4 stars

The Simpleton STEPFUN Strategy combines signals from multiple technical indicators including RSI-2, MACD crossover, Bollinger Band squeeze, volume spikes, triple EMA, and Ichimoku cloud. It generates buy signals when the weighted ensemble meets or exceeds the

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Simpleton STEPFUN Strategy

MACD + ATR13

by jash-git
3 stars

This indicator plots a customized Moving Average Convergence Divergence oscillator combined with an Average True Range line in a separate pane. It calculates fast and slow exponential moving averages alongside a simple moving average signal line, highlighting

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · None stated GitHub repository of MACD + ATR13

GainzAlgo V2 [Alpha]

by IAMATOMIC001
3 stars

This indicator detects buy and sell signals on the price chart by combining engulfing candlestick patterns, body-to-range stability ratios, RSI boundaries, and price momentum over ten bars. Confirmed signals trigger visual buy and sell labels directly on candl

Indicator v5 Candlestick patternsOscillators & momentum
Updated 12 months ago · None stated GitHub repository of GainzAlgo V2 [Alpha]

This indicator calculates a multi-period momentum oscillator plotted alongside an Average True Range baseline. It measures momentum across five configurable lookback lengths, weighting each value proportionally by its length so longer horizons exert greater in

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Weighted Multi-Resolution Momentum with Volatility

EzAlgo

by TamTH-Dev
2 stars

EzAlgo is a multi-purpose trading overlay that combines several technical analysis tools into one system. It calculates Ichimoku Cloud components, dynamic support and resistance zones, reversal bands, trend ribbons, and custom buy or sell signals adjusted by s

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of EzAlgo

Banmuxia MACD Divergence

by wynnforthework
2 stars

This strategy calculates a customizable MACD oscillator and histogram using either simple or exponential moving averages. It identifies pivot highs and pivot lows on the MACD histogram to detect momentum divergences against price action. Historical pivot point

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Banmuxia MACD Divergence
1 stars

A trend continuation strategy that filters setups with ADX, rate of change, smoothed balance of power, an ATR expansion band, EMA 20 and 50 alignment and DI alignment. Entries can use pullback and reclaim, breakout or liquidity sweep triggers, with limits on e

Strategy v6 TrendVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of LMSE-Lite Trend Continuation Risk Engine

DEPV2 DEBUG S11

by YuceSezar89
1 stars

This indicator processes signals across multiple cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT, and additional Binance pairs. It evaluates trend, momentum, volatility, and volume methods to generate trading signals. Four signal modes are available

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

GitLemon Trailer

by GreyssonEnterprises
1 stars

An indicator that searches for W and M reversal shapes in price and optionally in OBV, Williams %R, MFI, RSI and directional movement, using one shared maximum width and offset. It can also test whether price sits within a Fibonacci retracement zone of the rec

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of GitLemon Trailer

Trade Worthy

by rubbermetal
1 stars

Trade Worthy is a large multi-tool overlay indicator written in Pine v5. It shows a configurable dashboard of indicator readings, volume information and stats, with Pi moving averages on by default. Many other layers are off by default and can be switched on,

Indicator v5 Screeners & dashboardsMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of Trade Worthy
1 stars

This overlay strategy combines SuperTrend, ADX, OBV, MACD, directional movement, EMA, and a volatility filter to open long or short trades sized as a percent of equity. Each filter and each side can be switched off. Users set EMA lengths, DI length, volatility

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Percentile_SuperTrend_OBV&DI&EMA

Momentum Breakout

by knectardev
1 stars

Momentum Breakout is an overlay strategy that identifies trading opportunities using Bollinger Bands breakout logic. It enters trades when price breaks out of the volatility bands without applying additional volume filtering. Risk management is handled through

Strategy v5 BreakoutVolatility & bands
Updated 9 months ago · None stated GitHub repository of Momentum Breakout

V5 Combination by YZZ

by webcrack4
1 stars

This indicator combines multiple technical tools into a single price chart overlay, designed to optimize space and indicator limits. It features an overlay MACD visualizer with selectable calculation methods (Traditional, AS Histogram, Leader, or Source), cust

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of V5 Combination by YZZ

SMR

by JohnsonHsiao
1 stars

This indicator calculates a triple-smoothed Relative Strength Index oscillator and displays it in a separate pane. It evaluates momentum by applying the RSI calculation iteratively across three stages using a user-defined period. The script plots the resulting

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of SMR

MACD Cross 2

by tseitz
1 stars

A long-biased Pine v4 strategy using a 12/26 MACD with a nine-period signal. It goes long on a green candle after three rising MACD bars below zero with MACD above signal, and short on the falling mirror. A percentage take-profit above the average entry closes

Strategy v4 Oscillators & momentumVolume Repaints
Updated 4 years ago · None stated GitHub repository of MACD Cross 2
330 stars

This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),

Indicator v5 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of MACD + Divergences [Alorse]
114 stars

Polarized Fractal Efficiency plots a custom efficiency oscillator in a separate pane. It compares net price movement over a lag with the path of successive moves, signs the result by recent direction, and smooths it with an exponential moving average. Readings

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Polarized Fractal Efficiency

V5 Concepts Alerts 09

by be-thomas
65 stars

This indicator calculates a 14-period relative strength index and detects when that oscillator crosses above 50. It defines an alert condition whose message includes the current RSI value through a plot placeholder. The RSI series is plotted with display set t

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of V5 Concepts Alerts 09

This indicator calculates an advanced Fisher Transform oscillator in a separate pane, using customizable smoothing algorithms, a signal line, and defined overbought and oversold thresholds. It incorporates a slower trend context line, detects market stall or a

Indicator v6 Oscillators & momentumTrend
Updated 3 days ago · MIT GitHub repository of Fisher Transform Advanced [WavesUnchained]

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