Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 2)

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

MarketCipher B

by 2b260adc4a7
10 stars

MarketCipher B plots a wave oscillator in a separate pane. It builds two smoothed waves from the typical price, draws their difference as a VWAP-style area, and marks wave crosses with buy and sell dots, including larger dots below a lower threshold. Optional

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketCipher B
10 stars

The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju

Strategy v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of Strategy - Reverse RSI

RSI Divergence

by paulieb89
9 stars

This indicator plots RSI in a separate pane and marks regular divergences between confirmed price pivots and RSI pivots. A bullish signal requires a lower price low, a higher RSI low, and an RSI reading in the oversold zone, within a set bar gap. Bearish detec

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

3D MACD Bar Plot [LuxAlgo]

by MeridianAlgo
9 stars

This indicator projects a three-dimensional surface plot of multiple MACD calculations in a separate indicator pane. It calculates exponential moving averages across ranges of fast and slow periods defined by user-selected minimum, maximum, and step parameters

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of 3D MACD Bar Plot [LuxAlgo]

ADX Trend Strength - Eterna

by EternaHybridExchange
9 stars

Calculates the Average Directional Index (ADX), Directional Movement Index (DMI), and an Exponential Moving Average to trade strong directional momentum. It enters long when the DI+ line crosses above DI- while ADX exceeds a threshold and price is above the EM

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · MIT GitHub repository of ADX Trend Strength - Eterna

DC Hacendado A

by crissrocca
9 stars

DC Hacendado A is an overlay indicator inspired by Market Cipher A and VuManChu Cipher A. It calculates an eight-line exponential moving average ribbon alongside WaveTrend oscillator conditions, Relative Strength Index measurements, and a custom RSI plus Money

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · MPL-2.0 GitHub repository of DC Hacendado A

Calculates the Stochastic Momentum Index (SMI) Ergodic oscillator in a separate pane. Users can choose from nine different moving average types for both the SMI line and signal line calculations, including SMA, EMA, DEMA, TEMA, WMA, SSMA, LSMA, Hull, and ALMA.

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Stochastic Momentum Index (SMI) Ergodic [andre_007]

RePaNoCHa V4

by wocclyl
9 stars

RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si

Indicator v4 TrendOscillators & momentum
Updated 7 years ago · MIT GitHub repository of RePaNoCHa V4

GainzAlgo V2 Alpha

by Bakomebandias
8 stars

This overlay indicator scores breakouts of recent highs and lows against failed-breakout checks, EMA trend alignment, RSI momentum, and an ATR volatility band. It plots green buy and red sell labels when conditions pass a minimum score, and it prints ATR-based

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of GainzAlgo V2 Alpha

RSI Crossover

by cleanmind777
8 stars

This strategy evaluates market trends using triple exponential moving averages, a Stochastic RSI oscillator, MACD, Supertrend, and average true range. It plots two EMAs and Supertrend direction directly on the price chart alongside entry shape markers. Long en

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI Crossover
8 stars

This indicator draws a combined bias in a separate pane, aimed at crypto charts. It colors the alert green, red, or white from a linear-regression value and ADX directional movement, using a sensitivity input that tightens or loosens the ADX threshold and slop

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · GPL-3.0 GitHub repository of Linear Regression ADX Eyachay
7 stars

This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Easy Trendline - XAUUSD 30m

Our MACD Backtesting

by benniebendiksen
7 stars

This Pine Script strategy computes a MACD indicator with customizable fast, slow, and signal EMA lengths applied to close prices. Delta is calculated as the difference between the MACD line and signal line, plotted as an overlay on the price chart. Long entrie

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · MIT GitHub repository of Our MACD Backtesting

ForexAlgo

by Harshil427
7 stars

ForexAlgo generates trade signals directly on the price chart using a primary leading indicator, such as the Range Filter, combined with modular confirmation filters. Traders can toggle multiple technical filters, including exponential moving average crosses,

Indicator v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of ForexAlgo

Combined Strategy

by Dropio12
7 stars

This strategy plots buy and sell markers on the price chart by combining a fast and slow ALMA crossover with a simple close-to-close momentum check. A long marker appears when the fast ALMA crosses above the slow ALMA and momentum is positive. A short marker a

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Combined Strategy

Optimizer v1

by QuantGeekDev
7 stars

This strategy generates long signals on the price chart using multiple technical indicators. It computes EMA 70 and 100, SMA 70, ADX with DMI, CCI, and MACD values. A long entry occurs when EMA crossover condition, SMA condition, ADX above 15, CCI above 30, an

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Optimizer v1
7 stars

This indicator calculates Time Segmented Volume (TSV) to measure volume flows by comparing price and volume changes across periods. Displayed in a separate pane, it plots a color-coded TSV histogram alongside a fast moving average signal line. It adds upper an

