Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 16)

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

1 stars

Calculates Chaikin Money Flow, which measures buying and selling pressure from where each close sits in its range, weighted by volume over a set length. The default is twenty bars. It plots in a separate pane around a zero line, with colour by sign and an opti

Indicator v5 VolumeOscillators & momentum
Updated 9 months ago · MPL-2.0 GitHub repository of Chaikin Money Flow
1 stars

This indicator combines RSI and MACD to mark confirmation signals on the price chart. A buy circle appears when RSI is below 50 and rising while the MACD histogram is positive and the MACD line is above its signal line. A sell circle appears when RSI is above

Indicator v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Signal Confirmation Filter

VMC Strat Flex Corrected

by matlaenousse
1 stars

This strategy evaluates market conditions using a combination of WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation inspired by VuManChu. It enters long positions when multiple oscillators hit oversold thresholds and generate an upward c

Strategy v6 Oscillators & momentumDivergence
Updated 10 months ago · None stated GitHub repository of VMC Strat Flex Corrected
1 stars

A chart-overlay indicator that plots a fast and a slow EMA, pivot-based support and resistance, and buy or sell signals. A signal needs at least four of five conditions: an EMA cross, RSI inside a middle band, price on the correct side of the fast EMA, a volum

Indicator v6 TrendOscillators & momentum
Updated 10 months ago · None stated GitHub repository of Professional Crypto Signals

Momentum Trend Strategy

by yagyesh-bobde
1 stars

The Momentum Trend Strategy combines the Average Directional Index (ADX), SuperTrend, and Heikin Ashi candle colors to identify and trade trend momentum on the price chart. It enters long or short positions when ADX exceeds an entry threshold and SuperTrend al

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Momentum Trend Strategy
1 stars

This indicator plots envelope bands based on a moving average or exponential moving average of a chosen price source. It computes RSI with user-set length and source. Signals trigger on crossovers: buy when price crosses the lower envelope band while RSI falls

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of ENVELOPE - RSI - Buy Sell Signals
1 stars

A strategy that trades with two EMAs. A long entry needs price above the short EMA, which is above the long EMA, plus either RSI below a level or price within a tolerance of a recent pivot low. Shorts mirror this in a downtrend near pivot highs. Exits use ATR-

Strategy v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Optimized Trading Strategy

This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t

Strategy v6 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR and Stoploss

RSI形态策略

by fuyuanyuan
1 stars

This indicator evaluates multiple Relative Strength Index (RSI) patterns combined with volume surge criteria to identify potential trend reversals and breakout entries. It tracks five distinct bullish setups, including double bottoms, hook reversals, bullish d

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI形态策略
1 stars

A separate-pane indicator that computes the Money Flow Index and adapts its overbought, neutral and oversold levels using a clustering routine trained on recent data. Inputs set the MFI length, the number of training bars and the iterations per bar. An adjuste

Indicator v5 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of AI Adaptive Money Flow Index

RSI Strategy

by SOWRAJ
1 stars

This strategy calculates the relative strength index of the close and plots that oscillator plus oversold and overbought horizontal levels on the price chart because overlay is on. It opens a long when RSI crosses above the oversold level and a short when RSI

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of RSI Strategy

Rocket Launches

by yankeexlr
1 stars

An overlay for crypto charts that follows a staged sequence built from RSI and four simple moving averages. It flags bearish candles with RSI under 20, records their lows, watches for crosses above the 50-period and 300-period averages, and stores the low of a

Indicator v5 Mean reversionOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Rocket Launches

ARI-DPO 2.0

by alessioricco
1 stars

This indicator calculates the Detrended Price Oscillator (DPO) and applies Hull Moving Average (HMA) and Exponential Moving Average (EMA) smoothing to it. It also evaluates Relative Strength Index (RSI) levels. The script determines market state by comparing t

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · Apache-2.0 GitHub repository of ARI-DPO 2.0

TrendChecker

by RobACurtis
1 stars

A Pine library that exports three functions, bullish, bearish and getTrend, which judge market direction on the current symbol and timeframe. Each call takes three switches to include a Stochastic RSI cross, a MACD line versus signal check and a comparison of

Library v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of TrendChecker

MACD VWAP Supertrend

by kritarth2121
1 stars

This strategy combines a MACD crossover, a positive histogram, VWAP versus the open and a Supertrend direction change within the last few bars to open long trades. It closes the position when MACD crosses back under its signal line or Supertrend turns bearish.

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of MACD VWAP Supertrend
1 stars

