Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 43)

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

Hurst Peak Marker

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane that runs a bank of Hurst bandpass filters, from 1 day to 18 year cycles, over the hl2 price and marks cycle peaks with labels and lines. Auto or manual modes control cycle selection, peak selection, composite line

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

Net Position

by zhuzp98
1 stars

This indicator plots aggregated net long and short positions from selected crypto perpetual markets in a separate pane. It can show net longs, shorts, delta, and ratio as candles, a line, or columns, and it can switch to a position RSI view. Users choose Binan

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Net Position
1 stars

A Pine v4 strategy that goes long when a MACD bottoming pattern or an RSI bottoming pattern below 30 appears while price trades under a VWAP band set half a percent below the close. It can add to longs on further RSI bottoms up to a maximum, reopen longs, and

Strategy v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of MACD Please (RSI Bottoms)
330 stars

This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria

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

Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Analysis Suite
114 stars

This indicator identifies standard deviation breakout signals by comparing standard deviation against its simple moving average. A long signal triggers when standard deviation crosses above its moving average during a bullish candle, while a short signal occur

Indicator v4 Volatility & bandsBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Stdev Breakout Strategy

ALMA/EMA Strategy

by hasnocool
106 stars

This strategy executes trades based on Exponential Moving Average (EMA) crossovers filtered by an Arnaud Legoux Moving Average (ALMA) baseline. It enters long positions when the moving averages cross while price remains above the ALMA, and enters short positio

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of ALMA/EMA Strategy

Fisher04 is an oscillator that implements John Ehlers' 2004 Fisher transform from Cybernetic Analysis. It normalizes the midpoint of high and low against the highest and lowest values over the length input, then applies a recursive smoothing step and clamps th

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Fisher04 - Ehlers 2004 Cybernetic Analysis
16 stars

This trend-following strategy identifies breakout entries using Donchian channels and plots signals directly on the price chart. It executes long and short trades, adding fractional units when relative strength index values confirm momentum. Exits rely on aver

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 38: Triple Combo

VuManChu B Divergences

by jerryinyang
5 stars

VuManChu B Divergences is a momentum indicator that plots WaveTrend oscillator values and an MFI area in a separate pane. It calculates signals for long entries on bullish crosses below zero levels and short entries on bearish crosses above zero levels. The sc

Indicator v4 Oscillators & momentumSupport & resistance
Updated 2 years ago · None stated GitHub repository of VuManChu B Divergences

The MACD + Support / Resistance Short Strategy is a Pine Script v4 strategy that generates short signals on the price chart. It plots the 100-period EMA as a trend filter, the MACD line and histogram, and pivot highs and lows as support and resistance levels.

Strategy v4 Oscillators & momentumTrend
Updated 3 years ago · Apache-2.0 GitHub repository of MACD + Support / Resistance Short Strategy

RSI Divergence

by avatar-lavventura
2 stars

The RSI Divergence indicator calculates the difference between a fast and a slow Relative Strength Index. It plots this divergence value as a colored line in a separate pane, shifting to lime green above zero and red below zero. The primary settings control th

Indicator v4 DivergenceOscillators & momentum
Updated 7 months ago · None stated GitHub repository of RSI Divergence

DEPV2 DEBUG S17

by YuceSezar89
1 stars

DEPV2 DEBUG S17 is a debug indicator for a multi-method crypto trading signal tool. It supports 20 major cryptocurrency symbols from Binance such as BTCUSDT, ETHUSDT, SOLUSDT, and others. Four signal classes are available: TREND based on price levels, MOMENTUM

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

Hurst Peak Marker V2

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the second revision of a Hurst cycle peak marker. It passes the hl2 price through bandpass filters for cycles from 1 day to 18 years and draws labels and lines at cycle peaks. Each cycle has its own bandwidth and

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

Neural Network

by zhuzp98
1 stars

A strategy that scores many indicators and trades when the total reaches a set threshold. Inputs weight an EMA trend, SuperTrend, Parabolic SAR, Hull average, RSI, MACD, WaveTrend, Stochastic, Bollinger and ATR signals, including divergences. Separate strong a

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Neural Network
1 stars

A Pine v4 strategy that builds a MACD from simple moving averages of 12 and 26 bars with a nine-bar signal, alongside a 14-period RSI. It plots the volume-weighted average price in blue and the 30-bar highest and lowest closes as green and red lines on the pri

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

This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels

AlphaTrend

by hasnocool
106 stars

AlphaTrend calculates a trailing trendline using ATR bands combined with momentum or volume filters (MFI by default, or RSI when volume data is disabled). It plots the AlphaTrend line alongside a two-bar delayed reference line directly on the price chart. The

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

The Chande Forecast Oscillator plots the percentage difference between the selected source and a linear-regression forecast of that source. It fits slope and intercept over the chosen period using incremental sums, then expresses the forecast error as a percen

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chande Forecast Oscillator (CFO)

VuManChu B Divergences

by jerryinyang
5 stars

The VuManChu B Divergences indicator combines a WaveTrend oscillator with a Money Flow Index calculation to analyze market momentum and volume flow. It plots dual WaveTrend curves alongside overbought and oversold levels in a separate indicator pane, highlight

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of VuManChu B Divergences

MTF EMA + MACD

by krosenfeld7
5 stars

This indicator plots two multi-timeframe exponential moving averages on the price chart and calculates a MACD from the chart source. It marks Long when the shorter-timeframe EMA is above the longer one and a counted sequence of MACD and signal crosses reaches

Indicator v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of MTF EMA + MACD
4 stars