Indicator v4 VolumeOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Time Segmented Volume Bands
7 stars

This strategy plots a simple moving average basis and upper and lower Bollinger bands on the price chart, with a fill between the bands. It also calculates RSI. It opens one long trade when RSI is above 25, price is at or below the lower band, and no position

Strategy v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy

Philosopher

by AzureKn1ght
7 stars

Philosopher is an overlay strategy that combines Stochastic momentum calculations, Waddah Attar Explosion volatility signals, and Hull Moving Average baselines to generate trade entries. It utilizes higher-timeframe Hull Moving Averages to evaluate market tren

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MPL-2.0 GitHub repository of Philosopher

C41 Core Strategy v2

by damianpitt
6 stars

This strategy plots an EMA or SMA on the price chart and enters long when price is above the average and both RSI and Williams %R meet the long condition, or short when price is below the average and both oscillators meet the short condition. An optional turn

Strategy v6 TrendOscillators & momentum
Updated 8 weeks ago · MIT GitHub repository of C41 Core Strategy v2
6 stars

This strategy evaluates higher-timeframe four-hour ADX momentum and RSI conditions to generate long trades on lower timeframes like 15 minutes. Entries trigger when 15-minute RSI drops relative to four-hour RSI under specific directional strength conditions. P

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System

MultiPeriodOverBS

by wanjo-tech
6 stars

This strategy calculates volume-weighted Relative Strength Index (RSI) values across multiple timeframes, specifically 15-minute and daily periods. It averages the resulting short- and long-term RSIs into an oscillator to identify extreme overbought and overso

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of MultiPeriodOverBS

All-In-One Oscillator

by ZachLegros
6 stars

This indicator combines multiple momentum and volume metrics into a single separate pane. It calculates a WaveTrend-style stochastic oscillator derived from Heikin Ashi values, a volume-weighted Money Flow Index (MFI) centered at zero, an exponential-smoothed

Indicator v4 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of All-In-One Oscillator

Edge 59

by subos2008
6 stars

This indicator identifies trend-following breakout opportunities by combining directional movement, trend channels, and multi-period price extremes. It calculates an ADX-colored weighted moving average, a linear regression trend filter based on a volatility ch

Indicator v5 TrendBreakout
Updated 2 years ago · Custom licence GitHub repository of Edge 59
6 stars

This indicator aggregates buy and sell signals from four technical tools: Exponential Moving Averages, Bollinger Bands, Fisher Transform, and MACD. It evaluates specific price conditions and crossovers to classify market states into Strong Buy, Weak Buy, Stron

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of 4 Indicator Signal Strategy

AlgoSight Strategy

by ashishanildhage
6 stars

This long-only momentum strategy combines the Relative Strength Index with the Moving Average Convergence Divergence indicator. It opens a long trade when the RSI has been in oversold territory within the last five bars and the MACD line crosses above its sign

Strategy v4 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of AlgoSight Strategy

NowoIchimokuV1

by seannowotny
6 stars

This strategy overlays Ichimoku lines and a cloud on the price chart, plus a stochastic RSI and an upper band from a Hull moving average and standard deviation. It opens one long inside a date window when the cloud is green and price is above the cloud and con

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · None stated GitHub repository of NowoIchimokuV1
6 stars

This indicator combines the Stochastic oscillator, Relative Strength Index (RSI), and MACD to detect aligned momentum signals. A bullish state occurs when Stochastic rises above 20 and stays below 80, RSI is above 50, and the MACD line is above its signal line

Indicator v4 Oscillators & momentumTrend
Updated 5 years ago · None stated GitHub repository of Combined Stochastic & RSI & MACD Signal
5 stars

This strategy calculates a Moving Average Convergence Divergence (MACD) and signal line using 12 and 26-period simple moving averages requested from a fixed 5-minute timeframe. It enters a long position when the MACD line crosses above the signal line while th

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of Broken MACD Strategy

CSI based on RSI, BB and Vol

by chaise-cogent
5 stars

This indicator calculates a custom CSI value using price body ratio, volume score, and range z-score normalized by ATR. It generates bull and bear sentiment signals when CSI, RSI below 60, and Bollinger Band conditions align simultaneously. Bull signals trigge

Indicator v6 Oscillators & momentumVolatility & bands
Updated 7 months ago · MIT GitHub repository of CSI based on RSI, BB and Vol

Chande Momentum Oscillator

by SiegerTerpstra
5 stars

This indicator calculates the Chande Momentum Oscillator by comparing the sum of price gains to the sum of price losses over a defined lookback period. It plots the resulting oscillator line in a separate pane alongside configurable upper, lower, and zero refe

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Chande Momentum Oscillator

Koncord + MACD

by Following-BTC
5 stars

