Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 23)

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 calculates a Fear & Greed Index sentiment oscillator and formats its values according to the PineCoders external signal protocol for strategy integration. It outputs protocol-compliant numerical values (+1/-1 for filters, +2/-2 for entries, +3/-

Indicator v5 Oscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of F&G Cycle Signal for Backtesting-Trading Engine
10 stars

This indicator implements a Traders Dynamic Index (TDI) calculation tailored for Bitcoin on four-hour charts, plotting signals directly on the price chart. It calculates a Relative Strength Index (RSI), moving averages, and volatility bands around the RSI line

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 4H

Test Swing Screener

by TPCharts
10 stars

This script functions as a multi-symbol swing screener calculating the Relative Strength Index across up to 40 user-selected stock tickers using security calls. It evaluates whether each symbol's RSI exceeds a specified overbought threshold level. Inputs allow

Strategy v4 Screeners & dashboardsOscillators & momentum
Updated 5 years ago · GPL-3.0 GitHub repository of Test Swing Screener

Nexural Pressure Pro

by JasonTeixeira
9 stars

Nexural Pressure Pro is a composite pressure indicator that measures directional market momentum using volume-weighted directional movement, order flow delta, aggression, and efficiency ratio metrics. It filters out low-activity bars using configurable volume

Indicator v6 Oscillators & momentumVolume
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Pressure Pro

LunarTick ADX

by lunarticktrading
7 stars

LunarTick ADX calculates the Average Directional Index (ADX) along with positive (+DI) and negative (-DI) directional indicators in a separate pane. It identifies trend direction by tracking crossovers between +DI and -DI, plotting crossover markers directly o

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of LunarTick ADX
7 stars

This indicator calculates a lag-compensated SuperSmoother based on John Ehlers' filter techniques, combining hybrid Butterworth filters with dynamic lag adjustment. It computes adaptive trend metrics and lag-compensated momentum, plotting them in a separate pa

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Ehlers Adaptive Trend Filter

MACD

by trsdn
6 stars

Standard Moving Average Convergence Divergence (MACD) indicator implementation. It calculates the difference between a fast exponential moving average and a slow exponential moving average to form the MACD line. It then smooths the MACD line with a third movin

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

Momentum

by SiegerTerpstra
5 stars

The Momentum indicator measures the rate of change in price by comparing the current source value to its level a specified number of periods ago. Calculated across custom lengths, it plots in a separate pane with optional moving average smoothing and lookback

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

Cerebr Sirius

by jerryinyang
5 stars

Cerebr Sirius is a multi-timeframe trend and momentum indicator overlay that combines exponential moving average trend analysis with VuManChu WaveTrend logic and Money Flow Index. It calculates fast and slow exponential moving averages to identify trend direct

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Cerebr Sirius
5 stars

This indicator overlays multiple technical analysis tools onto the price chart to evaluate trend direction and trade setups. It computes an exponential moving average, a smoothed Stochastic RSI, a custom Williams Alligator using smoothed moving averages with o

Indicator v4 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of 200 EMA + Alligator + Stochastic

Simpleton v0.01_Claude is a multi-strategy trading engine designed for crypto markets that plots directly on the main price chart. It allows traders to execute individual strategies or combine signals into a multi-consensus model from up to twelve systems, inc

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01_Claude [12-Strategy Engine]

MTF Abnormal Price Zones

by InNoobWeTrust
4 stars

The MTF Abnormal Price Zones indicator identifies potential supply and demand zones across multiple timeframes. It detects abnormal volume activity relative to a customizable moving average threshold and applies an RSI momentum filter to validate signals. High

Indicator v6 VolumeSupport & resistance Repaints
Updated 2 days ago · None stated GitHub repository of MTF Abnormal Price Zones

RSI Mean Reversion

by latentwill
4 stars

This strategy calculates a short-term Relative Strength Index (RSI) oscillator to identify mean-reverting conditions. It triggers a long entry when the RSI drops below a customizable oversold threshold and a short entry when it rises above an overbought level.

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

BTC Trend Pullback

by trugurpala
4 stars

This strategy enters long when price and a fast EMA sit above a slower trend EMA and RSI crosses back above a pullback level. Shorts use the opposite RSI cross only when long-only mode is off. It sizes each order as a percentage of equity and places an ATR-bas

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of BTC Trend Pullback
4 stars

This long-only strategy overlays a slow simple moving average and Bollinger bands on the price chart and uses RSI as a filter. It enters when the close is at or below the lower band and RSI is at or below the oversold input, and it closes when the close is at

Strategy v6 Mean reversionVolatility & bands
Updated 5 months ago · None stated GitHub repository of Tetrad Elektro BB (Long Only)

动量策略-连续开单

by YooooungLee
4 stars

This strategy pairs dual exponential moving averages with a price momentum calculation to identify trend direction. It initiates long entries when the fast EMA trades above the slow EMA while momentum is positive, and enters short positions when the fast EMA f

Strategy v6 TrendOscillators & momentum
Updated 10 months ago · Apache-2.0 GitHub repository of 动量策略-连续开单

RSI (Brahim)

by bfoura
4 stars

RSI (Brahim) calculates the Relative Strength Index (RSI) to detect potential overbought and oversold conditions directly on the price chart. When the RSI value rises above the defined overbought threshold, a red down-triangle marker labelled OB is drawn above

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

This strategy combines Williams Vix Fix calculations with Stochastic and RSI indicators to identify potential market bottoms. It calculates synthetic volatility using standard deviation Bollinger Bands and percentile thresholds on the Williams Vix Fix. Long en

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · Apache-2.0 GitHub repository of Vix FIX / StochRSI Strategy

RSI Zones

by degenview
3 stars

This indicator plots the Relative Strength Index on a separate pane using a purple line. It calculates RSI based on a user-defined length and source. Horizontal lines mark overbought at 70 in red, the midline at 50 in gray, and oversold at 30 in green. The bac

Indicator v6 Oscillators & momentumSupport & resistance
Updated 2 days ago · GPL-3.0 GitHub repository of RSI Zones
3 stars

The Directional Flow Oscillator combines momentum, cumulative volume delta, price range position, trend ratio, and relative volatility into a single bounded composite indicator. It fetches lower-timeframe volume data to calculate cumulative volume delta and no

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Directional Flow Oscillator

Currency Strength Chart

by itmakesyousick
3 stars

This indicator measures and compares the relative strength of major forex currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It plots individual currency strength as lines or histograms alongside a currency pair strength table.

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

Test

by blackcat1402
3 stars

This indicator plots a small red label above price bars when a custom relative strength reading crosses down through a user-set pivot. It builds the reading from running moving averages of upward and downward close changes, in the same form as RSI. The RSI len

Indicator v4 Oscillators & momentum
Updated 5 years ago · MIT GitHub repository of Test

TQQQ MA+TSI

by yalili8521
2 stars

The TQQQ MA+TSI strategy executes trades based on triple simple moving average alignment combined with True Strength Index (TSI) divergence or momentum filters. Designed primarily for intraday stock trading, it evaluates price accumulation across fast, mid, an

Strategy v6 TrendOscillators & momentum
Updated 9 days ago · None stated GitHub repository of TQQQ MA+TSI
2 stars

This indicator detects trend-following pullback entries using the Rank Correlation Index (RCI) and a triple Exponential Moving Average (EMA) ribbon. It identifies bullish setups when price maintains an upward EMA alignment while RCI reverses from oversold leve

Indicator v5 Oscillators & momentumMoving averages
Updated 2 weeks ago · None stated GitHub repository of Ver16-19 5M Entry Signal

XAUUSD Strategy V4.17 is a Pine Script strategy that plots buy and sell signals on the gold price chart using Stochastic oscillator, RSI, EMA trend filters, Fibonacci zones, and ATR-based risk management. It supports confirm-only, confirm+scalp, or scalp-only

Strategy v5 Oscillators & momentumMoving averages

CM Ult MacD MTF

by avatar-lavventura
2 stars

This indicator plots a multi-timeframe MACD oscillator using customizable fast length, slow length, source, and signal smoothing. It displays the MACD line, signal line, and histogram in a separate pane, with options for trend-based coloring of lines, highligh

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of CM Ult MacD MTF

This indicator compares US sector ETFs with technology and utilities using price ratios that can be log-transformed. It smooths those ratios with a simple moving average and measures fast and mid-length percentage change to classify financials versus technolog

Indicator v5 Oscillators & momentumMoving averages
Updated 10 months ago · MIT GitHub repository of Sector RS & Intermarket Regime Dashboard
2 stars

This indicator overlays trend and momentum analysis directly onto the price chart by combining a customizable moving average trend filter with dual QQE MOD calculations. It determines trend direction using selectable moving average types, including EMA, ALMA,

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 超级趋势 + QQE 集成指标

[CBB] 2023 System

by codybbrown
2 stars

This overlay indicator calculates the Commodity Channel Index from a selected source and detects crossings above an upper threshold and below a lower threshold, storing the high, low, and midpoint of those bars. It also builds two Bollinger Band sets with inde

Indicator v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of [CBB] 2023 System

Chandelier Exit + MACD [UT]

by theupslidedown
2 stars

This indicator draws a Chandelier Exit on the price chart. It sets a long stop under the highest price and a short stop above the lowest price, each offset by a multiple of ATR, then trails the active stop as price moves. Direction turns long or short when pri

Indicator v5 TrendVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of Chandelier Exit + MACD [UT]

MC - Money Flow Index

by Metzenas
2 stars

MC - Money Flow Index calculates and plots a volume-weighted oscillator in a separate pane based on typical price and trading volume over a customizable lookback period. The oscillator line dynamically turns green when reading at or above 50 and red when falli

Indicator v4 Oscillators & momentumVolume
Updated 5 years ago · None stated GitHub repository of MC - Money Flow Index

CCI Momentum

by pineforge-4pass
1 stars

A strategy built on the Commodity Channel Index, plotted in a separate pane with overbought, oversold and zero lines. It enters long when the CCI crosses up through the oversold level and short when it crosses down through the overbought level. Open positions

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of CCI Momentum
1 stars

A signal-only indicator that looks for exhaustion after a run of consecutive same-colour candles ending in a doji. A top needs bullish candles with RSI overbought and a new high versus recent bars; a bottom mirrors this. A separate news mode flags unusually la

Indicator v6 Mean reversionCandlestick patterns
Updated 2 weeks ago · None stated GitHub repository of Top Bottom Reversal

India CCF Nifty

by raybird
1 stars

A futures strategy for NSE Nifty that requires agreement from SuperTrend, a 3 and 13 EMA cross with a 21 EMA trend, MACD, RSI, ADX, volume and relative strength against a benchmark. Entries come in two stages with a larger setup ladder, so it can add to a posi

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of India CCF Nifty
1 stars

Overlay indicator for XAUUSD gold that draws predicted support and resistance levels at 08:00 and 19:00 SGT on the price chart along with buy and sell take-profit levels spaced by ATR multiples. It generates RSI reversal signals as triangles when the indicator

Indicator v5 Support & resistanceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Predicted Signals + RSI trigger

A/D Context v20.8

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane using Williams or Chaikin accumulation and distribution flow, a smoothing EMA, Chaikin Money Flow and ATR. It detects divergences between price and flow pivots and draws a line for the active divergence zone that fades on

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

Buddha Squeeze

by DarthBuddha
1 stars

A separate-pane momentum and volatility indicator in the style of the TTM Squeeze. It plots a linear-regression oscillator as columns coloured by direction and by whether momentum is rising or falling, with yellow marks on the zero line while Bollinger Bands s

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · MIT GitHub repository of Buddha Squeeze

Reynolds Flow - Energy River

by tthanhvu002sgu
1 stars

Applies a fluid-dynamics analogy to price in a separate pane. A raw Reynolds-style number divides candle body size, signed by price against a moving average, by ATR. It is normalised and ranked by percentile to classify flow as laminar, turbulent, viscous or s

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Reynolds Flow - Energy River

Fusion DBSI

by shahzaib-574
1 stars

The Fusion DBSI indicator calculates a momentum score for each candle by combining oscillators, wave momentum, VWAP, money flow, RSI, Stoch RSI, divergences, and an EMA ribbon. Positive scores indicate bullish conditions while negative scores flag bearish reve

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Fusion DBSI

RSI Indicator

by Sandesh30-cloud
1 stars

A very small Pine v5 indicator in a separate pane that plots a 14-period Relative Strength Index of the close as a purple line, with horizontal reference lines at 70 and 30. The period is fixed in the code and there are no settings, signals, alerts or smoothin

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of RSI Indicator

ML Price Predictor (KNN)

by haydarkadioglu
1 stars

This overlay indicator compares the current bar with historical patterns using a k-nearest neighbors search. It measures RSI, RSI slope, volume relative to a 20-bar average, EMA trend strength, and price position within a range, each scaled by a user weight. F

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of ML Price Predictor (KNN)

RSI Divergence Detector

by knectardev
1 stars

The RSI Divergence Detector calculates Relative Strength Index (RSI) values and compares pivot highs and lows between price action and the RSI oscillator. It identifies four distinct divergence types: regular bullish, regular bearish, hidden bullish, and hidde

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

Combined Indicators v5 Fixed merges multiple technical tools into a single price chart overlay. It identifies Smart Money Concepts structure such as Break of Structure, Change of Character, Order Blocks, Fair Value Gaps, and equal highs or lows. Additionally,

Indicator v5 SMC / ICT / price actionOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combined Indicators v5 Fixed
1 stars

The Hybrid Overbought/Oversold Detector combines several classic technical indicators, such as Bollinger Bands %B, CCI, CMF, and CMO, into a consolidated oscillator displayed in a separate pane. It calculates aggregate momentum and volume conditions to identif

Indicator v5 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Hybrid Overbought/Oversold Detector

A large overlay indicator that merges several tools from the same repository: forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI

Indicator v5 Sessions & timeSMC / ICT / price action
1 stars

This strategy detects divergences in MACD, MACD histogram, and RSI indicators to generate buy and sell signals on the price chart. It supports long and short positions with customizable take-profit and stop-loss percentages. The main settings allow switching b

Strategy v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Divergence for Many [Dimkud]

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