Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 29)

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

106 stars

This strategy plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3SmmaCrossUp + Fractal + RSI

MS+MACD Basic Tests

by iamrichardD
57 stars

This script implements an automated unit testing suite for a 4-hour swing trading system based on market structure and MACD. Utilizing a custom PineUnit framework with user-defined types, it validates mock functions for change of character, break of structure,

Strategy v6 SMC / ICT / price actionOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of MS+MACD Basic Tests
53 stars

This strategy implements Larry Connors' 2-period RSI mean-reversion algorithm overlaid on the price chart. It filters trades using a long-term Simple Moving Average (SMA), entering long positions when the price trades above the SMA and the short-term RSI drops

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · MPL-2.0 GitHub repository of Larry Connors 2-Period RSI Strategy

RSI-VWMA

by Zettt
43 stars

This indicator calculates the Relative Strength Index using a volume-weighted moving average of the closing price as its source. It plots the resulting oscillator in a separate pane alongside configurable overbought and oversold threshold lines. The plot line

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of RSI-VWMA

1-Month RS

by ChartsLector
41 stars

This indicator calculates the relative strength of the current asset compared to a benchmark symbol such as SPY. It stores the price ratio across a configurable lookback window, ranks the current ratio as a percentile from 0 to 100, and plots the result as a c

Indicator v5 Oscillators & momentumTrend
Updated 4 days ago · None stated GitHub repository of 1-Month RS

Normalize Heatmap Indicator

by palitojendthen
20 stars

The Normalize Heatmap Indicator scales a chosen price source between 0 and 1 over a set lookback period using stochastic-style min-max normalization. It paints price candles on the main chart using configurable Rainbow or RGB color gradients based on the norma

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Normalize Heatmap Indicator

RSI/BB 1minute Study

by SammyEnigma
18 stars

This strategy combines Relative Strength Index and Bollinger Bands for short-term signal generation. It enters long positions when the price crosses below the lower Bollinger Band while the RSI falls at or below the oversold threshold. Positions are scaled dow

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

Divergenced A002

by ruckard
13 stars

Divergenced A002 is a momentum divergence strategy designed to identify entry opportunities using Squeeze Momentum Indicator shifts alongside price action. It enters long when momentum reaches higher lows during lower price lows and enters short on opposite di

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced A002

The script calculates a variant of the Fear & Greed Index using rate of return, accumulation distribution money flow weighted by volume, and volatility from VIX. It offers display options for the raw index value or price candles scaled by the index level. Smoo

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 4 years ago · MPL-2.0 GitHub repository of Trading Psychology - Fear & Greed Index by DGT

WE Alpha

by davro
10 stars

WE Alpha is an oscillator that combines a custom MACD line and histogram with a modified Chaikin Money Flow calculation scaled directly to MACD values. It plots the MACD line, signal line, histogram area, and a money flow line dynamically colored according to

Indicator v4 Oscillators & momentumVolume
Updated 5 years ago · None stated GitHub repository of WE Alpha

The Candle Pressure Index measures buying versus selling pressure from candle geometry and relative volume. Each bar combines close location, body ratio, and volume rank into a raw pressure value. An exponential moving average of that pressure forms the CPI os

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Candle Pressure Index [WavesUnchained]

Quant RSI

by JasonTeixeira
9 stars

Quant RSI is an indicator that plots a Laguerre-filtered Relative Strength Index (RSI) in a separate pane. It incorporates Hull Moving Average smoothing to reduce lag, along with ATR-based volatility calculations and ADX trend tracking. The indicator evaluates

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of Quant RSI

Manias, Panics and Crashes

by MeridianAlgo
9 stars

Manias, Panics and Crashes is a separate-pane market regime indicator that quantifies market sentiment and systemic risk. It processes technical metrics including RSI, moving averages, and volume alongside optional intermarket data such as VIX volatility and c

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 months ago · MIT GitHub repository of Manias, Panics and Crashes

Momentum Combo Strategy

by EternaHybridExchange
9 stars

This strategy scores bullish and bearish confluence from RSI, MACD, a stochastic of RSI, and a fixed ten-bar momentum reading. It opens a long or a short only when the position is flat and the matching count reaches the minimum confirmation setting, then close

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of Momentum Combo Strategy

