Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 24)

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

This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa

Indicator v4 AI / machine learningOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (update)

MTF RSI

by Alorse
330 stars

This strategy enters long when price is above a long moving average and the RSI falls below an oversold level. It closes the long position when the RSI rises above an overbought level or price drops below the moving average. The RSI length, oversold and overbo

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of MTF RSI
318 stars

This indicator plots three moving averages on the price chart alongside colored fills between the lines to visualize trend structure. Internally, it calculates a Stochastic RSI oscillator to detect oversold reversals. When the Stochastic %K line rises above 10

Indicator v5 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of TVT 3X Scale In Out

MACD-V

by harryguiacorn
220 stars

MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of MACD-V

This overlay strategy backtests a dollar-cost-averaging bot on the price chart. It opens a long base order when the selected oscillator signals: MACD line cross, MFI or RSI below a threshold, or Stochastic RSI K crossing above D. Further orders average down by

Strategy v5 Oscillators & momentumMean reversion Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3Commas Bot DCA Backtester & Signals FREE

This overlay strategy combines a Nadaraya-Watson envelope, an RSI calculation, and an ATR stop-loss finder. With repainting off, it plots yellow upper and lower bands from a Gaussian endpoint estimate; with repainting on, it redraws the envelope on the last ba

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 3 years ago · MIT GitHub repository of Nadaraya-Watson Envelope, RSI, and ATR Stop Loss Finder

CCI DC

by be-thomas
65 stars

This indicator plots the Commodity Channel Index in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. It measures volatility as a ratio of short and long ATR values, then ranks that ratio and shortens or le

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of CCI DC

Take Profits & Stop Losses

by PythonForForex
64 stars

This educational strategy demonstrates moving average crossovers filtered by RSI momentum, incorporating ATR-based risk management. It calculates a 10-period SMA, a 30-period SMA, a 14-period RSI, and a 14-period ATR. Long entries trigger when the fast SMA cro

Strategy v5 Moving averagesOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Take Profits & Stop Losses

EMA Ribbon MACD v1

by iamrichardD
57 stars

This strategy combines an exponential moving average ribbon with MACD momentum indicators to identify trend-following entry and reversal signals. It draws in a separate pane, tracking MACD signal crossovers, zero-line crosses, and EMA structural alignments. En

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD v1

This indicator plots a relative strength index in a separate pane. It calculates RSI from the average of the previous ten opens rather than the current bar, so that source does not change during the live candle. A moving average of the RSI is plotted and can b

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of No Repaint - Relative Strength Index

RSI + CCI

by thanhnguyennguyen
33 stars

Calculates and plots both the Relative Strength Index (RSI) and the Commodity Channel Index (CCI) together inside a single separate pane. The indicator tracks maximum and minimum RSI values over a customizable lookback window to evaluate bullish and bearish mo

Indicator v4 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI + CCI
24 stars

This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa

Indicator v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Bollinger Band Swing

Greeffer RSI Strategy

by SammyEnigma
18 stars

The Greeffer RSI Strategy is a basic momentum-based trading strategy that plots a 14-period Relative Strength Index (RSI) in a separate indicator pane. It generates long entry signals when the RSI falls to or below an oversold threshold of 29, and short entry

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

This indicator plots RSI, stochastic, and a scaled MACD together in a separate pane. It calculates RSI and stochastic %K and %D, then shifts the stochastic values upward by 100 so they sit above the RSI scale. The MACD line is normalized against its running mi

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of RSI, Stochastic, and MACD

SPY 0DTE Scalper - 15min

by chris-c-thomas
14 stars

This intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 15min

My Strategy

by hirawatt
11 stars

This strategy plots five exponential moving averages of typical price on the price chart and treats a fully ordered stack as a trend signal. It enters long when the averages rise in order or when the 14-period RSI crosses above 60.5, and short on the opposite

Strategy v4 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of My Strategy

Portfolio Backtester

by f-cksociety
11 stars

The script is a Pine Script v5 indicator that emulates strategy backtesting directly on the price chart. It evaluates modular entry strategies, trade directions, entry stop-loss types such as ATR multiples or fixed percentages, and a wide variety of trade filt

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Portfolio Backtester

