Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 50)

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

RSI Chart Signals

by Web3Degenerate
2 stars

This indicator plots a customized RSI line on the price chart along with buy and sell signals triggered by bullish and bearish engulfing candle patterns. It calculates RSI using a user-adjustable length and custom overbought and oversold thresholds. Signals oc

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Chart Signals

USI-Flip

by skipp-dev
1 stars

This indicator plots buy and short signal labels directly on the price chart based on crossovers across six multi-length RSI lines. The script identifies flip conditions when the fastest line crosses through the slower line bundle, filtered by a configurable v

Indicator v6 Oscillators & momentumVolume Repaints
Updated 4 days ago · None stated GitHub repository of USI-Flip

DEPV2 DEBUG S46

by YuceSezar89
1 stars

DEPV2 DEBUG S46 is a Pine Script v6 indicator that draws in a separate pane. It tracks up to twenty user-selected crypto perpetual symbols and combines four signal classes: trend, momentum, volatility, and volume. The signal mode can use one class, require sev

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S46
1 stars

Tick-chart-safe overlay indicator that classifies candles into seven families: momentum blast, range expansion, gap and go, trend accelerant, trapdoor reversal, exhaustion spike and gap and recover. Each family uses ATR multiples, body-to-range ratios and volu

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Fauna Dual Mode 2.0 Tick-Friendly

True Strength Index

by ivansoft
1 stars

Plots the True Strength Index in a separate pane. Price change is smoothed twice with exponential averages, using long and short lengths of 25 and 13 by default, and divided by the same smoothing of absolute change. A signal line is an EMA of the result with a

Indicator v6 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of True Strength Index
330 stars

This indicator plots a KDJ oscillator and a MACD in a separate pane. It calculates RSV from the highest high and lowest low over a set period, then smooths it into K, D, and J lines and colors the background by whether J is above D. It also builds MACD from fa

Indicator v4 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of KDJ + MACD Cross [Alorse]
114 stars

This indicator combines a scaled Forecast Oscillator with a Point of Force state detector. The Forecast Oscillator calculates the percentage deviation of price from its linear regression curve and normalizes the output between 0 and 1, plotting a line in a sep

Indicator v4 Oscillators & momentumSupport & resistance Repaints
106 stars

This strategy plots multiple indicators on the price chart for Bank Nifty index. It calculates MACD on different timeframes, RSI, ADX, Stochastic oscillator, and Bollinger Bands. The strategy generates buy signals when MACD shows upticks across timeframes, RSI

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Bank Nifty Bullish Intraday

Chaikin Oscillator

by be-thomas
65 stars

Calculates the Chaikin Oscillator by taking the difference between a fast exponential moving average and a slow exponential moving average of the Accumulation/Distribution line. It plots the resulting line in a separate pane alongside a dashed zero reference l

Indicator v4 Oscillators & momentumVolume
Updated 6 days ago · GPL-3.0 GitHub repository of Chaikin Oscillator
13 stars

This strategy executes trades based on a smoothed Stochastic oscillator inspired by FieryTrading's Stochastic Trend concept, specifically tailored for automated crypto execution via Zignaly alerts. It opens positions when Stochastic values cross configured tri

Strategy v5 Oscillators & momentumScalping
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery Stoch A004

Oscillator Divergence Zones calculates nine selectable momentum oscillators, including RSI, CCI, MFI, TSI, STC, and Ehlers filters, to detect regular and hidden divergences. It evaluates price and momentum pivots to spot structural divergence, applying optiona

Indicator v6 Oscillators & momentumSupport & resistance
Updated 3 days ago · MIT GitHub repository of Oscillator Divergence Zones [WavesUnchained]
2 stars

The Liquidity Void Detector calculates a custom oscillator to identify low-participation price moves in a separate pane. It computes a log volume shock z-score against a moving average baseline and a 1-bar log return z-score. When volume drops below the low-vo

Indicator v6 SMC / ICT / price actionVolume
Updated 8 months ago · None stated GitHub repository of Liquidity Void Detector (Zeiierman)

DEPV2 DEBUG S47

by YuceSezar89
1 stars

This indicator is a multi-symbol debug panel that plots signal state in a separate pane. It watches up to twenty configurable symbols, defaulting to Binance USDT perpetual contracts, and classifies direction with trend, momentum, volatility, and volume methods

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S47
1 stars

