Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 27)

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

6 stars

Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Core Strategy

SM and MACD

by jerryinyang
5 stars

This strategy combines Squeeze Momentum and MACD indicators to generate trading signals. It plots the Squeeze Momentum histogram and MACD in a separate pane. The strategy enters long positions when squeeze enters and MACD is bullish, and short when squeeze ent

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of SM and MACD

This long-only strategy combines a 200-period Exponential Moving Average, Stochastic RSI, and three distinct Supertrend indicators with varying ATR periods and multipliers. It enters long trades when price trades above the 200 EMA, Stochastic RSI crosses up fr

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

This strategy trades pullbacks in the direction of a moving-average trend and draws on the price chart. An uptrend requires the 50-period EMA above the 200-period EMA with price above the slower average, and a downtrend is the reverse. It enters long or short

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

MTF MA Bands + RSI

by InNoobWeTrust
4 stars

This indicator calculates and plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It evaluates up to five distinct moving average layers across user-defined timeframes, ranging from the chart resolution to daily i

Indicator v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MTF MA Bands + RSI

Stoch (Brahim)

by bfoura
4 stars

Stoch (Brahim) is a momentum indicator that calculates Stochastic oscillator values and plots signals directly on the main price chart. It evaluates whether the smoothed Stochastic %K line meets or exceeds predefined overbought and oversold thresholds. When ov

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

Dipmix

by gocaman
3 stars

Dipmix is a separate-pane momentum and scanning indicator designed to identify market bottoms and oversold conditions. It calculates a WaveTrend oscillator using EMA-smoothed price channels, alongside an integrated Awesome Oscillator and Accelerator Oscillator

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of Dipmix

Hyper Flow Indicator

by jawauntb
3 stars

This indicator calculates a composite RSI oscillator paired with STARC volatility bands in a separate pane. It evaluates momentum by combining RSI differentials with smoothed RSI readings, while also referencing higher-timeframe data, moving averages, and esti

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Hyper Flow Indicator

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength for major forex currencies in a separate pane. It calculates each currency with RSI, CCI, or stochastics over a chosen resolution, using automatic, custom, or lookback period modes. Users can show or hide individual curre

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

Oscillator

by TamTH-Dev
2 stars

This indicator plots a composite oscillator in a separate pane, integrating squeeze momentum, directional flux, divergence detection, and confluence gauges. It calculates momentum dynamics and squeeze conditions, highlights regular or hidden divergences with l

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

This indicator calculates Stan Weinstein's Mansfield Relative Strength (MRS) comparing a security against a chosen benchmark index, such as the S&P 500. It measures outperformance and underperformance relative to a zero line using a moving average baseline. Th

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · Apache-2.0 GitHub repository of Mansfield Relative Strength (Weinstein Method)

QQE MOD

by iceberg211
2 stars

QQE MOD is a separate-pane oscillator that builds two smoothed RSI-based QQE trails. The primary trail uses a fast factor and Bollinger bands around the centered line; the secondary trail uses a smaller factor and a fixed threshold. It plots the secondary QQE

Indicator v4 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of QQE MOD
2 stars

This strategy combines Momentum, Chande Momentum Oscillator, and Commodity Channel Index alongside standard deviation Bollinger Band bounds. It calculates oscillator values across customizable timeframes and lengths to track market momentum and volatility in a

Strategy v4 Oscillators & momentumVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of [CBB] MOM/CCI Divergence Strategy

CRUDE OIL BUY/SELL

by DaniilOkrug
2 stars

This overlay indicator plots a simple moving average on the crude oil chart and colors it according to RSI extremes and whether price sits above or below the average. It marks buy and sell labels when a prior bar crosses the average and the current candle conf

Indicator v4 Oscillators & momentumMoving averages Repaints
Updated 4 years ago · MIT GitHub repository of CRUDE OIL BUY/SELL

DEPV2 A8 · Onay Makinesi

by YuceSezar89
1 stars

This indicator implements a multi-metric confirmation engine that validates trading signals across four core dimensions: trend level scores based on an HLC3 SMA, momentum z-scores derived from rate of change, volatility expansion ratios comparing fast and slow

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 A8 · Onay Makinesi
1 stars