Whiplash

by Anderson-ALGO
9 stars

Whiplash is a separate-pane indicator that smooths the difference between close and open with a user-selected moving average, then converts that series into a Z-score over a fixed lookback. Small candle bodies near zero are treated as chop, while readings beyo

Indicator v4 Candlestick patternsOscillators & momentum
Updated 5 years ago · None stated GitHub repository of Whiplash

Momentum - MOM

by eddiebelaval
7 stars

The Momentum - MOM indicator calculates standard price momentum over a user-defined length and source, then smooths the momentum values using a customizable moving average. Users can choose from multiple moving average types, including EMA, SMA, RMA, WMA, VWMA

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Momentum - MOM
7 stars

This indicator plots a modified MACD-style momentum oscillator in a separate pane. It compares a zero-lag EMA of the typical price with smoothed moving averages of the high and low, then sets the impulse to the distance outside that range or to zero when price

Indicator v6 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Impulse MACD Modified

Capital41 Fusion Scalp

by damianpitt
6 stars

Capital41 Fusion Scalp is an overlay indicator that identifies high-confluence setups by combining four core conditions: EMA trend direction, RSI momentum, Williams %R levels, and ATR with volume expansion. Bullish and bearish signals are plotted on the chart

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Scalp

Stochastic W%R

by SiegerTerpstra
5 stars

Stochastic W%R is a momentum oscillator that combines Stochastic smoothing techniques with Williams %R concepts. It calculates a smoothed K line alongside a D signal line derived from a simple moving average of K. The indicator plots in a separate pane with bo

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Stochastic W%R

Antigravity Superstar

by eltonaguiar
4 stars

This strategy draws on the price chart and combines a triple EMA stack, a volume spike with a minimum price move, and a MACD line-signal crossover. It enters long or short only when at least the chosen number of those three signals agree, with an optional RSI

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Antigravity Superstar
4 stars

This indicator calculates multi-timeframe metrics and presents them in an on-chart table panel. It inspects daily (1D) and weekly (1W) higher-timeframe data to analyze swings, support and resistance levels, RSI momentum, and relative volume conditions. The pan

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 1D 1W

EMA-Tarama

by gocaman
3 stars

This indicator plots six exponential moving averages on the price chart and places buy and sell labels when the first EMA crosses the third. It calculates MACD from fast and slow averages, with selectable SMA or EMA smoothing, and classifies the histogram as r

Indicator v5 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of EMA-Tarama
3 stars

This strategy overlays the price chart to generate trading signals by combining Quantitative Qualitative Estimation (QQE), a custom SuperTrend, and a CCI ATR trend metric. It colors candles green or red according to combined trend alignment and enters long or

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Bankai DTEK Strategy

RSI + MACD Strategy

by monch1962
3 stars

This strategy combines the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and a volume filter to identify long trade entries. A buy signal requires RSI to be oversold, MACD to cross above its signal line, and volume to exceed 1.5

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · None stated GitHub repository of RSI + MACD Strategy

This indicator calculates and plots the traditional Relative Strength Index momentum oscillator in a separate chart pane. It measures recent price changes to evaluate overbought and oversold market conditions. The script uses a configurable length period setti

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Relative Strength Index (Momentum Oscillator)

RSI Divergence Indicator MP

by midngtpickle
2 stars

The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP

Oscillator

by TamTH-Dev
2 stars

The Oscillator is a technical indicator designed to analyze price momentum across multiple display modes and formulas. It calculates values using fast and slow lookback periods, incorporating adjustable smoothing types and an exhaustion threshold to identify o

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

MirPapa_Lib_trend

by alvinng214
2 stars