A mean-reversion strategy that buys when price closes below a Bollinger Band while RSI stays above a floor level, and exits on upper-band breaks combined with RSI or MFI conditions. Three selectable versions exist: the first has no stop loss or take profit, wh

Strategy v4 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of Flawless Victory Strategy
330 stars

MA Cross + DMI [Alorse] is a trend-following strategy that calculates two moving averages (EMA or SMA) alongside the Directional Movement Index (DMI). It plots the two moving averages directly on the price chart. Long positions are entered when the fast moving

Strategy v4 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of MA Cross + DMI [Alorse]

Efficiency Ratio (ER)

by mihakralj
99 stars

This indicator calculates Kaufman's Efficiency Ratio as a signal-to-noise measure of price movement. It compares the absolute net change over a lookback period with the sum of absolute bar-to-bar changes, then clamps the result between 0 and 1. Values near 1 m

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Efficiency Ratio (ER)

Chart Background

by be-thomas
65 stars

This indicator colors the chart background using a full-screen single-cell table based on the 20-period Relative Strength Index (RSI). When the RSI is above 50, the table applies a bullish background color, and when below 50, a bearish color. The background up

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 6 days ago · GPL-3.0 GitHub repository of Chart Background

Ruckard Irene A003

by ruckard
13 stars

Ruckard Irene A003 is an overlay strategy that combines fast moving averages with Directional Movement Index (ADX, DI+, DI-) filters to execute trades. It evaluates price momentum relative to high and low moving averages while checking ADX strength thresholds.

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Irene A003

This strategy calculates regular and hidden divergences across selectable momentum oscillators, including RSI, CCI, and MFI, and plots volatility-based divergence zones. It displays oscillator dynamics in a separate pane while projecting support and resistance

Strategy v6 DivergenceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Oscillator Divergence Zones [WavesUnchained] — Strategy

Fractals with Divergence Scanner is an overlay indicator that combines Exponential Moving Averages, an eight-line EMA ribbon cloud, and WaveTrend divergence analysis. It calculates baseline EMA trends alongside WaveTrend oscillators to detect regular and hidde

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Fractals with Divergence Scanner

PF IES probe 01 - adx regime

by pineforge-4pass
1 stars

PF IES probe 01 is a Pine Script v6 strategy that calculates ADX with a custom DI chain using ta.rma smoothing and manual plus/minus DM flow. It applies an ATR-ratio volatility gate comparing current ATR to its 42-period SMA to classify regimes into four categ

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 01 - adx regime

DEPV2 Debug S48

by YuceSezar89
1 stars

DEPV2 Debug S48 is a multi-symbol crypto indicator that monitors up to 20 cryptocurrency pairs across four analytical categories: trend, momentum, volatility, and volume. It evaluates trading conditions using several signal modes, including single-dimension tr

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S48

MACD

by Alorse
330 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes the difference between a fast and slow moving average, derives a signal line through smoothing, and plots a histogram representing

Indicator v4 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of MACD
106 stars

BankNifty Bearish Intraday is an intraday short strategy designed for the Bank Nifty index. It evaluates multiple momentum and trend indicators across multiple timeframes, including MACD downticks on 5-minute, 15-minute, and 60-minute resolutions, an RSI below

Strategy v5 Oscillators & momentumTrend Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty Bearish Intraday

LRSI: Laguerre RSI

by mihakralj
47 stars

This indicator calculates a Laguerre RSI oscillator using four cascaded Laguerre filter stages applied to closing prices. It measures momentum with reduced time lag compared to a traditional RSI. The script plots the bounded values in a separate pane alongside

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of LRSI: Laguerre RSI

Oscillator Topology analyzes the structural shape of a WaveTrend oscillator rather than just its price level or crossover. It evaluates curvature, peak width, asymmetry, and flatness around pivot extremes to categorize oscillator movements into V-Spikes, Round

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of Oscillator Topology [WavesUnchained]

This strategy calculates trend direction across three user-defined higher timeframes using dual Simple Moving Averages, filtered by On-Balance Volume and Commodity Channel Index conditions alongside fractal pivot swings. Entries trigger when multi-timeframe tr

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Fractals with Pivot Trendlines Strategy

DEPV2 DEBUG S5

by YuceSezar89
1 stars

DEPV2 DEBUG S5 monitors a multi-ticker basket of up to twenty cryptocurrency pairs across four analytical dimensions: trend, momentum, volatility, and volume. It evaluates market signals using customizable modes, including individual method triggers, simultane

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S5
1 stars

