Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 44)

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

VWAP Reclaim Indicator

by skipp-dev
1 stars

This overlay indicator plots an anchored VWAP and marks reclaim setups on the price chart. It can signal a simple VWAP cross or a reclaim, retest, and breakout of a rolling pullback high or low, filtered by trade direction and optional matching VWAP slope. A p

Indicator v6 TrendVolume Repaints
Updated 4 days ago · None stated GitHub repository of VWAP Reclaim Indicator

MACD Signal Cross

by pineforge-4pass
1 stars

A minimal strategy using MACD with fixed 12, 26 and 9 settings. It enters long when the MACD line crosses above the signal line and short when it crosses below, reversing the position each time. It has no inputs, no stop loss and no take profit. The script is

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of MACD Signal Cross

DEPV2 DEBUG S19

by YuceSezar89
1 stars

This indicator monitors and analyzes up to 20 cryptocurrency pairs across four core analytical dimensions: trend, momentum, volatility, and volume. It generates signals using several selectable modes, including single-factor triggers, simultaneous multi-method

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S19

Hurst Peak Marker V4

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the fourth revision of a Hurst cycle peak marker. It runs the hl2 price through bandpass filters covering cycles from 1 day to 18 years, then draws labels and lines at detected peaks. Each cycle has separate bandw

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V4

Combination by yzz

by webcrack4
1 stars

Combination by yzz is an overlay indicator that scans for regular and hidden divergences across multiple technical oscillators simultaneously, including RSI, MACD, Stochastic, CCI, OBV, CMF, MFI, Momentum, and VW-MACD. It identifies pivot points on price and i

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combination by yzz
1 stars

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI and rolling highs and lows over lookbacks of sixty and two hundred twenty bars. Inputs set take-profit and stop-loss percentages for longs and shorts, and a maximum of four adds. Counters of new highs and

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Long Lookbacks)
114 stars

This script plots pivot-based support and resistance levels on the price chart while generating directional trade labels tagged with RSI values to measure momentum at turning points. It overlays multi-timeframe open and close step lines with background fills t

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Support and Resistance Strategy (v.2)

AlphaTrend Strategy

by hasnocool
106 stars

Calculates the AlphaTrend indicator using ATR combined with the Money Flow Index or RSI, plotting the primary trend line and its two-bar lagged counterpart directly on the price chart. The strategy opens long positions when AlphaTrend crosses above its lagged

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of AlphaTrend Strategy
99 stars

This indicator calculates the Chande Momentum Oscillator (CMO) to evaluate price momentum over a specified lookback period. It computes the difference between unsmoothed sums of positive and negative price changes using an efficient circular buffer implementat

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chande Momentum Oscillator (CMO)
65 stars

This script calculates a 20-period Relative Strength Index (RSI) based on close prices and plots it in a separate pane with a fixed horizontal midline at level 50. It monitors for centerline crossings, displaying upward green triangles at the bottom when RSI c

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Alertcondition() on Single Condition

Directional Movement Index

by TWODS-CAPITAL
37 stars

This indicator plots the Directional Movement Index in a separate pane. It calculates plus directional movement and minus directional movement from changes in highs and lows, smooths them with the DI length, and derives the ADX from the absolute difference of

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Directional Movement Index

Calculates a composite carry and decay oscillator fusing impulse-autocorrelation half-life, a Hurst exponent approximation, path efficiency, and range expansion ratios. It evaluates whether an impulse is likely to persist or mean-revert, plotting the oscillato

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Market Memory & Decay Oscillator [WavesUnchained]
5 stars

This short-only strategy combines multi-timeframe exponential moving averages with MACD crossovers to find bearish trade opportunities. It calculates and plots two higher-timeframe EMAs directly on the price chart while monitoring MACD line crosses and zero-li

Strategy v4 Moving averagesOscillators & momentum Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of MTF EMA + MACD Short Strategy
3 stars

The CSW Ø-Lag Oscillator is a modified MACD indicator designed to reduce lag using zero-lag moving averages and a custom leader calculation. It plots a zero-lag line, a lagging signal line, and a histogram in a separate pane. The oscillator uses three distinct

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of CSW Ø-Lag Oscillator

RoyalPrince Scanner

by IAMATOMIC001
3 stars

This indicator scans multiple symbols using RSI for overbought and oversold levels, TSI for trend strength, ADX for trend direction and strength, and Supertrend for trend reversals. It plots buy and sell signals on the price chart for each enabled symbol based

