Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 8)

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

Trend Analyzer MACD Enhanced

by panzmoravylab
1 stars

This indicator, drawn in a separate pane, combines MACD, RSI and volume analysis with divergence detection. It compares price extremes over the last twenty bars with MACD and RSI to flag bullish and bearish divergences, colours the background by trend and mark

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Trend Analyzer MACD Enhanced
1 stars

An overlay indicator that marks price breaks confirmed by a volume surge. A break is when price moves past the recent high or low by a set percentage, direction selectable, on volume above its average. Optional confirmations are a retest, RSI and MACD momentum

Indicator v6 BreakoutVolume Archived
Updated 1 year ago · MIT GitHub repository of High Volume Momentum Strategy

Ultimate Crypto Bot

by dextergocode
1 stars

This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ultimate Crypto Bot

Swing Trading Indicator

by armaandamani
1 stars

A separate-pane indicator built for crypto swing and day trading with an external bot. It plots a Stochastic RSI, a MACD with very long periods for the medium-term trend, and a Money Flow Index, and also uses two Bollinger Band sets for oversold entries and ex

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 1 year ago · None stated GitHub repository of Swing Trading Indicator

Buy and Sell Signal Combo

by Mr-Madhuranga
1 stars

An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high

Indicator v5 Oscillators & momentumBreakout
Updated 1 year ago · None stated GitHub repository of Buy and Sell Signal Combo

FusionBell Pro

by saleh-ato
1 stars

This indicator combines four technical tools into a unified scoring system directly on the price chart. It evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Ban

Indicator v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of FusionBell Pro

MOST on RSI

by CihadCengiz
1 stars

An oscillator that applies the MOST (moving stop) trailing line to an RSI-based moving average. It plots RSI with a smoothed average and the stop line in a separate pane, with fixed 30, 50 and 70 levels. The average type can be SMA, EMA, RMA, WMA, VWMA, Bollin

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MOST on RSI

Adaptive Strategy

by Studentcodee
1 stars

This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart. It evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Par

Strategy v6 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Adaptive Strategy

Raj Reversion Strategy

by LongVu219
1 stars

Measures how far price sits from an Arnaud Legoux moving average, shown as a percentage in a separate pane. The average length is scaled by the ratio between a chosen higher timeframe, 60 minutes by default, and the chart timeframe so values stay comparable ac

Indicator v6 Mean reversionOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of Raj Reversion Strategy

ETHBTC MTPI V2.0

by Mikelkulla
1 stars

This strategy detects whether Ethereum outperforms Bitcoin relative to the overall market using MTPI signals. It combines outputs from DEMA Adaptive Fractal Range, DEMA Supertrend, Schaff Trend Cycle, RMI Trend Sniper, and FDI-Adaptive Supertrend indicators. L

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETHBTC MTPI V2.0
1 stars

This indicator plots a 14-period Relative Strength Index alongside two smoothed Stochastic oscillators in a separate pane. It displays momentum across fast and medium periods relative to a dashed 50 midline. Background coloring signals alignment: green indicat

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI + Stochastic Panel

MACD Divergence Analysis

by fuyuanyuan
1 stars

This indicator calculates the MACD line, signal line, and color-coded histogram in a separate pane below the chart. It includes a specialized divergence detection algorithm that splits a lookback period into recent and older segments to compare price extremes

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of MACD Divergence Analysis

ADX & DI Histogram

by munlit
1 stars

A separate-pane indicator that computes the directional movement system by hand, smoothing true range and plus and minus directional movement over a set length to derive DI values and ADX, and shows them as a histogram. An ADX threshold input sets the level fo

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX & DI Histogram

TB: Auxiliary Indicators

by farias-hecdin
1 stars

This indicator bundles several oscillators into one separate pane: an RSI drawn as circles with bands at 20, 45, 50, 55 and 80, a smoothed Stochastic with %K and %D, and a MACD with line, signal and area histogram. Further sections, such as an absolute strengt

Indicator v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of TB: Auxiliary Indicators

LKG 1.0

by sudesharoshaseneviratne
1 stars

A combined overlay that calculates several well-known indicators in one script: an ATR-based stop distance that colors bars yellow when price moves beyond it, ADX with directional indices, RSI with a selectable moving average or Bollinger Bands and optional di

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of LKG 1.0

TICK.US Status Box

by BrayFlex
1 stars

TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box. The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colo

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of TICK.US Status Box

This indicator combines Fibonacci Golden Zone retracements, VWAP-based divergence detection, and RSI optimized with Kernel Density Estimation (KDE). It identifies high and low swing points to overlay key Fibonacci retracement levels directly on the main price