A strategy that enters long when the MACD histogram crosses above zero, price is above both EMAs and the Supertrend has just turned up. It enters short on the mirror conditions. Positions are reversed by the opposite signal, and the code has no separate stop l

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of MACD & EMA & Supertrend Strategy
1 stars

An indicator in a separate pane that compares a symbol's performance with a reference symbol, set to a Polish index by default. Performance is measured over the four quarters of a year with the most recent quarter weighted more, and falls back to recent quarte

Indicator v5 Oscillators & momentum
Updated 3 years ago · GPL-3.0 GitHub repository of Relative Strength (IBD Style)

Aroon RSI Adjusted Net

by JohnsonHsiao
1 stars

The Aroon RSI Adjusted Net indicator combines the standard Aroon oscillator with RSI calculations over a user-defined rolling period. It calculates Aroon Up and Aroon Down values for both raw price and the RSI indicator, measuring the spread between price Aroo

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of Aroon RSI Adjusted Net

DMI+OBV+RSI

by rajatjpatel
1 stars

A separate-pane tool that merges three studies. A histogram shows normalized On Balance Volume minus its moving average, with different colors for growing and falling bars above and below zero. A shaded band between the 30 and 70 lines uses the directional mov

Indicator v5 VolumeOscillators & momentum
Updated 4 years ago · None stated GitHub repository of DMI+OBV+RSI

MACD Delta Strategy

by juliencrn
1 stars

This Pine v5 strategy computes MACD and takes the difference between the MACD and signal lines. It goes long when that histogram crosses above zero and short when it crosses below, reversing the position. A percentage stop loss measured from the average entry

Strategy v5 Oscillators & momentumTrend Archived
Updated 4 years ago · None stated GitHub repository of MACD Delta Strategy

BTC Premium Strategy

by samliu0206
1 stars

Calculates a volume-weighted perpetual futures premium against spot prices across multiple cryptocurrency exchanges, including Binance, OKX, Huobi, Coinbase, and BitMEX, for BTC or ETH. It applies a user-selected moving average to the log premium value and plo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of BTC Premium Strategy
1 stars

A single file that bundles several standard TradingView indicators as reference snippets. The first plots Accumulation/Distribution, a cumulative volume line, in a separate pane. Later sections include ADX, ATR with selectable smoothing, Bollinger Percent B, H

Indicator v4 VolumeVolatility & bands
Updated 6 years ago · None stated GitHub repository of Accumulation/Distribution

KD Indicator

by TaichiS
219 stars

Calculates and plots the Stochastic Oscillator (KD) in a separate chart pane. It computes the raw stochastic values using high, low, and close prices over a default 9-bar length, smoothing them with 3-bar simple moving averages to produce the K and D lines. It

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of KD Indicator

LiqSpikeBounceLong Feb2026

by agutinbaigo28
147 stars

LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding

Indicator v5 Volatility & bandsVolume
Updated 6 weeks ago · MIT GitHub repository of LiqSpikeBounceLong Feb2026
99 stars

This indicator calculates Bill Williams' Accelerator Oscillator in a separate pane. It forms the median price from high and low, subtracts a slow simple moving average from a fast one to get the Awesome Oscillator, then subtracts a five-period average of that

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Accelerator Oscillator (AC)

PPO ATR Bands

by cryptorife
75 stars

PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of PPO ATR Bands

BTC MACD Enhanced Tests

by iamrichardD
57 stars

This script provides a unit testing and validation framework designed for testing a Bitcoin MACD trading strategy. It constructs custom TestCase and TestSuite data structures to evaluate mock MACD calculations across market scenarios like bull runs, bear marke

Strategy v6 Oscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of BTC MACD Enhanced Tests
53 stars

This strategy evaluates two Relative Strength Index (RSI) indicators across two user-defined timeframes to generate trading signals. The higher-timeframe RSI acts as a trend filter, enabling long trades when above 50 and short trades when below 50. Lower-timef

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · MPL-2.0 GitHub repository of Customizable Dual-Timeframe RSI Strategy
47 stars

This indicator plots jerk, described as the slope of the slope of the slope of a source series, in a separate pane. It estimates each slope with a rolling least-squares fit over the selected period, then repeats that fit on the slope and again on the resulting

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Acceleration, Slope of Slope (JERK)
47 stars

The Vortex Trend Tracker calculates positive and negative Vortex Indicator values smoothed with exponential moving averages. It plots a histogram representing the absolute difference between the smoothed positive and negative lines in a separate pane, alongsid

