Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 28)

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

QPulse

by JasonTeixeira
9 stars

QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an

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

MFI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Money Flow Index (MFI) to identify momentum shifts, overbought or oversold states, and price divergences. It opens long entries when MFI crosses above the oversold level or displays bullish divergence while under the midline. It en

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of MFI Strategy - Eterna MCP
8 stars

ATX-Long-Term Strategy is an overlay strategy built around a selectable moving average, ATR, and ADX. Settings offer eight average types, including Tilson T3, an optional second average, Heikin-Ashi prices, and a custom timeframe. Separate ATR multipliers appl

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of ATX-Long-Term Strategy

Supertrend + ADX

by muammeryldrm42
7 stars

This strategy combines Supertrend direction with an ADX strength filter. It enters long when Supertrend flips to an uptrend and ADX is above the threshold, and enters short on a downtrend flip under the same filter, only while the position is flat. The Supertr

Strategy v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Supertrend + ADX

Impulse MACD

by s4mn0v
7 stars

The Impulse MACD indicator calculates a modified Moving Average Convergence Divergence to measure price momentum in a smoother and less noisy way than traditional MACD. It uses special moving averages with default lengths of 34 for the fast period and 9 for th

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

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Oscillator v3
5 stars

The Quick Scan for Signal indicator calculates a custom market efficiency ratio by comparing net price displacement against total price movement over a specified lookback period or cumulatively from the chart start. It calculates statistical boundaries based o

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Quick Scan for Signal

Stochastic

by SiegerTerpstra
5 stars

This indicator plots a Stochastic oscillator in a separate pane. It compares the selected source with the high-low range over the %K length, then applies separate smoothing to the %K line and the %D signal line. Adjustable lower and upper bands default to 20 a

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

This short-only trading strategy combines a 200-period Exponential Moving Average, a Stochastic RSI oscillator, and three distinct Supertrend indicators on the price chart. It evaluates price trend relative to the 200 EMA alongside Stochastic RSI crossunder co

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

AG TrendPullback Short

by eltonaguiar
4 stars

The AG TrendPullback Short strategy identifies short pullback opportunities in downtrending markets. It calculates EMA50 and EMA200 crossovers, RSI2 overbought signals above 90, and ADX trend strength above 20. When these align, it enters a short position size

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG TrendPullback Short
4 stars

This indicator scans up to ten user-selected symbols for regular RSI divergence and for RSI extremes. It compares confirmed pivot lows and highs in price and a 14-period RSI, then sends a bullish alert on a price lower low with an RSI higher low and a bearish

Indicator v5 Oscillators & momentumDivergence
4 stars

An overlay indicator that calculates multi-timeframe market conditions and displays them in an information panel on the price chart. It evaluates timeframe metrics such as 15-minute and 1-hour periods to monitor RSI values, support and resistance levels, and r

Indicator v5 Screeners & dashboardsOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 15M 1H

This indicator plots an average daily range from hourly high-low ranges stored for each hour across a selectable number of days. It highlights time sessions on the price chart and can show a timeline and the current range box. Optional filters use a volatility

Indicator v5 Volatility & bandsSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Average Daily Range with Time Session Highlighter
3 stars

This overlay indicator is a Phase 3 debug demonstration. It exposes toggles for memory profiling, code coverage, test-data collection, and benchmarking, plus a debug level and a maximum bar count. Minimal helper functions estimate memory use, count function ca

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Phase 3 Comprehensive Test

J's Composite Index

by jawauntb
3 stars

J's Composite Index combines RSI momentum with simple moving averages in a separate pane. It calculates an unbounded momentum RSI value by adding the bar-over-bar change of a 14-period RSI to a 3-period simple moving average of a 3-period RSI. The indicator pl

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of J's Composite Index

Currency Strength Chart

by itmakesyousick
3 stars

The script calculates and plots relative currency strengths for major pairs including EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD in a separate pane. Strength is derived from RSI, CCI, Stochastics or raw Price source, optionally smoothed and filtered by length.

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

Oscillator

by TamTH-Dev
2 stars

This indicator calculates price midpoints derived from the highest high and lowest low over a customizable base period. It evaluates these range boundaries across the current chart timeframe as well as dynamically scaled 2x and 4x higher timeframes via multi-t

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