This indicator combines the Koncorde oscillator with a traditional Moving Average Convergence Divergence (MACD) indicator in a separate pane. It calculates Koncorde using a mixture of the Relative Strength Index (RSI), Money Flow Index (MFI), Bollinger Bands o

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of Koncord + MACD

2 EMAs + RSI + Stochastic

by krosenfeld7
5 stars

This indicator overlays trend and momentum signals directly on the price chart. It calculates fifty-period and two-hundred-period exponential moving averages, a fourteen-period Stochastic oscillator smoothed with three-period simple moving averages, and a four

Indicator v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 2 EMAs + RSI + Stochastic

This overlay indicator plots Central Pivot Range levels and bands across yearly, quarterly, monthly, weekly, daily, and six-hour periods. Each timeframe can be shown or hidden, and pivot and band colors are set separately. It also marks MACD momentum and EMA t

Indicator v5 Support & resistanceOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Pivot Boss Multi Timeframe CPR with MACD and EMA

This indicator plots a detrended price oscillator and a random walk index in a separate pane. It subtracts a simple moving average of close from price, either with the average lagged or with price shifted back when the centered option is on. The oscillator lin

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · MIT GitHub repository of Detrended Price Oscillator with Random Walk Index

RSI MACD

by sawantuday
5 stars

This strategy enters long positions based on momentum confirmation from RSI and MACD, operating directly on the main price chart. It buys when the 14-period RSI exceeds 60 while the MACD line trades above the signal line. Positions close when the price crosses

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · CC0-1.0 GitHub repository of RSI MACD

This indicator identifies trend reversal signals on the price chart by combining exponential moving average crossovers with momentum and volatility filters. It calculates fast, slow, and long-term filter EMAs, along with RSI and ATR. A bullish reversal trigger

Indicator v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Advanced Trend Reversal Emoji Indicator
4 stars

This indicator calculates a short-period Relative Strength Index and monitors crosses around a center threshold. It triggers buy signals when the RSI crosses above the level and sell signals when it crosses below. Signal shapes are plotted directly on the main

Indicator v6 Oscillators & momentum
Updated 2 days ago · MIT GitHub repository of OptionX Noisy Test Alertcondition

ADX Trend Filter

by latentwill
4 stars

This strategy enters long when a series labeled ADX is above a threshold and RSI is below 40, and enters short when that series is above the threshold and RSI is above 60. Both series are calculated with the RSI function, so the trend filter is not a true ADX.

Strategy v5 TrendOscillators & momentum
Updated 7 days ago · None stated GitHub repository of ADX Trend Filter
4 stars

This strategy enters a long position when a short RSI falls below a user threshold and price is above a simple moving average trend filter. It closes the long when RSI rises above a second threshold and does not set a stop loss. Position size defaults to full

Strategy v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of RSI(2) pullback + TokIO check
4 stars

This indicator overlays an order flow intelligence suite directly on the price chart. It renders a liquidity heatmap across configured price zones, alongside an on-chart information panel displaying volume delta, cumulative volume delta, a momentum compass bas

Indicator v6 VolumeScreeners & dashboards
Updated 2 weeks ago · MIT GitHub repository of GHOST — OrderFlow Intelligence
4 stars

This strategy enters long when the fast EMA crosses above the slow EMA while ADX is at least the minimum and DI plus exceeds DI minus. It enters short on the opposite cross with DI minus above DI plus. Each entry sets an ATR-based stop and take profit using th

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

GemHunter v4

by Finland93
4 stars

GemHunter v4 classifies market conditions into bullish, bearish, or neutral regimes using a multi-indicator voting system. It combines exponential moving average alignment, MACD momentum, and RSI strength, optionally gated by ADX trend strength and higher-time

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of GemHunter v4
4 stars

This indicator combines five normalized oscillator channels: RSI, stochastic, MACD histogram, money flow index, and the ADX directional difference. It cross-subtracts channel pairs with a fixed or correlation-based weight meant to reduce shared overlap, then s

Indicator v5 Oscillators & momentumVolume
Updated 6 months ago · None stated GitHub repository of MVSU Decontamination
4 stars

Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Christian Qullamaggie Strategy

VAMO Crossover Strategy

by TPTBusiness
4 stars

The VAMO Crossover Strategy is a scalping system that combines momentum and volatility into a Volatility-Adjusted Momentum Oscillator (VAMO). It calculates momentum using Rate of Change divided by ATR and generates trade signals when VAMO crosses its EMA signa

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of VAMO Crossover Strategy

GainzAlgo V2 [Alpha]

by krishnandank
4 stars

This indicator generates buy and sell signals based on engulfing candlestick patterns, a candle stability ratio relative to true range, RSI thresholds, and a multi-bar price momentum condition. It draws visual signal labels on the chart alongside suggested tak

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

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