Impulse Trend Arrows

by MeridianAlgo
9 stars

Calculates an adaptive baseline using an EMA and constructs an ATR channel smoothed over a user-defined length. It combines channel breakout conditions with RSI and MACD momentum agreement to generate buy and sell signals. Signals are displayed on the main pri

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Impulse Trend Arrows
7 stars

The Hybrid Volume Spread Analysis (HVSA) indicator calculates a volume-weighted momentum oscillator in a separate pane by multiplying moving averages of open and close prices by relative volume change. It evaluates price spread dynamics adjusted for volume cha

Indicator v6 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Hybrid Volume Spread Analysis

MACD

by trsdn
6 stars

This indicator implements a standard Moving Average Convergence Divergence oscillator plotted in a separate pane. It calculates fast and slow exponential moving averages of the closing price, derives the MACD line from their difference, and smooths it to creat

Indicator v5 Oscillators & momentumMoving averages
Updated 7 days ago · MIT GitHub repository of MACD
6 stars

This indicator detects regular and hidden divergences between price pivots and RSI or Williams %R. Confirmed swing highs and lows, which wait a set number of bars on each side, are compared with oscillator extremes. Regular divergences mark possible reversals,

Indicator v6 DivergenceOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Divergence Detector

This strategy executes long positions by combining a 200-period EMA trend filter, Stochastic RSI oversold crosses, and Williams Alligator retracements, supplemented by RSI divergence detection. It triggers long entries when the price trades above the 200 EMA w

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

AG Momentum Breakout

by eltonaguiar
4 stars

AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG Momentum Breakout

RSI Threshold

by latentwill
4 stars

This strategy calculates the Relative Strength Index of the close and is configured for a separate pane. It opens a long position when RSI is below the oversold level and a short position when RSI is above the overbought level. Position size defaults to ten pe

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

订单流分析

by YooooungLee
4 stars

This strategy evaluates order flow by combining volume dynamics and price deviation relative to the Volume Weighted Average Price (VWAP). It enters long trades when trading volume exceeds a relative threshold, price moves significantly above VWAP, net volume p

Strategy v6 VolumeOscillators & momentum Repaints
Updated 10 months ago · Apache-2.0 GitHub repository of 订单流分析
4 stars

Calculates Bollinger Bands, RSI, and Stochastic to identify potential reversal opportunities directly on the price chart. It plots buy signals when the bar low is within a set distance of the lower Bollinger Band while both RSI and Stochastic register oversold

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

Dip Bulucu-2

by gocaman
3 stars

Dip Bulucu-2 combines a WaveTrend oscillator and Williams Vix Fix to identify potential market bottoms and trend reversals. It calculates Williams Vix Fix based on standard deviation Bollinger Bands and percentile ranges, highlighting exhaustion bars in red hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Dip Bulucu-2

DX Strat

by jawauntb
3 stars

DX Strat is an intraday directional trading strategy that combines a composite RSI momentum calculation, moving averages, Keltner Channels, and VWAP to execute trades. It initiates long positions when composite momentum RSI crosses above 77 and short positions

Strategy v5 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of DX Strat

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and displays the relative currency strength of major currencies, including EUR, USD, JPY, GBP, CHF, AUD, and CAD. It plots strength lines and optional histograms in a separate pane to highlight directional momentum across Forex pairs. Users can adju

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

Ver16-19 RCI Panel

by Pesci1134
2 stars

This indicator calculates the Rank Correlation Index over a customizable period and plots the oscillator in a separate pane. It identifies overbought and oversold market conditions relative to user-defined thresholds. Bullish signals occur when the oscillator

Indicator v5 Oscillators & momentumMean reversion
Updated 2 weeks ago · None stated GitHub repository of Ver16-19 RCI Panel

Oscillator

by TamTH-Dev
2 stars

Oscillator plots a multi-component momentum indicator in a separate pane, combining WaveTrend, Money Flow Oscillator (MFO), and VWAP-based metrics. It tracks overbought and oversold market conditions using adjustable horizontal threshold levels. The script cal

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

