Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 39)

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

Chaikin Oscillator

by TWODS-CAPITAL
37 stars

This script is a momentum indicator that calculates the Chaikin Oscillator. It measures the difference between the short and long period exponential moving averages of the Accumulation Distribution Oscillator. The indicator plots the oscillator values in a sep

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Chaikin Oscillator

Diverlong C002

by ruckard
13 stars

Diverlong C002 is a trading strategy designed to identify entries using Squeeze Momentum Indicator divergences and execute exits based on Curie Closing Lines. Long and short signals trigger when price movements contradict Squeeze Momentum values across indicat

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong C002

RSI2 Optimized STEPFUN

by eltonaguiar
4 stars

This strategy draws on the price chart and trades a two-period RSI. It enters long when RSI crosses above the oversold level and short when RSI crosses below the overbought level. An optional SMA trend filter, volume confirmation, and cooldown can block entrie

Strategy v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI2 Optimized STEPFUN

Version Kappa: Composite Momo + Volume + Price Strategy evaluates trend, momentum, and volume dynamics to generate trading signals on the price chart. It calculates a composite RSI wrapped in Starc Bands, tracking momentum across both current and higher timefr

Strategy v5 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Version Kappa: Composite Momo + Volume + Price Strategy

SSL Oscillator

by TamTH-Dev
2 stars

The SSL Oscillator is a separate pane indicator that combines momentum channel calculations with Quantitative Qualitative Estimation (QQE) logic. It evaluates moving average differences, standard deviation channels, and smoothed RSI values across multiple conf

Indicator v5 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of SSL Oscillator

Ease of Movement (EOM)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Ease of Movement (EOM) oscillator in a separate chart pane. It evaluates the relationship between price midpoint changes and trading volume relative to the bar's high-low range to quantify how easily price moves. The raw

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ease of Movement (EOM)
1 stars

An extended version of the JAT+BSM strategy that adds a strategy preset, a risk aggression choice and a pattern type filter to the AlphaTrend style core, MACD, consolidation layers, volume profile and candlestick and macro pattern drawings. Forecasts use kinem

Strategy v5 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended
1 stars

This mean-reversion strategy implements Larry Connors' 2-period RSI system. It enters long positions when price trades above a long-term simple moving average (default 200) and the 2-period RSI drops below 10. Optional short positions enter below the trend ave

Strategy v6 Mean reversionOscillators & momentum
Updated 4 days ago · MPL-2.0 GitHub repository of RSI-2 (Larry Connors) [JR]

DEPV2 DEBUG S0

by YuceSezar89
1 stars

DEPV2 DEBUG S0 monitors 20 major cryptocurrencies on Binance including BTC, ETH, SOL, XRP, DOGE and others. It generates signals using four methods: TREND, MOMENTUM, VOLATILITY and VOLUME. Users choose from same-time confirmation, sequential confirmation or au

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

Corpus Switch And Strings is a multi-asset strategy that calculates the price spread between two configurable symbols on a set timeframe. It evaluates the spread using a string switch selection to compute either a 9-period Exponential Moving Average, a 9-perio

Strategy v5 Moving averagesOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Corpus Switch And Strings
1 stars

This indicator plots a standard MACD line, signal line, and color-coded histogram in a separate pane, with a zero line. It finds pivot highs and lows on both price and the histogram using a shared pivot length. Alerts fire when a histogram pivot high or low is

Indicator v5 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of MACD Histogram Divergence

V5 Combination by yzz

by webcrack4
1 stars

V5 Combination by yzz is a composite chart indicator that integrates a Volume Profile and Market Profile (TPO) tool with a MACD oscillator overlay. The profile section calculates price distribution across configurable range modes, plotting the Point of Control

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz

Elder Force Index

by ivansoft
1 stars

Plots the Elder Force Index in a separate pane: the change in close multiplied by volume, smoothed with an exponential moving average of 13 bars by default. A zero line separates positive from negative readings. The script raises an error when the data vendor

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Elder Force Index

PR Index

by JohnsonHsiao
1 stars

This indicator calculates a normalized price range oscillator in a separate pane. It computes the position of the current close relative to the highest and lowest close over a configurable lookback period. The output values range between zero and one, compleme

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of PR Index
947 stars

