Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 26)

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

3 stars

This Pine Script v5 indicator overlays RSI, MACD line, signal line, and histogram on the price chart. It also plots a custom composite indicator derived from normalized RSI and MACD values. Buy and sell signals trigger when RSI crosses oversold/overbought leve

Indicator v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of Interactive Debugging Demo

Stella's MACD + RSI Combo

by stella-entry
3 stars

Stella's MACD + RSI Combo plots both the Moving Average Convergence Divergence oscillator and the Relative Strength Index in a separate chart pane. It evaluates momentum by comparing the MACD line against its signal line alongside RSI overbought and oversold t

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Stella's MACD + RSI Combo

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of major currencies including EUR, USD, JPY, GBP, CHF, AUD and CAD on a separate pane. It calculates values from price or oscillator sources such as RSI, CCI or Stochastics then smooths the result. Users choo

Indicator v5 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

TQQQ TSI Divergence

by yalili8521
2 stars

This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en

Strategy v6 Oscillators & momentumDivergence
Updated 9 days ago · None stated GitHub repository of TQQQ TSI Divergence

Oscillator

by TamTH-Dev
2 stars

Oscillator combines WaveTrend calculations, Money Flow Oscillator (MFO), VWAP metrics, and fractal-based divergence detection into a single separate pane indicator. It plots overbought and oversold threshold levels, identifies trend momentum waves, and highlig

Indicator v6 Oscillators & momentumVolume
Updated 6 weeks ago · None stated GitHub repository of Oscillator

MACD

by avatar-lavventura
2 stars

This strategy calculates and plots the traditional Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It enters a long position when the MACD histogram is above zero and closes the long position when the histogram

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

Neural Network

by iceberg211
2 stars

Calculates composite scoring across multiple technical indicators including EMAs, SuperTrend, Parabolic SAR, Hull Moving Average, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. Trading entries trigger on the price chart when cumulative weighted sc

Strategy v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Neural Network
2 stars

This indicator detects trend changes and divergences using a Zigzag tool combined with an oscillator such as RSI or external sources. It plots zigzag lines on the price chart to mark potential trend reversals and identifies regular and hidden divergences. The

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MIT GitHub repository of Zigzag Trend/Divergence Detector

Oleg Aryukov Strategy

by kanylbullen
1 stars

This strategy combines multiple technical indicators into a unified trading system, including RSI, Williams %R, TSI, KDJ, Bollinger Bands %B, Nadaraya-Watson filter, and an RCI Ribbon. Traders can individually toggle each indicator module on or off while custo

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of Oleg Aryukov Strategy
1 stars

The script calculates a weighted average of Heikin Ashi score values across four multi-timeframe periods derived from the signal timeframe. It also counts bullish and bearish signals from each timeframe and checks whether the required number of confirming sign

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 A7 · MTF GÜÇ + TF ONAYI

XAU Scalp v2

by mrme000m
1 stars

XAU Scalp v2 is an indicator that calculates a composite trading score using multiple components for XAUUSD gold. It stacks four EMAs to determine trend direction and strength, overlays SuperTrend signals derived from ATR(10), adds RSI(14) momentum, detects Bo

Indicator v5 ScalpingMoving averages
Updated 7 weeks ago · None stated GitHub repository of XAU Scalp v2
1 stars

This strategy executes mean-reversion trades using the Relative Strength Index combined with Bollinger Band boundary audits. It enters long when the RSI crosses above the oversold threshold while the bar low touches or breaches the lower Bollinger Band. Conver

Strategy v6 Mean reversionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of RSI Mean Reversion Sovereign v6

Manchu Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that shades a trading session window on the price chart, defaulting to a Chicago time zone morning session with weekday toggles. It adds a Donchian channel based trend fill, an optional 100 line, and a WaveTrend oscillator with buy, gold, sell and

Indicator v5 Sessions & timeOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Manchu Strategy Indicator

A/D Context v20.9

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that measures accumulation and distribution flow with Williams or Chaikin A/D, a smoothing EMA, Chaikin Money Flow and ATR. It marks divergences between price and flow pivots and draws a line that closes with an end marke

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.9

Fear and Greed Indicator

by rubbermetal
1 stars

Fear and Greed Indicator combines five proxies into one 0 to 100 sentiment score in a separate pane: RSI with rate of change, inverted ATR, a market index read from a daily request, price position within Bollinger Bands, and distance from the recent high. Each

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 months ago · MPL-2.0 GitHub repository of Fear and Greed Indicator