MirPapa_Lib_trend is a Pine Script utility library providing trend and momentum calculation functions for other scripts. It features implementations for several moving average types, including the Hull Moving Average (HMA), Exponential Hull Moving Average (EHM

Library v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MirPapa_Lib_trend

This indicator plots a horizontal table at the top of the price chart. It displays the symbol, name, sector, RSI value, ADR percentage, ATR percentage, and days until next earnings release. Earnings days are color-coded with gray for unknown dates, green for o

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 3 months ago · Apache-2.0 GitHub repository of Stock Info Dashboard [thetanerd]

Alper

by avatar-lavventura
2 stars

Alper is a multi-indicator trading strategy combining a WaveTrend oscillator, RSI, and Squeeze Momentum logic based on Bollinger Bands and Keltner Channels. Operating within a user-defined backtest time window, it plots WaveTrend lines, overbought and oversold

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

Momentum-based ZigZag + 趋势

by wynnforthework
2 stars

This strategy combines momentum-based ZigZag calculations with a Supertrend overlay and an EMA trend filter to generate trading entries. It allows selecting between QQE, MACD, or Moving Averages to drive the ZigZag pivot logic. The strategy includes adjustable

Strategy v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Momentum-based ZigZag + 趋势

Yield Lag Forecast

by rellis3
1 stars

Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre

Indicator v6 Oscillators & momentumDivergence
Updated 2 days ago · None stated GitHub repository of Yield Lag Forecast

Reload Ranger Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for reversal setups inside a Fibonacci retracement zone, defaulting to 61.8 to 78.6 percent with a sweet spot level, measured from a higher timeframe. It combines W and M pattern matching with Williams %R, MACD, RSI and an OBV EMA, and

Indicator v5 Support & resistanceOscillators & momentum Repaints
Updated 3 months ago · MIT GitHub repository of Reload Ranger Indicator

MACD

by rubbermetal
1 stars

MACD is a standard moving average convergence divergence oscillator in a separate pane. It shows the MACD line, a signal line that can use EMA or SMA smoothing, and a histogram colored in four shades for rising and falling momentum above or below zero. Optiona

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD
1 stars

This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Advanced Indicator Suite

MTF RSI Confluence

by shubhamtaywade82
1 stars

A strategy that scores RSI across four timeframes, with weights falling from the chart timeframe to the 4-hour, and adds or subtracts points for RSI divergence at recent pivots. It enters long when the score rises above a threshold and short when it falls belo

Strategy v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of MTF RSI Confluence
1 stars

This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD v3
1 stars

Plots a standard 14-period RSI in a separate pane with 30, 50 and 70 reference lines and detects divergence between RSI and price. It compares confirmed pivot lows and highs of the RSI against price over a minimum and maximum bar range. Regular bullish and bea

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of RSI Divergence Indicator
1 stars

A separate-pane indicator that ranks up to ten user-chosen symbols, preloaded with Chinese-listed ETFs for gold, Nasdaq and other indices, by daily momentum and tracks a rotation into the top few, with the count adjustable. An optional market filter compares a

Indicator v6 Oscillators & momentumScreeners & dashboards Repaints
Updated 7 months ago · None stated GitHub repository of ETF Rotation (Daily Momentum)

Stochastic Final Version

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages and a Stochastic Oscillator to generate trading signals directly on the main price chart. Long positions enter when %K crosses above %D below an oversold threshold of 40, exiting on a crossunder above an overb

Strategy v6 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic Final Version
1 stars

Slow & Steady is a swing trading strategy that identifies trend direction using aligned EMAs of 50, 100, and 200 periods. It generates buy and sell signals when the MACD line crosses its signal line within a confirmed trend, filtered by ADX strength. Entries c

Strategy v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Slow & Steady - Swing Strategy
1 stars

This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types. It plots an oscillator on the price chart with customizable vertical placement

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MACD-X Overlay, More Than MACD
1 stars

Marks trend changes on the price chart using price against 20 and 50 period simple moving averages. A bullish trend needs the close above both and a bearish trend below both. A strict alternating rule allows a buy only after a sell and the reverse, so signals

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of RAPF v6.6 [Strict No-Repeat]

TSI Two

by munlit
1 stars

A separate-pane True Strength Index indicator with fast and slow parameter sets, selectable by a speed input. It offers colour themes, optional overbought and oversold lines, crossing markers and a middle line, and colour inputs for the line and signal. Separa

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of TSI Two
1 stars

A strategy that mixes a Stochastic Momentum Index, an EMA pair and MACD histogram conditions. In the visible code it opens long trades when the MACD histogram crosses above zero with price over a 20-period EMA, and closes them on the opposite cross, with stop

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of SMI-MA Short Strategy

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