The Derivative Oscillator calculates a double-exponentially smoothed Relative Strength Index (RSI) and subtracts its Simple Moving Average (SMA) to form the main oscillator line. A secondary signal line is plotted using an SMA of the main oscillator values. Th

Indicator v4 Oscillators & momentumMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Derivative Oscillator
330 stars

This strategy combines triple exponential moving averages with a TTM Squeeze oscillator to capture trend-following momentum. It enters long or short positions when price aligns with all three EMAs (125, 680, and 2500 period) and the oscillator turns in the tre

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Improvising [Alorse]

Bias (BIAS)

by mihakralj
99 stars

This indicator calculates Bias as the relative deviation of a chosen source from its simple moving average, using (source minus average) divided by the average. It maintains a circular buffer and running sum so the average updates bar by bar, and it refuses a

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bias (BIAS)
65 stars

This strategy calculates the 20-period RSI and detects bullish and bearish crosses at the 50 level. On a bullish crossover it enters a long position using a stop set to the high price and sends a custom alert message with the stop value. On a bearish crossunde

Strategy v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Strategy using alert_message
47 stars

Ehlers Phasor Analysis calculates the phasor angle, derived cycle period, and market trend state using John Ehlers' cycle analysis techniques. It uses correlation against cosine and sine waveforms over a customizable lookback period to extract in-phase and qua

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Phasor Analysis (PHASOR)

Chande Momentum Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the Chande Momentum Oscillator in a separate pane. It splits bar-to-bar changes of a chosen source into positive and negative parts, sums each over a lookback length, and scales the difference of those sums by their total into a percentage

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Chande Momentum Oscillator
16 stars

This strategy enters long or short on Donchian channel breakouts and adds units only while RSI remains beyond its momentum thresholds. Size is based on a percentage of equity per unit, up to a set maximum. An ATR initial stop and a chandelier trail manage open

Strategy v6 TrendOscillators & momentum
Updated 12 months ago · None stated GitHub repository of Seykota Alt 30: Momentum Pyramid

Diverlong D002

by ruckard
13 stars

Diverlong D002 is a trading strategy designed for crypto assets that detects momentum divergences using state changes in the Squeeze Momentum Indicator. It triggers long or short entries when price and momentum diverge across indicator sections. Trade exits ar

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Diverlong D002

Exhaustion Scanner is an overlay indicator that measures overextension and reversal risk by evaluating price stretch, momentum exhaustion, and candle triggers. It combines distance from moving averages and Bollinger Bands with momentum oscillators, divergence

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Exhaustion Scanner [WavesUnchained]
7 stars

The 7M Multi-Factor Momentum Scoreboard evaluates real-time market momentum across multiple criteria and displays the results in an overlay dashboard panel on the price chart. It tracks anchored percentage price moves based on pre-market, regular open, or post

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of 7M Multi-Factor Momentum Scoreboard
7 stars

The RSI + BB Oscillator combines Relative Strength Index (RSI) and Bollinger Bands %B calculations across two timeframes into a single separate pane plot. It shifts RSI values around zero and measures %B bandwidth using selectable moving average types includin

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of RSI + BB Oscillator

MACD Breakout

by jerryinyang
5 stars

Calculates multi-timeframe Moving Average Convergence Divergence (MACD) alongside a Money Flow filter to identify potential market breakouts. It evaluates higher-timeframe MACD calculations using exponential or simple moving averages combined with Money Flow o

Indicator v4 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of MACD Breakout

Simpleton GROK

by eltonaguiar
4 stars

This strategy plots on the price chart and combines up to seven optional modules that vote for long or short conditions. The modules use a 20-period simple moving average, a five-period RSI, Bollinger Band squeezes, a simplified prior-bar break, stacked expone

Strategy v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Simpleton GROK
4 stars

Calculates a standard Relative Strength Index (RSI) oscillator to trigger oversold and overbought signal conditions, then formats custom JSON alert payloads designed for webhook integration with external services. The script plots RSI in a separate pane and ge

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Webhook Alert Template [Lab]
3 stars

This indicator measures buyer and seller strength over a fixed twenty-bar lookback window and plots the result in a separate pane. It calculates bull force based on the distance from the lowest close and bear force from the highest close, incorporating the bar

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of CSW Bull/Bear Force

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots the Williams Vix Fix indicator as a histogram in a separate pane to detect potential trend reversals. It calculates the Vix Fix value using a lookback period and standard deviation bands derived from Bollinger Bands on the Vix Fix. Multiple

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