The indicator calculates a weighted composite relative strength score across short, mid, and long-term Rate of Change (ROC) horizons alongside RSI for up to eight customizable symbols. Users can measure raw momentum or compare performance relative to a selecte

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · Custom licence GitHub repository of Relative Strength Heatmap Vantrade

Advanced Reverse Stochastic %J

by mushroom-men-Trading
2 stars

This indicator calculates the Stochastic %J oscillator alongside reverse-engineered price targets in a separate pane. It plots the current %J line against custom target, overbought, and oversold reference thresholds. Using an iterative algorithm, it calculates

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 9 months ago · None stated GitHub repository of Advanced Reverse Stochastic %J

RSI with Signals

by etabebe1
2 stars

This indicator calculates the Relative Strength Index (RSI) over a user-defined lookback period and plots it in a separate pane. It marks horizontal lines for overbought and oversold thresholds. A bullish buy signal is triggered when the RSI crosses above the

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI with Signals

Swing 4h Majors

by nvolpe2007-cell
1 stars

A long-only strategy for large crypto pairs on 4-hour bars, forced to 4-hour data by default. An entry needs price above a 50-bar EMA with the 20-bar EMA above it, rate of change above a minimum, RSI crossing up through 50 but below an overbought limit, and an

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Swing 4h Majors

SMC Confluence Hub

by skipp-dev
1 stars

SMC Confluence Hub aggregates Smart Money Concept zone states linked from external scripts with internal technical analysis. It combines EMA trend, RSI, MACD momentum, and Bollinger Bands mean-reversion metrics to generate a unified confluence score specifical

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 4 days ago · None stated GitHub repository of SMC Confluence Hub

I_osc

by GammaExpansion
1 stars

Calculates and plots multiple standard technical momentum oscillators in a separate pane. The script computes built-in indicator calculations including Relative Strength Index (RSI), MACD, Stochastic Oscillator, Commodity Channel Index (CCI), Money Flow Index

Indicator v6 Oscillators & momentum
Updated 7 days ago · MIT GitHub repository of I_osc
1 stars

This indicator calculates dual Exponential Moving Averages alongside their slopes, normalized distance, and momentum to detect trend shifts on the price chart. It plots standard EMA crossovers while also assessing early warning conditions when EMAs approach ea

Indicator v6 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of Gelişmiş EMA Trend Analizi
1 stars

A long-only strategy that buys when the MACD line crosses above zero and closes the position when it crosses back below zero. MACD fast, slow and signal lengths and the price source are adjustable. It invests the full equity per trade, includes a commission se

Strategy v6 Oscillators & momentumTrend
Updated 8 days ago · None stated GitHub repository of MACD Zero-Line Strategy Long Only

DEPV2 A6 MTF HA GUCU

by YuceSezar89
1 stars

This indicator calculates Heikin Ashi scores for multiple multiplier timeframes relative to a signal timeframe. It computes HA power for 2x, 3x, 4x, and 6x the base timeframe (default 15 minutes) using custom HA candle logic and normalizes the close-open range

Indicator v6 TrendCandlestick patterns
Updated 13 days ago · None stated GitHub repository of DEPV2 A6 MTF HA GUCU

Manchu Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy that shades a trading session window on the chart, defaulting to a morning session in the Chicago time zone with weekday toggles. Inputs show an RSI of length 40, a short channel length, a risk-to-reward ratio, fixed dollar risk, leverage an

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

A Pine v5 indicator in a separate pane that works from Williams or Chaikin accumulation and distribution flow, a smoothing EMA, Chaikin Money Flow and ATR. It finds divergences between price and flow pivots, detects the chart timeframe automatically with a man

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.8 Auto TF
1 stars

This strategy combines VWAP bands with a multi-factor momentum scoring system to trade trend continuations. It enters positions during pullbacks or breakouts around VWAP when momentum criteria—derived from EMAs, ROC, RSI, MACD, and ADX—reach user-defined thres

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Fusion VWAP Momentum Strategy

RSI Elite Toolkit

by Focal-QuantAI
1 stars

An indicator in a separate pane built on a 21 period RSI with an optional higher-timeframe version, a selectable smoothing average, adjustable overbought, oversold and midline levels, and highlighted extreme zones. It detects regular and hidden divergences usi

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of RSI Elite Toolkit

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