Indicator v5 Oscillators & momentumTrend
Updated 12 months ago · None stated GitHub repository of RoyalPrince Scanner

Squeeze Momentum Strategy

by avatar-lavventura
2 stars

This strategy adaptation of LazyBear's Squeeze Momentum Indicator combines Bollinger Bands and Keltner Channels to identify periods of market squeeze followed by expansion. It calculates linear regression momentum and plots a color-coded histogram in a separat

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Squeeze Momentum Strategy

Momentum Indicator Strategy

by wynnforthework
2 stars

This trend-following strategy generates long signals by combining the Stochastic Momentum Index (SMI) with a Supertrend filter. It enters a long position when the SMI signal line crosses above an oversold threshold while the Supertrend indicates an uptrend. Po

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Momentum Indicator Strategy

VWAP Reclaim Strategy

by skipp-dev
1 stars

This overlay strategy trades long and short when price reclaims an anchored VWAP and then breaks a recent pullback high or low. Optional modes enter on a simple VWAP cross instead. It filters with VWAP slope, a short price-bias EMA, a stacked RSI bias, and rel

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 days ago · None stated GitHub repository of VWAP Reclaim Strategy

DEPV2 DEBUG S2

by YuceSezar89
1 stars

DEPV2 DEBUG S2 is a multi-symbol indicator that aggregates signals across 20 cryptocurrency pairs using four methods: TREND, MOMENTUM, VOLATILITY and VOLUME. It supports signal modes including simultaneous confidence, sequential and automatic per-asset selecti

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

Hurst Peak Marker V5

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters from 1 day to 18 year cycles and places labels and lines at cycle peaks. Every cycle has its own bandwidth and period

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V5

Combination by Yzz

by webcrack4
1 stars

Combination by Yzz is an overlay indicator that detects regular and hidden divergences across multiple technical oscillators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, and MFI. It locates price pivots and plots divergence lines and labe

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 9 months ago · None stated GitHub repository of Combination by Yzz
1 stars

A Pine v4 strategy combining a 12/26 MACD, a 14-period RSI and rolling highs and lows over lookbacks of twenty and two hundred twenty bars. Inputs set long and short percentage stops, an RSI level for closing longs in a short zone, a short-selling switch and a

Strategy v4 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Percent Stops)

Altered OBV On MACD

by hasnocool
106 stars

This strategy calculates and plots 9, 21, 50, 90, and 200-period Simple Moving Averages on the main price chart. It constructs a modified On-Balance Volume (OBV) metric and calculates a MACD oscillator based on this custom volume series rather than price. Long

Strategy v5 Moving averagesVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Altered OBV On MACD

All alert() calls

by be-thomas
65 stars

This indicator calculates a 20-period RSI of the close and plots it in a separate pane with a horizontal line at 50. It marks an RSI cross above 50 with an up triangle and an RSI cross below 50 with a down triangle. When a cross occurs, it calls alert with a l

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of All alert() calls

Divergence Indicator

by TWODS-CAPITAL
37 stars

The Divergence Indicator plots an RSI oscillator in a separate pane alongside horizontal lines for oversold, overbought, and middle levels. It scans for regular and hidden bullish and bearish divergences by comparing pivot high and low points of price with tho

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 3 years ago · MIT GitHub repository of Divergence Indicator
16 stars

This strategy trades Donchian channel breakouts on the price chart and can take both long and short positions. It sizes the first unit from a risk percentage of price and ATR, then adds smaller units when price advances by an ATR step and RSI is above or below

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 40: ULTIMATE

Market Pressure Scale plots two oscillator curves in a separate pane. Setup pressure combines ATR and Bollinger compression, support and resistance proximity, and drying volume. Impulse pressure combines range expansion, volume, and candle body size. A range-c

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Pressure Scale [WavesUnchained]

RSI + MACD + BB

by krosenfeld7
5 stars

This indicator combines the Relative Strength Index, Moving Average Convergence Divergence, and Bollinger Bands to identify setup signals during market consolidation. A long signal requires an RSI pullback under 50 following overbought conditions, a MACD histo

Indicator v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + MACD + BB
4 stars

This strategy enters long when RSI is above a minimum threshold and price is above a trend EMA, and short when RSI is below a maximum threshold and price is below that EMA. It opens a trade only while flat. Exits place an ATR multiple as the stop and a larger

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of RSI + ATR Strategy [trugurpala]

UABMACD

by avatar-lavventura
2 stars