This overlay strategy builds a weighted score from three factors. Trend is positive when a fast EMA is above a slow EMA and negative otherwise. Momentum is positive when 14-period RSI is above 50. The volatility factor is positive when close is above a 20-peri

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TN Multi-Factor Sovereign V6

MACD + BB + RSI

by zhuzp98
1 stars

A Pine version 4 strategy on the price chart that buys when the MACD line crosses above its signal line while RSI is below 50 and price is under the Bollinger basis. It exits when RSI exceeds 70 and price is above the upper band. MACD moving average types, ban

Strategy v4 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of MACD + BB + RSI

Stocks Buy The Dip

by tseitz
1 stars

An indicator on the price chart that highlights a possible dip entry by shading the background green. The condition is a MACD line crossing above its signal line while MACD is at or below zero and the 14 period RSI sits under a buy threshold, 52 by default. Th

Indicator v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of Stocks Buy The Dip

True Strength Index

by everget
947 stars

This indicator calculates the True Strength Index (TSI) oscillator by applying double exponential moving average smoothing to price momentum. It plots the TSI line alongside an EMA signal line and an optional difference histogram in a separate pane. Visual ele

Indicator v4 Oscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of True Strength Index
330 stars

MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra

Strategy v4 Oscillators & momentumDivergence Repaints
Updated 2 months ago · None stated GitHub repository of MACD + Divergences [Alorse]

Compound conditions

by be-thomas
65 stars

This indicator plots the relative strength index in a separate pane and marks a compound bullish state when four conditions hold together. It tests whether RSI is above a bull level, above a prior high channel of RSI, whether that channel has not fallen for a

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Compound conditions
47 stars

This indicator plots Bill Williams' Market Facilitation Index in a separate pane. It calculates the bar's high-low range divided by volume, and it returns zero when volume is zero so inactive bars do not produce a ratio. A blue line shows the index and a dashe

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · MIT GitHub repository of MARKETFI: Market Facilitation Index

Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike

Indicator v6 BreakoutSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Pattern Recognition [WavesUnchained]
1 stars

This strategy scores bullish and bearish momentum from three conditions: RSI above or below adjustable levels, RSI compared with its value three bars earlier, and a MACD histogram that is positive or negative and moving further that way. It enters long when th

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 03 - rsi+macd momentum

DEPV2 DEBUG S50

by YuceSezar89
1 stars

This indicator is a debug pane for a multi-symbol signal model. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode selects a single c

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S50
1 stars

This indicator plots detrended candlesticks in a separate pane relative to a chosen baseline to highlight market cycles around a zero line. Users can switch the baseline mode between a moving average and high/low extremes. In moving average mode, it subtracts

Indicator v5 Moving averagesOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Detrended Candles (Switchable)

Neural Network

by zhuzp98
1 stars

A Pine version 4 strategy that scores long and short setups by adding weighted votes from many indicator conditions: EMA trend, SuperTrend, Parabolic SAR, Hull moving average, RSI, MACD, WaveTrend, stochastic, Bollinger Bands and ATR. It trades when the score

Strategy v4 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Neural Network
330 stars

This strategy plots a MACD line, signal line, and colored histogram in a separate pane. The fast and slow averages and the signal line can each use SMA or EMA. Optional markers show MACD and signal crosses. Pivot lookbacks scan the oscillator for regular and h

Strategy v4 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of MACD + Divergences [Alorse]
114 stars

This strategy estimates price behavior using ordinary least squares regression between higher-timeframe data and a generated dataset, smoothed by a Karobein oscillator. It enters long positions when the oscillator turns upward and short positions when it turns

Strategy v4 Oscillators & momentumAI / machine learning Repaints
13 stars

This strategy enters long when WaveTrend reads the market as oversold and short when it reads the market as overbought. It draws on the price chart and uses a reverse strategy type with optional start and stop dates. Stop loss is enabled by default and can fol

Strategy v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of Ruckard LazyBear WaveTrend A002

Pivot Momentum Structure plots a selectable oscillator in a separate pane and scores momentum against confirmed price pivots. It classifies higher highs, higher lows, lower highs and lower lows, then marks regular and hidden bullish or bearish divergences plus

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Pivot Momentum Structure [WavesUnchained]

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