Squeeze Momentum Pro plots a TTM-style volatility squeeze in a separate pane. It compares Bollinger Bands with three Keltner Channel widths to mark wide, normal, and tight compression, and it flags the bar when a normal squeeze releases. A linear-regression mo

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Squeeze Momentum Pro [Vantrade]

WaveTrend with Crosses [LazyBear]

by avatar-lavventura
2 stars

This strategy calculates the WaveTrend oscillator using exponential moving averages of typical price and plots two signal lines alongside overbought and oversold thresholds in a separate pane. It enters long positions when the primary line crosses above the si

Strategy v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of WaveTrend with Crosses [LazyBear]

Crowding Model BullVision

by regalouisei
2 stars

This indicator monitors market-wide positioning across major cryptocurrency benchmarks and top altcoins. It calculates the Relative Strength Index and Z-scores across up to 19 assets, mapping them into quadrant zones to identify overbought or oversold crowding

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Crowding Model BullVision

Modified Momentum QQE-ZigZag

by wynnforthework
2 stars

This indicator blends a modified multi-timeframe RSI and Quantitative Qualitative Estimation (QQE) logic with an ATR-based Supertrend overlay on the price chart. Users can select between Wilders and Cutlers RSI calculations, adjust the multi-timeframe length m

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Modified Momentum QQE-ZigZag
2 stars

This indicator highlights buy setups on the chart when price is trending above an exponential moving average and the Relative Strength Index falls within a narrow neutral-to-bullish zone. When the closing price is above the configured EMA and the RSI is betwee

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of HMD 25 Week EMA and 55% RSI Indicator
2 stars

This strategy serves as a backtesting boilerplate and starter template using normalized price metrics. It calculates normalized high and low values across user-defined lookback periods to establish directional bias and evaluate divergence thresholds. Users can

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of CBB 2023 Strategy Default

MML Multi Indikator Script

by theupslidedown
2 stars

This strategy plots a range filter and high and low target bands on the price chart, and colors bars from filter direction. Inputs cover a backtest date window, WaveTrend Cipher B channel and average lengths, overbought and oversold levels, divergence threshol

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of MML Multi Indikator Script

Minervini Pressure

by ankurksoni
1 stars

A separate-pane indicator that measures buying versus selling pressure from volume. Over a chosen lookback, default 20 bars, it sums volume on up candles and on down candles and plots the difference as a share of the total on a scale from minus 100 to plus 100

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Minervini Pressure

Market Cipher B

by kasutu
1 stars

A community imitation of the Market Cipher B oscillator, drawn in a separate pane. It plots a WaveTrend oscillator with a fast line, overbought and oversold levels, and dots at wave crossings, including buy, sell, gold and divergence dots. It also includes a s

Indicator v5 Oscillators & momentumDivergence
Updated 2 weeks ago · None stated GitHub repository of Market Cipher B
1 stars

This Pine Script v6 strategy detects classic divergences between price action and the Stochastic oscillator in a separate pane. Bullish divergences trigger long entries when price forms lower lows while %D forms higher lows. Bearish divergences trigger short e

Strategy v6 DivergenceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Stochastic Divergence Strategy
1 stars

This indicator merges the Quantum Flow v19.1 gold smart money engine with an RSI cross module on the price chart. The RSI module shows faded buy and sell marks on a normal cross and stronger high probability marks when the cross occurs inside a Quantum Flow zo

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Quantum Flow v19.1 + RSI Edge

RSI XO

by riegodavid-git
1 stars

A minimal overlay indicator that calculates an RSI and marks extremes directly on the price chart. A white O appears above a bar when the RSI is above the overbought level, and a white X appears below a bar when it is below the oversold level. RSI length, over

Indicator v6 Oscillators & momentumMean reversion
Updated 4 months ago · None stated GitHub repository of RSI XO

Intraday Trading

by rubbermetal
1 stars

Intraday Trading is an indicator that combines a fast MACD built from simple moving averages with an EMA structure made of a 50-period EMA of highs, a 50-period EMA of lows and a 15-period EMA of closes. Long and Short labels appear when the MACD crosses its s

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Intraday Trading

While Loop Counter

by Snappni
1 stars