Indicator v6 Support & resistanceOscillators & momentum
1 stars

A strategy template that sets up Bollinger Bands, MACD and an RSI with its own Bollinger band, each with adjustable lengths, and uses a share of equity for sizing. Orders carry a percentage stop loss and take profit, defaulting to 3 and 30. The condition secti

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Boll MACD RSI Strategy
1 stars

This indicator plots an EMA and RSI on the price chart. It signals overbought and oversold conditions through red and green triangular markers when the RSI crosses 75. A background highlight marks the active trading session between user-defined start and end t

Indicator v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of EMA + RSI + Session Expiry

Bullish Indicator Strategy v2

by MuhammadHussain07
1 stars

Bullish Indicator Strategy v2 is a multi-indicator panel drawn in a separate pane. It calculates RSI, MACD, four simple moving averages (20, 50, 100 and 200), Bollinger Bands, ADX, a stochastic oscillator, OBV, a cumulative volume delta, Chaikin Money Flow and

Indicator v6 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Bullish Indicator Strategy v2

ArminOscillator Strategy

by ali-derogar
1 stars

ArminOscillator Strategy is a strategy that applies a stochastic calculation to a long RSI, then smooths it into K and D lines. A long entry occurs when K crosses above D below 20 with price above a short SMA, or in a sideways case; a short entry mirrors this

Strategy v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of ArminOscillator Strategy

MACD and SR Channel

by sina-parsania
1 stars

An overlay indicator that merges pivot-based support and resistance channels with MACD signals and a visual backtest module. Channels are built from pivot points inside a loopback window, with limits on width, strength and count, and are coloured when price si

Indicator v5 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of MACD and SR Channel

Sovren COT Smart Index

by Eazynesta
1 stars

A separate-pane indicator that reads weekly Commitments of Traders data through a TradingView library and plots net positioning for commercial, non-commercial and non-reportable traders. Each series is normalised to a 0 to 100 scale over a configurable lookbac

Indicator v5 Oscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Sovren COT Smart Index

MACD #2

by dollarkillerx
1 stars

The MACD #2 strategy plots two exponential moving averages with lengths 12 and 26 on the price chart. Buy signals trigger on the fast EMA crossing above the slow EMA when ATR(14) exceeds its prior value, entering a long position with one unit. The position clo

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · MIT GitHub repository of MACD #2

EMA Crossover + RSI Strategy

by danielhyuncoder
1 stars

This strategy generates long signals on the price chart using EMA conditions and RSI levels. It enters long positions when the buy condition, based on EMA alignment checks over specified back bars, is satisfied. Exits occur at a stop loss calculated from the e

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of EMA Crossover + RSI Strategy
1 stars

This indicator calculates and plots the Directional Movement Index (DMI), including the Average Directional Index (ADX), Positive Directional Indicator (+DI), Negative Directional Indicator (-DI), and raw Directional Index (DX). It measures directional price m

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Directional Movement Index

BB_signal1

by subhrapratim07
1 stars

This indicator plots standard Bollinger Bands consisting of an upper band, lower band, and a simple moving average directly on the price chart. It calculates the Relative Strength Index to identify overbought conditions. A bearish signal displays as a red down

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of BB_signal1

Absolute Swings Crypto

by yankeexlr
1 stars

A strategy-type script for crypto that combines Bollinger Bands (22 periods, 1.62 deviations) with %B and an 18-period RSI. It looks for %B crossing back above zero together with RSI crossing back above 28 as one sequence, and %B falling below 1.33 together wi

Strategy v5 Mean reversionOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Absolute Swings Crypto
1 stars

This indicator combines a squeeze momentum histogram with an ADX line in a separate pane. The squeeze part compares Bollinger Bands with Keltner Channels and marks the squeeze state with coloured crosses on the zero line, while the histogram shows a linear reg

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of ADX + Squeeze Momentum Indicator

LWTI-pro

by 78i87
1 stars

LWTI-pro is a custom momentum oscillator plotted in a separate pane. It computes a normalized line from the difference between current and per-bar-close prices divided by ATR then scaled to center at 50. Optional smoothing applies SMA EMA WMA or RMA to the lin

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of LWTI-pro
1 stars

A Pine v4 indicator in a separate pane that combines MACD and RSI. It plots the standard MACD line, signal line and a four-colour histogram, with options to use simple instead of exponential averages for the oscillator and the signal. The RSI is rescaled and d

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of MACD + RSI Robert's Version

Señal Compra/Venta

by LucasNatoli
1 stars

This indicator plots buy and sell markers on the price chart using RSI and Bollinger Bands. A buy triangle appears when RSI is at or below the oversold level and the close is at or below the lower band. A sell triangle appears when RSI is at or above the overb

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · CC0-1.0 GitHub repository of Señal Compra/Venta