Calculates the WaveTrend oscillator using channel and average exponential moving averages alongside a simple moving average signal line in a separate pane. It plots the dual oscillator lines, their difference area, and configurable overbought and oversold thre

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - WaveTrend Audit
1 stars

The XAUUSD Scalping Confluence Engine is a separate-pane indicator that calculates a composite trading score based on multiple technical factors. It evaluates a four-period exponential moving average stack, SuperTrend trend direction, Relative Strength Index,

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of XAUUSD Scalping Confluence Engine

Polish Setup Indicator

by GreyssonEnterprises
1 stars

Plots a smoothed moving average stack alongside detected W and M patterns, RSI momentum filtering, and Fibonacci-style extension targets. The indicator evaluates trend alignment across fast, medium, and slow SMMAs, scans recent price bars for double top or bot

Indicator v5 Moving averagesOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Polish Setup Indicator
1 stars

This strategy generates buy and sell signals on the SP500 4H chart using EMA crossovers confirmed by MACD, filtered by ADX trend strength, RSI levels, and active London or New York sessions. It plots EMA 9, EMA 21, and EMA 200 on the price chart. Buy signals e

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Señales EMA + MACD v4b [SP500 4H]
1 stars

An indicator that shows an adaptive True Strength Index in a separate pane while projecting signals onto the price chart. It detects the instrument type, such as gold, silver or major indices, and the timeframe to pick parameters, adapts reactivity to ATR, and

Indicator v6 Oscillators & momentumScalping
Updated 6 months ago · None stated GitHub repository of TSI Adaptive Scalper v4.2 OVL-SP

Double MACD

by AlanGuo
1 stars

A strategy that plots two MACD histograms in a separate pane, a slower trending pair (89 and 144) and a faster energy pair (13 and 21). Backtesting is switched on by a setting, with a long or short direction and a mode choice between trend following and diverg

Strategy v6 Oscillators & momentumDivergence Repaints
Updated 7 months ago · None stated GitHub repository of Double MACD
1 stars

This strategy looks for mean-reversion entries when RSI crosses back through the oversold or overbought levels, or recovers from more extreme RSI readings. Optional divergence confirmation can require a price and RSI mismatch before entry. It opens one long or

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Extremes - Mean Reversion

MACD-X by DGT

by webcrack4
1 stars

This indicator provides multiple MACD calculation methods including traditional, histogram, leader, and source-based variants. It plots the MACD line, signal line, and histogram on the price chart with SMA or EMA smoothing options. Crossover signals generate l

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of MACD-X by DGT
1 stars

A chart-overlay indicator that tracks a Hull moving average and issues buy and sell signals when price crosses it in the direction of the slope. Entries are filtered by a score built from momentum, RSI and volume, a price-volume-trend check, and an optional bl

Indicator v6 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of RAPF Anti-Chop Fusion

RSI Price Action

by feliperazeek
1 stars

This indicator calculates a 14-period RSI and marks overbought and oversold conditions directly on the price chart, using labels on candles, shaded background zones and an optional RSI line. It can show the current RSI value, print RSI values at set bar interv

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI Price Action

Supertrended RSI

by munlit
1 stars

A separate-pane indicator that computes an RSI, smooths it with a selectable moving average type, and applies a Supertrend-style ATR band to it. The trend line flips when the RSI crosses the band, and colours show direction. Inputs set the RSI length, smoothin

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Supertrended RSI

RSI with Boll

by zhuzp98
1 stars

An indicator that plots a centred RSI, shifted so that the midline is zero, in a separate pane with reference lines at plus and minus twenty. It adds a moving average of the RSI and Bollinger-style bands around it, using an adjustable standard deviation multip

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI with Boll

Squeeze Panel

by amico1234
1 stars

Squeeze Panel plots a volatility squeeze in a separate pane. It marks a squeeze when Bollinger Bands sit inside a Keltner Channel and marks when the bands expand outside it. The user chooses Money Flow Index or linear regression to color likely breakout direct

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Squeeze Panel

Custom RSI of VWAP

by RobACurtis
1 stars

Calculates a Relative Strength Index based on the Volume Weighted Average Price rather than standard close prices. It plots the resulting indicator curve along with customizable upper and lower threshold bounds in a separate pane. Traders can adjust the RSI le