This strategy calculates fast and slow exponential moving averages, the Relative Strength Index, and the Average True Range directly on the price chart. It enters long positions when the fast EMA crosses above the slow EMA with RSI above the minimum threshold

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of NQ Nasdaq Strategy [trugurpala]

RSI Divergence

by avatar-lavventura
2 stars

This indicator calculates the difference between two Relative Strength Index oscillators with fast and slow periods. It plots this spread as a two-color line alongside a zero line in a separate pane. The plot turns lime when positive and red when negative. Sig

Indicator v4 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of RSI Divergence

An indicator that converts RSI, MACD histogram, Bollinger position, ATR, Stochastic, OBV change, ADX and VWAP deviation into z-scores, combines them with adjustable weights into one composite score, and smooths it with a Kalman filter. Buy and sell labels appe

Indicator v5 Oscillators & momentumAI / machine learning

MACD Histogram Reversal

by pineforge-4pass
1 stars

A strategy based on MACD with adjustable fast, slow and signal lengths and a selectable source. Despite its name, entries come from the MACD line crossing the signal line: long on a cross up, short on a cross down, reversing the position. The histogram, MACD l

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

DEPV2 DEBUG S18

by YuceSezar89
1 stars

This Pine Script indicator scans multiple Binance cryptocurrency symbols including BTCUSDT, ETHUSDT, and others. It computes signals across four method classes: trend, momentum, volatility, and volume. Different signal modes include single-method, simultaneous

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

A momentum consensus indicator drawn on the price chart. It scores RSI, rate of change, MACD, Bollinger position, MFI and smoothed OBV against a percentile lookback and issues buy and sell signals when the consensus passes a threshold, 0.618 by default. Option

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Adaptive Momentum Classifier

Hurst Peak Marker V3

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the third revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle peaks form. Per-cycle bandwidth and period i

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

RSI Divergence Detector

by knectardev
1 stars

The RSI Divergence Detector identifies regular and hidden divergences between price movement and the Relative Strength Index (RSI). It calculates price and RSI pivot highs and lows over a customizable lookback window to detect bullish and bearish setups. Upon

Indicator v5 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of RSI Divergence Detector

Combination by Yzz

by webcrack4
1 stars

This indicator merges multiple momentum oscillators including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW MACD, Chaikin Money Flow and Money Flow Index into one chart. It scans for regular and hidden divergences between the chosen indicators to signal potent

Indicator v4 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of Combination by Yzz

Williams Inducator

by JohnsonHsiao
1 stars

Williams Inducator calculates a basic Williams %R style momentum oscillator over a configurable lookback period. It determines the highest high and lowest low across the specified bars, measures the position of the closing price within that range, and scales t

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

MACD Please 3

by tseitz
1 stars

A Pine v4 strategy that draws VWAP and green and red lines for rolling highs and lows over two and five bars. It watches for price breaking those extremes together with MACD and RSI bottoming patterns, and keeps counters of highs and lows. Inputs set the lookb

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of MACD Please 3
228 stars

This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe RSI with Divergence
106 stars

This strategy plots an AlphaTrend line on the price chart and trades crossovers against the same line two bars earlier. It builds the line from a smoothed true-range band and either Money Flow Index or RSI, depending on the no-volume setting. A crossover opens

Strategy v5 TrendVolatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of AlphaTrend For ProfitView

This indicator plots a 20-period RSI in a separate pane and watches whether it crosses the 50 level. A long condition is true when RSI crosses above 50 and Detect Longs is enabled; a short condition is true when RSI crosses below 50 and Detect Shorts is enable

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of alertcondition() on multiple conditions

Detrended Price Oscillator

by TWODS-CAPITAL
37 stars

This indicator calculates the Detrended Price Oscillator to identify short-term cycles by removing long-term trends from price. It compares price data against a simple moving average defined by the user-selected length. Traders can toggle a centered mode that

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Detrended Price Oscillator
16 stars

This strategy trades Donchian breakouts on the price chart and tries to avoid choppy conditions. It can enter long or short when price breaks the entry channel and optional ADX, efficiency-ratio, and trend-strength filters pass. It exits on the shorter Donchia

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 3: Anti-Chop Filter

Market Exhaustion combines the Money Flow Index (MFI) and Stochastic RSI to pinpoint overbought and oversold conditions. It offers customizable oscillator modes including MFI, Commodity Channel Index (CCI), or a composite blend. The indicator calculates standa

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Market Exhaustion [WavesUnchained]

This indicator treats price action, RSI, or moving average relationships as binary Bernoulli trials to estimate trend probability and Shannon entropy over a rolling sample window. It calculates the proportion of bullish outcomes and measures market uncertainty

Indicator v6 Oscillators & momentumTrend
5 stars

MTF EMA + MACD Long Strategy is a trend-following long-only strategy that combines higher-timeframe Exponential Moving Averages with MACD crossovers. It calculates two multi-timeframe EMAs to establish overall trend direction and uses MACD crossovers to genera

Strategy v4 TrendOscillators & momentum Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of MTF EMA + MACD Long Strategy
4 stars

This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of NQ VWAP Reversion [trugurpala]
3 stars

This indicator calculates and plots the NYSE Cumulative Tick Index as colored candles in a separate pane, with green indicating upward tick trends and red downward trends. Overbought and oversold zones are marked using smoothed averages of high and low tick va

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of CSW Tick Internals

RSI Divergence LONG

by avatar-lavventura
2 stars

This strategy calculates the difference between a fast RSI and a slow RSI to generate long trades. Within a configurable backtest date window, it enters a long position when the fast RSI equals or exceeds the slow RSI. It closes the position when the fast RSI

Strategy v4 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of RSI Divergence LONG

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