Supertrend Enhanced

by haydarkadioglu
1 stars

Supertrend Enhanced plots a classic ATR Supertrend on the price chart and marks trend flips as buy and sell signals. It builds upper and lower bands from an ATR or a simple moving average of true range, then flips direction when price crosses the opposite band

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Supertrend Enhanced

RSI Divergence Detector

by knectardev
1 stars

This indicator calculates the RSI and detects regular and hidden divergences between price and RSI pivots. It plots the RSI on the price chart overlay and marks bullish regular, bearish regular, bullish hidden and bearish hidden divergences with labels. Horizo

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

This strategy plots the Relative Strength Index in a separate pane and fades extremes. It opens a long when RSI crosses back above the oversold level and a short when RSI crosses back below the overbought level. Open trades exit at a percentage stop loss or ta

Strategy v5 Oscillators & momentumMean reversion
Updated 11 months ago · None stated GitHub repository of RSI Mean Reversion Strategy

RSI Divergences

by feliperazeek
1 stars

This indicator finds regular and hidden divergences between price and a 14-period RSI, together with a stochastic of the RSI, and draws divergence lines and labels on the price chart. A margin setting from zero to two controls how large a divergence it accepts

Indicator v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI Divergences

Slow Stochastic Strategy

by Studentcodee
1 stars

A Pine v6 strategy built on a slow stochastic oscillator and drawn on the price chart. The %K line is the stochastic smoothed by a three-bar average, and %D is a further three-bar average. It enters long when %K crosses above %D while %K is below the oversold

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

This strategy trades stochastic crossovers in extreme zones. It enters long when %K crosses above %D with both below the oversold level, and short when %K crosses below %D with both above the overbought level. Each entry carries an ATR-based stop loss and take

Strategy v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of Stochastic Oscillator Strategy
1 stars

A separate-pane oscillator based on market structure ranges at three scales: short, intermediate and long. Each scale has a weight input, and the combined value is smoothed and shown as a gradient or a cycle histogram. Optional structure lines and tags for eac

Indicator v5 SMC / ICT / price actionOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Market Structure Oscillator
1 stars

A price-chart overlay that measures how fast an exponential moving average is turning. It takes the bar-to-bar change of a 20-bar EMA as its slope and the change in that slope as acceleration. When both exceed adjustable thresholds in the same direction, it ti

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Slope Acceleration

This indicator calculates the Relative Strength Index (RSI) applied to various volume-weighted indicators, including Accumulation/Distribution, Elder's Force Index, Money Flow Index, On Balance Volume, and Price Volume Trend. The resulting volume-RSI values ar

Indicator v4 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of Relative Strength of Volume Indicators by DGT

This strategy detects divergence strength across multiple indicators including RSI and MACD on the price chart. It evaluates regular and hidden divergences using user-defined weights for price and indicator changes along with lookback parameters for pivots and

Strategy v5 DivergenceOscillators & momentum
Updated 2 years ago · MPL-2.0 GitHub repository of Strength of Divergence Across Multiple Indicators on Tradingboat

RSI Failure Swings

by krosenfeld7
1 stars

This indicator detects RSI failure swing patterns and projects corresponding support, resistance, and swing levels onto the chart. It calculates a standard Relative Strength Index across a configurable lookback window to identify pivot highs and lows, drawing

Indicator v4 Oscillators & momentumSupport & resistance
Updated 3 years ago · Apache-2.0 GitHub repository of RSI Failure Swings

RSI Oscillator (Hotch)

by rajatjpatel
1 stars

A separate-pane trend oscillator built from two smoothed moving averages, 21 and 315 bars by default. Each average is passed through a weighted filter and then an RSI, and the result is scaled to a range of roughly 0 to 200. Two lines are drawn with dynamic gr

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of RSI Oscillator (Hotch)

Modified ADX

by hayashi19
1 stars

This indicator computes the standard ADX from directional movement, subtracts twenty so that zero becomes the usual trend-strength threshold, and draws the result as columns in a separate pane. Positive columns are green, brighter when rising, and negative col

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Modified ADX
1 stars

The RSI-ADI-Combo indicator combines Relative Strength Index (RSI), Money Flow Index (MFI), and Average Directional Index (ADX) into a single separate pane visualizer. It plots RSI and MFI line graphs along with a color-coded ADX column histogram that highligh