Indicator v4 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of Custom RSI of VWAP

Stochastic Divergence+

by krosenfeld7
1 stars

This indicator calculates the Stochastic oscillator (%K and %D) and scans for divergences between price swings and oscillator swings. It detects pivot highs and lows on both price and the stochastic lines using user-defined lookback intervals and tolerance thr

Indicator v4 DivergenceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Stochastic Divergence+
1 stars

A separate-pane tool that plots an RSI, 14 periods by default, in orange and overlays five exponential moving averages of the RSI at 3, 5, 8, 13 and 15 bars in different colors. Five dashed horizontal guide levels at 80, 70, 50, 20 and 10 can be edited or disa

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of RSI+EMAs for Bootsie Strat

EMA RSI Strategy

by juliencrn
1 stars

This Pine v4 strategy smooths a 14-period RSI with a 10-period and a 50-period average. It enters long when the fast average crosses above the slow one while RSI is above 50, and short on the opposite cross with RSI below 50, using a fixed order quantity. It h

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

Omar MMR [Alorse]

by Alorse
330 stars

Omar MMR is a long-only price-chart strategy that combines three exponential moving averages, RSI, and MACD. It enters long when price is above the slowest average, the fastest average is above the middle one, the MACD line crosses above its signal, and RSI is

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Omar MMR [Alorse]
257 stars

This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns

Indicator v5 AI / machine learningOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Donald - Machine Learning Options

Swoosh Indicator

by harryguiacorn
220 stars

Swoosh Indicator is an overlay that marks directional conditions on the price chart. It checks whether four simple moving averages are stacked in order and whether the MACD line is above or below its signal line. When both agree, it plots a green up arrow belo

Indicator v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Swoosh Indicator

Williams %R (v.4)

by capissimo
114 stars

Williams %R (v.4) is a custom momentum indicator displayed in a separate pane that calculates a scaled Williams %R oscillator over a user-defined lookback period. It enhances standard analysis by layering a secondary confirmation feature—selectable among CCI,

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Williams %R (v.4)
106 stars

A multi-timeframe Dollar Cost Averaging (DCA) trading strategy that combines signals from three RSI indicators, three CCI indicators, and Bollinger Bands. It places up to five weighted scale-in safety orders to lower the average entry price. The script offers

Strategy v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of 3RSI 3CCI BB 5orders DCA Strategy+
57 stars

This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing

MACD

by dcaoyuan
55 stars

This indicator plots a standard MACD oscillator in a separate pane. It calculates the MACD line, signal line, and histogram from the close using fixed lengths of 12, 26, and 9. It draws the MACD line in blue and the signal line in orange, plus a column histogr

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

Bollinger %B

by mihakralj
47 stars

This indicator calculates Bollinger %B in a separate pane. It tracks a simple moving average and population-style variance of the selected source with a circular buffer and running sums, then places the source between the lower and upper bands scaled by the st

Indicator v6 Volatility & bandsOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Bollinger %B

Stochastic RSI Divergences

by tistaharahap
25 stars

Calculates the Stochastic RSI oscillator and automatically identifies regular and hidden bullish or bearish divergences against price movement. It detects pivot points in the oscillator line using configurable left and right lookback lengths and compares them

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 6 years ago · None stated GitHub repository of Stochastic RSI Divergences
24 stars

This indicator plots a Cipher B-style oscillator in a separate pane and can source its calculations from Heikin Ashi candles when that option is on. It draws WaveTrend lines with optional buy, gold, sell, and divergence dots, plus overbought and oversold level

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Cipher B Heikin Ashi

RSI/BB 1minute Study

by SammyEnigma
18 stars

This strategy combines the Relative Strength Index with Bollinger Bands to generate mean-reversion entries. It plots the RSI oscillator and threshold lines in a separate pane, while calculating hidden Bollinger Bands and band width. Long entries trigger when R

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB 1minute Study

Candle Pressure & Response (JMA) evaluates price action dynamics by calculating bidirectional candle pressure, upper and lower wick rejection fractions, body efficiency, and range expansion metrics relative to ATR. Each output series is smoothed using a Jurik

Indicator v6 Candlestick patternsVolatility & bands
Updated 3 days ago · MIT GitHub repository of Candle Pressure & Response (JMA)

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