This strategy sums the last len closing prices using a while loop then divides by len to obtain an average. It enters long when close exceeds the average and short when below. Positions close automatically on reversal. No stop loss is applied and entries occur

Strategy v6 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of While Loop Counter

Talons RSI Divergence

by muammeryldrm42
1 stars

The Talons RSI Divergence strategy detects bullish and bearish divergences by combining RSI values with price pivots. It calculates RSI using a customizable period and identifies pivot highs and lows on both price and RSI with a lookback setting. Bullish diver

Strategy v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Talons RSI Divergence
1 stars

This indicator plots three exponential moving averages and shades London and New York session hours on the price chart. It generates buy and sell signals when the fast EMA crosses the slow EMA in the direction of the 200 EMA trend filter. Entries require confi

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

SQZ+MOM - (Buy/Sell) Indicator

by gabriel-klettur
1 stars

This script calculates squeeze conditions by comparing Bollinger Bands with Keltner Channels and plots linear regression momentum lines directly on the main price chart. It checks whether Bollinger Bands fall inside Keltner Channels to identify volatility sque

Indicator v6 Volatility & bandsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of SQZ+MOM - (Buy/Sell) Indicator
1 stars

A counter-trend indicator that complements a trend-following sibling. It looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset ca

Indicator v5 Mean reversionDivergence
Updated 7 months ago · None stated GitHub repository of V16 Trend Exhaustion Catcher

Scalper Quick Strike

by Basant1Saini
1 stars

Scalper Quick Strike is a Pine Script strategy that trades on intraday charts using multiple EMAs and Stochastic oscillator. It calculates fast medium and slow EMAs along with a smoothed Stochastic to detect trend alignment and momentum shifts. Long entries tr

Strategy v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Scalper Quick Strike
1 stars

This indicator plots a custom MACD oscillator directly on the main price chart while incorporating multi-depth Zigzag pattern detection. It supports four MACD calculation modes—Traditional, AS Histogram, Leader, and Source—with customizable fast, slow, and sig

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

TSI & Divergences

by munlit
1 stars

A separate-pane indicator that calculates the True Strength Index with fast, slow and signal lengths and detects regular and hidden divergences between price and the oscillator. Pivot lookback and range inputs control how far apart pivots may be, and each dive

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

A long-side strategy that combines a Stochastic Momentum Index, a fast and slow EMA pair and MACD histogram. It enters long when the SMI crosses above its EMA while below the overbought level, and exits on the opposite SMI cross or when the fast EMA crosses un

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

This indicator calculates a stochastic momentum reading in a separate pane. It compares the close with the midpoint of the highest high and lowest low over a percent-K lookback, then smooths that relative range with nested exponential moving averages using the

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of UCS Stochastic Momentum Index
1 stars

This indicator plots Stochastic RSI %K and %D lines over the price chart. It detects bullish and bearish divergences by comparing price highs and lows to those of Stochastic RSI within a lookback period. Users set divergence range (short, medium, long), price

Indicator v4 Oscillators & momentumTrend Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Stochastic RSI Divergence+

Detrending Plot

by JohnsonHsiao
1 stars

This indicator calculates the difference between the current closing price and historical closing prices across six selectable lookback periods. It plots each detrended series in a distinct color along with a zero baseline in a separate indicator pane. Users c

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Detrending Plot
1 stars

A separate-pane tool that plots a very long RSI, 500 periods by default, with a ribbon of five exponential moving averages of the RSI at 1 to 5 bars. Dashed guide levels are set at 85, 70, 50, 20 and 10 and can be changed. A lookback period setting is also pro

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

Simple Short Term RSI

by juliencrn
1 stars

Simple Short Term RSI is an unfinished Pine v4 learning strategy, marked as such by its author. It calculates a 2-period and a 14-period RSI and plots both in a separate pane. Its only trading rule is a long entry whenever the 2-period RSI is above 50, which d

Strategy v4 Oscillators & momentumMean reversion Archived
Updated 4 years ago · None stated GitHub repository of Simple Short Term RSI
228 stars

This indicator detects a Bollinger Band squeeze when the bands sit inside Keltner Channels, marking low volatility. It plots red dots during a squeeze and green dots when the bands are outside, in a separate pane. An optional histogram shows momentum as the cl

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Bollinger Band Squeeze Detector

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