12/26-IT Strategy

by PlusGenie
1 stars

12/26-IT Strategy is a trend-following trading strategy that calculates 12 and 26 exponential moving averages alongside resistance levels and RSI bounds. It triggers long entries upon EMA crossovers, optionally filtered by resistance pivots and RSI ranges. The

Strategy v5 TrendMoving averages
Updated 2 years ago · MPL-2.0 GitHub repository of 12/26-IT Strategy

This intraday strategy opens a long when the MACD histogram crosses above zero and a short when it crosses below, only inside a chosen session and only while ADX is below a threshold of 25. Each trade has a fixed point-based stop loss and take profit relative

Strategy v5 Oscillators & momentumSessions & time
Updated 2 years ago · None stated GitHub repository of Day Trading With MACD and Point Target Stop

Engulf Indicator

by theomgdev
1 stars

The Engulf Indicator calculates a custom candlestick metric in a separate pane by evaluating the ratio of candle body size to total candle range, comparing it with the previous bar's body size, and normalizing the result with the Average True Range (ATR). It p

Indicator v5 Candlestick patternsVolatility & bands
Updated 2 years ago · None stated GitHub repository of Engulf Indicator
1 stars

A strategy that scores MACD, on-balance volume, ADX and DMI conditions into a single value and trades on that value. Inputs set long entry and exit thresholds and short entry and exit thresholds, along with DMI and ADX lengths and signal levels. Long and short

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of Money Printer Go BRRRRRR Backtest
1 stars

A separate-pane port of the LazyBear WaveTrend oscillator. It plots a fast and a slow line, overbought and oversold levels, a shaded difference area and circle markers where the lines cross, coloured by direction, and also colours the cross bars. Channel and a

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of WaveTrend with Crosses
1 stars

A strategy that combines an Ichimoku-style cloud built from Donchian midpoints, MACD, a stochastic and ATR on the price chart. ATR-based stop loss and take profit multipliers, each defaulting to 1.0, set exit distances. A position side setting limits trading t

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of FXFUNDINGMATE Trend Indicator
1 stars

Auto Fib Retracement + Extension draws selectable Fibonacci retracement and extension levels on the price chart from recent price pivots. A lookback sets how far back pivots are found, and a setting extends earlier Fibonacci sets. Traders can show or hide indi

Indicator v4 Support & resistanceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Auto Fib Retracement + Extension

Jiaolong 10

by coderbullbull
1 stars

An oscillator-style indicator in a separate pane, rewritten from a Chinese charting platform formula. It builds EMA-difference momentum series from the chart price and from hourly Bitstamp BTCUSD data, plus a smoothed stochastic-like trend line over a 55-bar r

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Jiaolong 10

12-BB

by sam30606
1 stars

This overlay strategy combines a Bollinger-style band with separate ATR upper and lower envelopes and optional ADX, Volume Flow Indicator, and RSI filters. It sizes positions as a percentage of equity. Settings change band length and multiplier, ATR periods an

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of 12-BB

RSI Dynamics

by nvFede
1 stars

A Pine v5 oscillator in a separate pane that plots a five-bar simple moving average of the RSI. Horizontal lines are drawn at 25 and 75 with a shaded band between them. Inputs set the RSI length, 14 by default, and the source. It has no signals or alerts and s

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

A strategy written for 15-minute charts that looks for pullbacks within an uptrend. It requires the 50 EMA above the 200 EMA, the close below the 50 EMA, a recent oversold reading on a smoothed Stochastic RSI, and a stochastic cross up that is higher than an e

Strategy v5 Oscillators & momentumMean reversion
Updated 3 years ago · GPL-3.0 GitHub repository of Fluffy 15M Stochastic RSI Top

Sabarobe

by jinjernot
1 stars

An overlay indicator that stacks many familiar tools on one chart: Bollinger Bands, simple moving averages at 5, 10, 50, 100 and 200, exponential averages at 10, 55, 100 and 200, and an Ichimoku cloud. It also marks triangles when a reversal-style candle forms

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Sabarobe

ADX Expand

by JohnsonHsiao
1 stars

This indicator calculates the Average Directional Index alongside a simple moving average to evaluate trend strength. It plots the raw ADX line and its moving average in a separate pane below the price chart. Users can configure the ADX period, the ADX smoothi

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of ADX Expand
1 stars

A combined oscillator pane built for a Boom and Crash style strategy. It plots a very long RSI, a short moving average, and a ribbon of five very short EMAs, with price high and low pivots over a lookback window and optional horizontal levels. It adds a True S

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Bootsie's Boom and Crash Combo

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