This strategy combines the WaveTrend oscillator with the Squeeze Momentum indicator. It calculates WT1 and WT2 lines along with their cross signals and color-coded entries on a separate pane. Bollinger Bands and Keltner Channels detect squeeze periods for addi

Strategy v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of UABMACD

DEPV2 DEBUG S20

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols and scores each one with four signal classes: trend, momentum, volatility, and volume. Signal mode can use a single class, require several classes to agree, require them in a set order inside a bar window

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

A squeeze and momentum oscillator in a separate pane. It compares an EMA-based volatility band with an ATR channel to detect squeezes and plots a smoothed momentum histogram colored by strength and direction. Regular and hidden divergence between price and mom

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Adaptive Squeeze Momentum Pro

Lemon Strategy

by GreyssonEnterprises
1 stars

A Pine v4 strategy version of a W and M pattern approach. It looks for reversal shapes in price, OBV and Williams %R, with optional MFI, RSI and directional movement, using a shared maximum width and offset, plus an optional Fibonacci retracement zone over a 2

Strategy v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Lemon Strategy
1 stars

A Pine Script v5 indicator in a separate pane, an alternative build of the fifth Hurst peak marker revision. It applies bandpass filters to the hl2 price for cycles from 1 day to 18 years and labels cycle peaks with lines. Bandwidth and period can be set per c

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V5 Alt

Combination by yzz

by webcrack4
1 stars

This indicator scans price action and multiple technical oscillators to detect regular and hidden divergences, displaying them directly on the price chart. It checks up to ten indicators including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, Chaikin Mone

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combination by yzz

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI and rolling highs and lows over very short lookbacks of two and twenty bars. Inputs set take-profit and stop-loss percentages for longs and shorts of two and ten percent, and up to four adds. Counters of n

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD Please 4 (Short Lookbacks)

Calculates a combination of the Relative Strength Index, MACD histogram, and Bollinger Bands contraction to identify long trade entries. The strategy signals a long position on a bullish bar when the MACD histogram turns upward while negative, RSI remains belo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + MACD + BB Long Strategy (Not Good)
4 stars

The RSI Divergence indicator plots the Relative Strength Index in a separate pane with horizontal lines for overbought at 70, mid at 50, and oversold at 30. It detects bullish divergence when price forms a lower low but RSI forms a higher low, marked by a gree

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of RSI Divergence [trugurpala]

SAB PRO Pivot Master

by IAMATOMIC001
3 stars

SAB PRO Pivot Master is a price-chart overlay that builds an RSX-style oscillator from a chosen source and length, then compares price extremes with that oscillator over a lookback window to mark pivots and bullish or bearish divergence. Overbought and oversol

Indicator v5 Oscillators & momentumVolatility & bands
Updated 12 months ago · None stated GitHub repository of SAB PRO Pivot Master

Uabmacd

by avatar-lavventura
2 stars

The script plots a WaveTrend oscillator in a separate pane, calculating TCI as an EMA of a normalized price deviation and its 4-bar SMA. It displays overbought and oversold levels with colored circles for WT1-WT2 crossovers and bar coloring on crossover bars.

Indicator v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Uabmacd

Map Regime Tracker

by pineforge-4pass
1 stars

The Map Regime Tracker strategy evaluates market structure using a 20-period exponential moving average and a 50-period simple moving average. It stores regime thresholds inside a map object initialized on the first bar. When the fast EMA is above the slow SMA

Strategy v6 TrendOscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of Map Regime Tracker

DEPV2 Debug S21

by YuceSezar89
1 stars

DEPV2 Debug S21 is a multi-symbol crypto research and evaluation tool plotted in a separate pane. It monitors up to 20 Binance cryptocurrency perpetual pairs by analyzing price action across four distinct signal engines: trend, momentum, volatility, and volume

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S21

This strategy samples RSI momentum across a customizable list of federated ticker symbols to build a consensus ratio. When the proportion of assets with RSI above 50 meets or exceeds a selected rigor threshold (Loose, Standard, or Sovereign), it enters a long

Strategy v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Federated Consensus Sovereign

Lemon Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal shapes in price, OBV and Williams %R by default, 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 require

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Lemon Strategy Indicator
1 stars

A Pine Script v5 indicator in a separate pane that plots cycle waves from Hurst-style bandpass filters applied to the hl2 price. A single bandwidth setting is shared by all filters, and each cycle has its own period, from 5 days through weeks and months up to

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

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