Indicator v4 Oscillators & momentumVolume
Updated 6 years ago · GPL-3.0 GitHub repository of RSI-ADI-Combo [Numchuck]
99 stars

Calculates Vitali Apirine's Slow Relative Strength Index (SRSI), which measures price changes relative to an Exponential Moving Average rather than the previous bar close. It computes the distance between the source price and its EMA, then applies Wilder's smo

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Apirine Slow RSI (SRSI)

CCI Line Gradient

by be-thomas
65 stars

Calculates the Commodity Channel Index (CCI) and plots it in a separate pane using dynamic color gradients. The script adjusts the signal line color smoothly across values ranging from -200 to +200. Additionally, it fills the background between the +100 and -1

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of CCI Line Gradient
57 stars

Implements an automated testing framework designed to validate an EMA Ribbon and MACD hybrid strategy. It verifies indicator calculations, trend context filters, signal generation, suppression rules, and cooldown mechanics using custom assertions. Test results

Strategy v6 Moving averagesOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon Test Suite v1.5

KDJ

by dcaoyuan
55 stars

This indicator plots a KDJ oscillator in a separate pane. It calculates a stochastic K value from the close, high, and low over the K period, then smooths it with a simple moving average. The D line is a simple moving average of K, and the J line equals three

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of KDJ
43 stars

This indicator calculates and plots the standard Directional Movement Index (DI+, DI-, and ADX) in an oscillator pane alongside colored horizontal zones representing trend strength stages: weak, medium, strong, and exhaustion. The ADX line dynamically shades b

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Directional Movement Index

IndicatorExample

by nersent
29 stars

This indicator calculates the difference between a slow RSI and a fast RSI based on a selected price source. It plots the resulting oscillator value in a separate pane to display relative momentum changes between the two periods. Users can configure the source

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of IndicatorExample
24 stars

This overlay strategy combines a Cipher B WaveTrend oscillator with two optional moving averages on the price chart. It exposes WaveTrend channel and average lengths, overbought and oversold levels, buy, sell and gold dots, and regular or hidden divergence mar

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · MPL-2.0 GitHub repository of Cipher B + EMAs Strategy

SPY 0DTE Scalper - 5m

by chris-c-thomas
14 stars

This overlay indicator scores up to ten equal-weight conditions on the five-minute chart and marks a signal when the total meets a configurable threshold. It plots a 9/15/21 EMA ribbon with optional cloud fill, session-anchored VWAP and standard-deviation band

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

This indicator generates standardized signal outputs using MACD logic designed to feed into the PineCoders Backtesting-Trading Engine via external inputs. It encodes filter states, entry signals, stop loss levels, and exit triggers into a single numerical seri

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

TD Sequential

by davro
10 stars

This indicator overlays Tom DeMark's TD Sequential methodology on the main price chart. It tracks consecutive price comparisons where current closes are higher or lower than the close four bars ago, incrementing setup counts from one to nine. Upon completing a

Indicator v4 TrendOscillators & momentum
Updated 5 years ago · None stated GitHub repository of TD Sequential

QFA Pro Elite Refined

by JasonTeixeira
9 stars

This indicator plots a smoothed fear index in a separate pane. It measures how far the current low sits below the highest close over a lookback, scales that reading by an ATR percentile, and smooths it with a zero-lag EMA. A volatility regime raises or lowers

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of QFA Pro Elite Refined

RSI Divergence

by muammeryldrm42
7 stars

This strategy detects bullish and bearish RSI divergences using price and RSI pivot points. A bullish divergence triggers a long entry when price forms a lower low while RSI forms a higher low below 40. A bearish divergence triggers a short entry when price fo

Strategy v5 Oscillators & momentumDivergence
Updated 3 months ago · MIT GitHub repository of RSI Divergence

This indicator combines RSI and MFI into a hybrid oscillator scaled to 0-1. It detects divergences by comparing price and MFI slopes from linear regression. The MFI receives extra weight during divergence to amplify the effect. A TMA smooths the hybrid result

Indicator v6 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Hybrid RSI+MFI - Gold Divergence

RSI

by trsdn
6 stars

This indicator calculates the Relative Strength Index along with a 200-period simple moving average. It plots the RSI oscillator line alongside horizontal reference levels for overbought and oversold thresholds in a separate pane below the main price chart. Co

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

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