Indicator v4 TrendOscillators & momentum
Updated 5 years ago · None stated GitHub repository of Vortex Trend Tracker 2.0 + RSI

Binance USDT 2H

by dearvn
43 stars

Binance USDT 2H is a trading strategy designed for Binance futures contracts. It calculates custom smoothed price averages and evaluates Stochastic oscillator lines fetched across multiple timeframes using security requests. Signals generate long and short ent

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binance USDT 2H

MACD NN Weighted Strategy

by skywalker0803r
42 stars

Calculates MACD line and signal line differences, passing current and previous deltas through a two-layer neural network model with ReLU activation functions. User-configurable weights, biases, and threshold values determine output classification signals. The

Strategy v5 AI / machine learningOscillators & momentum
Updated 2 months ago · None stated GitHub repository of MACD NN Weighted Strategy

SMAOffsetProtectOptV0

by viktors1982
36 stars

This strategy generates buy and sell signals based on moving averages with price percentage offsets, combined with an Elliott Wave Oscillator (EWO) and RSI filter. Long entries occur when price falls below the offset moving average under specific EWO and RSI c

Strategy v4 Moving averagesOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of SMAOffsetProtectOptV0

CCI Categy

by thanhnguyennguyen
33 stars

CCI Categy calculates and plots the Commodity Channel Index (CCI) oscillator in a separate chart pane. It computes a Simple Moving Average and mean deviation over a customizable length and price source. The script plots the primary CCI curve alongside referenc

Strategy v4 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of CCI Categy

CCI Divergences

by tistaharahap
25 stars

This indicator plots the Commodity Channel Index in a separate pane and marks regular and hidden divergences between CCI pivots and price. It compares oscillator highs and lows with price highs and lows inside a configurable lookback range. Regular bullish and

Indicator v4 Oscillators & momentumDivergence
Updated 6 years ago · None stated GitHub repository of CCI Divergences

BB Swing

by benso87
24 stars

This strategy calculates Bollinger Bands, a configurable moving average slope, Stochastic RSI, ATR, and ADX directly on the price chart. It evaluates trend bias and momentum conditions to generate long and short swing entries using percent-of-equity sizing. Th

Strategy v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BB Swing
23 stars

The Connors Relative Strength Index (CRSI) measures short-term momentum by averaging three components: a standard Relative Strength Index (RSI), an Up/Down streak RSI, and the Percent Rank of a 1-period Rate of Change (ROC). It plots as a single line in a sepa

Indicator v5 Oscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Connors Relative Strength Index

This indicator estimates an adaptive stochastic in the style of John Ehlers and is titled as an inverse Fisher transform. It high-pass filters the selected source, smooths the result, measures Pearson correlation across lags, and derives a dominant cycle from

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Inverse Fisher Transform of Adaptive Stochastic

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes on the close. It opens a short when price crosses above the upper band and the 14-period RSI is above 75, and a long when price crosses below the lower band and RSI is above 25. Shorts close when RSI falls below 30 a

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Relative Strength Index

by deepentropy
13 stars

The Relative Strength Index indicator calculates momentum based on price changes over a specified length and plots the curve in a separate pane. It includes adjustable upper and lower bands, background color fills, and an optional smoothing moving average or B

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · MIT GitHub repository of Relative Strength Index

BTE Acc AO SMIO

by f-cksociety
11 stars

This script provides an indicator-based backtesting engine framework that simulates trade entries, exits, and filtering directly on the price chart. It evaluates selected entry rules and multi-layered filters, including moving average trends, volume increases,

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BTE Acc AO SMIO

ACE Squeeze

by JasonTeixeira
9 stars

ACE Squeeze plots a cycle-based squeeze oscillator in a separate pane. It builds a histogram and an optional cycle phase line from a base cycle length, sensitivity, and price source, then can adjust the reading with volatility, volume delta, relative range exp

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

Chaikin Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · MIT GitHub repository of Chaikin Oscillator - Eterna MCP
9 stars

This indicator plots a customized Stochastic Oscillator (%K and %D lines) in a separate pane to identify momentum and potential overbought or oversold conditions. Users can select from nine different moving average types—including SMA, EMA, Hull, and ALMA—to s

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic Oscillator (STOCH)

This indicator overlays a trend and momentum regime filter directly on the price chart. It calculates an Ehlers Highpass Filter to isolate a low-frequency decycler trend line from price data. Additionally, it integrates a DecisionPoint Price Momentum Oscillato

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Decycler Momentum Regime Filter ~ CharonQuant

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