Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 25)

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

RSI Indicator

by haydarkadioglu
1 stars

The RSI Indicator plots the Relative Strength Index on a separate pane to measure momentum. It calculates RSI with a user-defined length (default 14) and displays horizontal lines for oversold (default 40), overbought (default 60), and middle (50) levels. Back

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

RSI Divergence Detector

by knectardev
1 stars

This indicator detects divergences between the RSI oscillator and price action. It calculates the RSI value using a user-defined length and identifies pivot highs and lows on both the price series and the RSI itself. The script plots bull divergences as potent

Indicator v6 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of RSI Divergence Detector

VuManChu B Divergences

by matlaenousse
1 stars

Calculates and plots a multi-oscillator panel inspired by Market Cipher B, combining a WaveTrend oscillator, fast WaveTrend line, Money Flow Index (MFI) area, and RSI. It automatically identifies regular and hidden bullish and bearish divergences, plotting sig

Indicator v4 Oscillators & momentumDivergence
Updated 10 months ago · None stated GitHub repository of VuManChu B Divergences

RSI Divergence Pro

by feliperazeek
1 stars

This strategy detects regular and hidden RSI divergences from pivot points on a 9-period RSI and trades them with labelled markers and stop lines on the price chart. Only long entries on bullish divergences are enabled by default, and shorts can be switched on

Strategy v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of RSI Divergence Pro
1 stars

Kurutoga Screener Timing Fix calculates price divergence from highest-high and lowest-low midpoints across three lookback horizons. By assessing divergence consistency across base, double, and quadruple lengths, it identifies synchronized momentum conditions.

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Kurutoga Screener Timing Fix

RSI Strategy

by Studentcodee
1 stars

A Pine v6 strategy that trades RSI threshold crosses and draws on the price chart. It computes RSI on the close over a length setting. A long entry fires when RSI crosses up through the oversold level, and a short entry fires when RSI crosses down through the

Strategy v6 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of RSI Strategy

Scalping for S50

by lumduan
1 stars

This strategy plots three EMAs (fast length 8, mid 21, slow 55) on the price chart to identify trend direction. It signals long entries in aligned bull trends confirmed by RSI above 50 and bullish MACD during trading hours, entering when price rises above the

Strategy v6 ScalpingTrend
Updated 1 year ago · None stated GitHub repository of Scalping for S50

TOTAL MTPI STRAT M_K

by Mikelkulla
1 stars

This strategy overlays the price chart to determine macro market direction by aggregating signals from an ensemble of up to 26 trend, momentum, and moving-average indicators. It incorporates an Augmented Dickey-Fuller (ADF) market regime filter to detect rangi

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TOTAL MTPI STRAT M_K
1 stars

This strategy looks for a simplified RSI divergence pattern. A long signal needs RSI two bars ago below the oversold level, RSI rising on the next bar and price lower; a short signal mirrors this at the overbought level. Each entry has an ATR-based stop loss a

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI Divergence Strategy

A variant of a large overlay indicator that merges forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI and multi-timeframe panels

Indicator v5 Sessions & timeSMC / ICT / price action
1 stars

This strategy enters long and short trades when MACD histogram state agrees with KDJ filters. Longs need a positive histogram, MACD below zero, and K, D, and J below 30. Shorts need a negative histogram, MACD above zero, and those values above 70. It closes lo

Strategy v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of MACD-KDJ Double Cross Strategy
1 stars

This indicator identifies support and resistance turning points on the price chart using higher-order momentum analysis. It calculates a double-smoothed exponential moving average, derives its first momentum, and detects zero-crossings of its second momentum t

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

A course example strategy with a setting that selects one of three entry rules. The RSI option buys when RSI crosses up through 30 and sells when it crosses down through 70. The MACD option needs a histogram sign and a line cross. The Bollinger option buys bel

Strategy v4 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of My Script Strategy Selector
1 stars

This strategy enters long when a 14-period RSI crosses above 60 and short when it crosses below 40, but only while ADX is under 20. Each trade carries a fixed point-distance stop loss of 75 and take profit of 150 from the average entry price, giving a one to t

Strategy v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Swing Trading Strategy With 1:2 RR

RSI Divergence+

by krosenfeld7
1 stars

This indicator plots the Relative Strength Index (RSI) on the price chart with customizable overbought and oversold bands at 70 and 30. It detects divergences between price highs and lows versus RSI pivots using lookback periods and tolerance settings. The mai

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of RSI Divergence+

Hotch Strat

by rajatjpatel
1 stars