Elder's Force Index (EFI)

by mushroom-men-Trading
2 stars

The Elder's Force Index indicator calculates buying and selling pressure using price changes and volume. It computes a raw force as the difference in price multiplied by volume, then applies exponential moving average smoothing. The primary input is the length

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Elder's Force Index (EFI)
1 stars

An extended strategy version that adds a strategy preset, a risk aggression choice and a pattern type filter to an AlphaTrend style core with MACD. It includes three consolidation layers with volume profile, candlestick and macro pattern drawings, a kinematic

Strategy v5 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended

Gyroscope CMO Median

by pineforge-4pass
1 stars

A long-only strategy that pairs a rolling median line with the Chande Momentum Oscillator. It enters long when price crosses above the median while the oscillator is above an entry level. It exits when price drops below the median, the oscillator falls under a

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Gyroscope CMO Median

DEPV2 DEBUG S1

by YuceSezar89
1 stars

This multi-asset crypto indicator monitors up to twenty symbols using four distinct analytical pillars: trend, momentum, volatility, and volume. It generates trade signals based on configurable modes including single-pillar execution, simultaneous confluence,

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

GitLemon Con

by GreyssonEnterprises
1 stars

GitLemon Con is an overlay indicator that looks for W and M formations on price and optional confirming series. Users can include on-balance volume, Williams %R, money flow index, RSI, and directional movement, each with a strict mode and a shared maximum widt

Indicator v4 Oscillators & momentumVolume
Updated 3 months ago · MIT GitHub repository of GitLemon Con
1 stars

This strategy evaluates short-term trend momentum by summing price differences across a user-defined lookback period using a for loop. It combines this calculated average momentum with 9-period and 21-period Exponential Moving Average crossovers. A long trade

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of For Loop Accumulator
1 stars

This strategy runs on the price chart and is titled for a percentile SuperTrend combined with OBV and DI, although the provided excerpt does not show those calculations. It restricts trading to bars after a user-chosen start time and can enable long entries, s

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Percentile_SuperTrend_OBV&DI

V5 Combination by yzz

by webcrack4
1 stars

This script combines a Volume Profile / Market Profile (TPO) tool with an overlay MACD indicator directly on the price chart. It calculates volume or time-at-price distributions across customizable ranges (Visible Range, Anchored Range, or All Range) to identi

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz
1 stars

This indicator computes the Z-Score of a user-selected moving average or smoothed price series. It provides numerous smoothing modes such as SMMA, EMA, JMA, ALMA, and others to customize the base calculation. The Z-Score uses a chosen length and generates sign

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of VQZL Z Score + MA Options

RSI with ATR Bands

by nvFede
1 stars

A Pine v4 indicator in a separate pane, titled Parabolic SAR in the code, though the visible logic plots the 14-period RSI together with two bands. The upper band is the highest RSI over 22 bars minus the ATR, and the lower band is the lowest RSI plus the ATR.

Indicator v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of RSI with ATR Bands

Price Oscillator

by JohnsonHsiao
1 stars

The Price Oscillator calculates the difference between two simple moving averages applied to close prices: a fast SMA using fast_len (default 20) and a slow SMA using fast_len plus slow_len_factor (default 60). It plots this oscillator value as a green line in

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Price Oscillator

MACD Strategy

by TradersPost
228 stars

This overlay strategy is built around MACD inputs for a fast average, a slow average, and a signal line. Comments say the script keeps MACD values available and can draw a histogram and zero line in a separate pane, with an optional overlay on price. Settings

Strategy v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of MACD Strategy
106 stars

This script executes long and short trades directly on the price chart by combining signals from multiple indicators, including MACD, RSI, Stochastic RSI, Supertrend, and moving average crosses. It aggregates indicator conditions using weighted scores and ente

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Acrypto - Weighted Strategy

This strategy calculates a 20-period Relative Strength Index and plots the oscillator alongside a centerline at 50 in a separate pane. It enters long positions when the indicator crosses above 50 and enters short positions on downward crosses. The strategy rev

Strategy v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Strategy with selective alert() calls

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