A Pine v5 overlay that detects Williams-style fractals over an adjustable period and filters them by a recent RSI extreme. When a down fractal forms after RSI dipped into the 20s, 30s or 40s over the lookback, an up triangle of a matching shade is drawn below

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of Hotch Strat

RSI Strategy

by juliencrn
1 stars

RSI Strategy is a short Pine v5 strategy built on one RSI line with a long default length of 75. It enters long when RSI crosses above the overbought input and short when RSI crosses below the oversold input, so it follows momentum rather than fading extremes.

Strategy v5 Oscillators & momentum Archived
Updated 4 years ago · None stated GitHub repository of RSI Strategy

RSI-ADI-Combo

by DT021
1 stars

This indicator combines the Average Directional Index (ADX) for trend strength, Money Flow Index (MFI) for volume flow analysis, and Relative Strength Index (RSI) for momentum signals. The ADX is plotted as colored columns with background coloring indicating u

Indicator v4 TrendOscillators & momentum
Updated 6 years ago · GPL-3.0 GitHub repository of RSI-ADI-Combo

CCI line gradient

by be-thomas
65 stars

This indicator calculates the Commodity Channel Index from a user-selected source and length, then plots that oscillator in a separate pane. It colors the CCI line with a gradient that shifts from the bear color toward the bull color as the value moves from ne

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of CCI line gradient

Aroon

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Aroon Up and Aroon Down lines in a separate pane. It tracks the number of bars since the highest high and lowest low occurred over a specified lookback period, expressing the values as percentage levels between

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Aroon

RSI Divergence

by thanhnguyennguyen
33 stars

RSI Divergence combines the Relative Strength Index (RSI) and Money Flow Index (MFI) into a single indicator plotted in a separate pane. It calculates standard RSI from price inputs, highlighting overbought zones in red and oversold zones in green. Simultaneou

Indicator v4 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of RSI Divergence

MFI Divergences

by tistaharahap
25 stars

This indicator plots the Money Flow Index in a separate pane and marks regular and hidden bullish and bearish divergences between price pivots and the oscillator. It builds the index from positive and negative money flow, then finds pivot highs and lows using

Indicator v4 Oscillators & momentumVolume
Updated 6 years ago · None stated GitHub repository of MFI Divergences

Burgle Bounce

by benso87
24 stars

Burgle Bounce is a price-chart strategy that treats a move toward one of up to four simple or exponential moving averages as a test when price comes within a user-set percentage of ATR, then exits toward a target average under a separate error margin. Longs an

Strategy v5 Moving averagesOscillators & momentum Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Burgle Bounce
20 stars

This indicator applies John Ehlers' roofing filter to a chosen price source in a separate pane. A high-pass stage removes cycles longer than the high-pass period, then a fixed super smoother smooths the result and a second high-pass produces a comparison serie

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Zero Mean Roofing Filter

Greeffer RSI Strategy

by SammyEnigma
18 stars

Greeffer RSI Strategy is a trading strategy that generates buy and sell entries based on Bollinger Bands and RSI levels. It places stop orders at upper and lower Bollinger Bands on band crossovers, and adds positions when RSI reaches extreme levels. Users can

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Greeffer RSI Strategy
16 stars

This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co

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

SPY 0DTE Scalper - 1m

by chris-c-thomas
14 stars

This overlay indicator marks CALLS and PUTS labels on the price chart when a strict boolean gate of price structure, momentum, volatility, breadth, and candle confirmation all pass. It plots an EMA ribbon with cloud fill, session-anchored VWAP and standard-dev

Indicator v6 ScalpingMoving averages
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 1m

This indicator builds an external signal series for the PineCoders backtesting and trading engine and plots it in a separate pane. Comments state that a built-in MACD setup is the template. It encodes filter state, long and short entries, exits, and optional s

Indicator v5 Oscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Signal for Backtesting-Trading Engine [PineCoders]

This indicator overlays background and color signals on the price chart based on Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) conditions. It calculates RSI alongside a high-based MACD line and defines timeframe-specific overbo

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · None stated GitHub repository of RSI - MACD Background Indicator

Nexural Transform

by JasonTeixeira
9 stars

Nexural Transform is an oscillator indicator calculated in a separate pane that combines Fisher Transform mechanics with Cumulative Volume Delta momentum. It integrates volume-weighted price transforms, CVD acceleration, and order flow features like absorption

Indicator v6 Oscillators & momentumVolume
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Transform
9 stars

This indicator calculates and plots the Relative Strength Index (RSI) alongside an Exponential Moving Average (EMA) of the RSI in a separate pane. It features a reverse RSI calculator that determines the price required to reach specific RSI targets, such as ov

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · None stated GitHub repository of RSI & EMA with Reverse Calculator Panel

MACD + CMF MTF Signals

by eddiebelaval
7 stars

This indicator calculates Multi-Timeframe Moving Average Convergence Divergence (MACD) and Chaikin Money Flow (CMF) combined in a separate pane. It plots the MACD, signal line, histogram, and an auto-scaled CMF line. Buy markers trigger when a bullish MACD cro

Indicator v6 Oscillators & momentumVolume Repaints
Updated 3 months ago · None stated GitHub repository of MACD + CMF MTF Signals
7 stars

This indicator calculates a customizable weighted blend of the Relative Strength Index and the Money Flow Index in a separate pane. It calculates a smoothed moving average of the hybrid line to show momentum direction, changing the hybrid line brightness when

Indicator v6 Oscillators & momentumVolume
Updated 5 months ago · None stated GitHub repository of Hybrid RSI+MFI + TMA + USDT.D

This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo Momentum Strategy

RSI

by trsdn
6 stars

This indicator calculates standard Relative Strength Index values along with a simple moving average filter. It plots the momentum line in a separate pane alongside customizable dotted horizontal reference lines for overbought and oversold thresholds. Users ca

Indicator v5 Oscillators & momentum
Updated 7 days ago · MIT GitHub repository of RSI

Capital41 Duo

by damianpitt
6 stars

Capital41 Duo overlays RSI and Williams %R on the price chart and flags agreement between them. It paints a dark green background when both are oversold and a red background when both are overbought, otherwise gray. With turn confirmation enabled, those states

Indicator v6 Oscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Duo

Relative Strength Index

by SiegerTerpstra
5 stars

This indicator plots the Relative Strength Index, a momentum oscillator that measures the speed and magnitude of price changes using Wilder's RMA of gains and losses. It draws the oscillator and configurable upper and lower bands in a separate pane, with the l

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Relative Strength Index

Sirius Wavetrend

by jerryinyang
5 stars

Sirius Wavetrend is an oscillator-style indicator that requests higher-timeframe MACD and Wave Trend values and compares them with optional RSI or Stochastic filters. It marks long and short MACD states from histogram color and the MACD sign, with an optional

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Sirius Wavetrend

This indicator combines a 200-period Exponential Moving Average (EMA), a Stochastic RSI oscillator, and three distinct Supertrend lines utilizing different ATR periods and multipliers. It overlays the EMA and Supertrend tracking lines directly onto the price c

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 200 EMA + Stochastic + Triple Supertrend

AG Trend-Pullback

by eltonaguiar
4 stars

This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG Trend-Pullback

MTF MA bands + RSI

by InNoobWeTrust
4 stars

This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of MTF MA bands + RSI

Stochastic Cross

by latentwill
4 stars

This strategy evaluates momentum conditions in a separate pane to trigger long and short positions. Although titled after stochastic crossovers, the code calculates two Relative Strength Index series for trade signals. It enters long when the primary oscillato

Strategy v5 Oscillators & momentumMean reversion
Updated 8 days ago · None stated GitHub repository of Stochastic Cross

KARPUZLU-RSI

by Kalumur
4 stars

Calculates a custom-period Relative Strength Index alongside an Exponential Moving Average of the RSI in a separate pane. It identifies pivot highs and lows directly on the RSI plot to highlight trendlines and potential divergence patterns. The area between th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of KARPUZLU-RSI

MACD Indicator (14,21)

by might-tree
4 stars

This script plots three MACD lines calculated from exponential moving averages on the close price. The first line subtracts the 14-period EMA from the 21-period EMA, the second subtracts the 41-period EMA from the 90-period EMA, and the third subtracts the 90-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MACD Indicator (14,21)
4 stars

This indicator plots overbought and oversold markers on the price chart. It calculates RSI from a chosen source and a smoothed Stochastic %K. A red down triangle labeled OB appears above a bar when both oscillators are at or above their overbought levels. A gr

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of RSI and Stoch (Brahim)

DIP FINDER BIST

by gocaman
3 stars

DIP FINDER BIST is a multi-symbol dashboard indicator designed for the BIST stock market. It scans predefined groups of Turkish stocks across user-selected timeframes to identify potential market bottoms and oversold conditions. The script evaluates multiple t

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 2 days ago · None stated GitHub repository of DIP FINDER BIST

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