Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 13)

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

A chart-overlay indicator that adds slope-based measures to common indicators. It tracks RSI slope, moving average slope, a Bollinger squeeze test, MACD momentum, volume trend, price acceleration and a linear-regression trend strength. Recent pivots give suppo

Indicator v6 Oscillators & momentumBreakout
Updated 10 months ago · None stated GitHub repository of Predictive Crypto Trading Bot Pro

This indicator, drawn in a separate pane, pulls Bitcoin and Ethereum prices from two user-chosen symbols, forms the BTC to ETH price ratio and converts it to a z-score against a rolling average and standard deviation (30 bars by default). Upper and lower thres

Indicator v5 Mean reversionOscillators & momentum
Updated 11 months ago · None stated GitHub repository of BTC/ETH Pairs Trading Z-Score & RSI/MACD

FaRSI

by feliperazeek
1 stars

This strategy detects regular and hidden RSI divergences using pivot points on a 9-period RSI and plots them on the price chart with labels. By default it only opens long positions, on bullish divergences, and exits when RSI reaches a take-profit level or by a

Strategy v5 DivergenceOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of FaRSI

ezTrend Lines

by ezPappi
1 stars

ezTrend Lines calculates selected oscillator indicators, including RSI, CCI, Momentum, OBV, or MACD, and displays them in a separate pane. It identifies pivot highs and pivot lows on the chosen oscillator line using configurable pivot periods and checks up to

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of ezTrend Lines
1 stars

This strategy uses Bill Williams indicators including the Alligator (jaw, teeth, lips with RMA smoothing and offsets), Awesome Oscillator, and Accelerator Oscillator. It also plots fractals on the chart. Long entries occur when the Alligator is aligned bullish

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Bill Williams NTD Strategy
1 stars

A separate-pane indicator that plots the change in a chosen price source over a set number of trading sessions, as percent or points. Columns are green for gains and red for losses, with aqua and fuchsia highlighting changes above or below two configurable thr

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · MIT GitHub repository of Price Change History

OTHERS.D MTPI

by Mikelkulla
1 stars

This strategy computes the direction of the altcoin market via the Others.D MTPI index. It merges outputs from Median Supertrend, FDI-Adaptive Supertrend, Hyperbolic Tangent Volatility Stop, Dema AFR, and Normalized KAMA Oscillator to generate long or short si

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of OTHERS.D MTPI

TrendTwisterV1.5

by Axden27
1 stars

TrendTwisterV1.5 is a Pine Script strategy that uses a 12-period Hull Moving Average and a 5-period EMA shifted forward by 2 bars to identify trend changes. It plots the Hull MA in orange and the shifted EMA in blue on the price chart with buy and sell signal

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TrendTwisterV1.5

RSI Pattern Strategy

by fuyuanyuan
1 stars

This script combines five distinct RSI pattern setups with volume ratio filters to generate trading signals. It identifies RSI double bottoms, hooks, bullish divergences, oversold bounces, and midline breakouts to form long conditions, alongside overbought dow

Strategy v6 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI Pattern Strategy
1 stars

A separate-pane indicator that calculates ADX and the plus and minus directional indicators with Wilder smoothing and shows their difference as a coloured histogram. Optional lines show ADX and ADXR, which averages ADX with its earlier value. Two threshold inp

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

This overlay indicator draws a Fibonacci golden zone between two selectable ratios based on swing pivots. It plots an anchored VWAP that can be hidden on daily and higher charts and colored by trend. Divergence markers compare price with VWAP using a lookback

Indicator v5 Support & resistanceDivergence
Updated 1 year ago · None stated GitHub repository of Fib Golden Wave + VWAP Divergence + RSI (Kernel Optimized)

Swing Trader Strategy

by MuhammadHussain07
1 stars

Swing Trader Strategy is a long-only strategy that buys when the MACD line crosses above its signal line during a chosen date range. It exits when the close falls below a trailing stop measured from the highest close since entry, or below a fixed percentage st

Strategy v6 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Swing Trader Strategy

Chop and Explode

by techteam92
1 stars

This indicator identifies consolidation zones and potential breakout moves by processing price data through optional high-pass cleaning, minimax scaling, and RSI calculation. Relative strength values between 40 and 60 represent ranging or chop zones, while cro

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode

Jinni v1

by Hurairahengg
1 stars

Jinni v1 is a Pine Script indicator that plots buy and sell signals on the price chart. It calculates two EMAs, one on close with length 34 and another on input source with length 65, to detect uptrend and downtrend. Additional checks include candle direction,

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Jinni v1

Ultimate RSI

by ranguchamy
1 stars

Calculates a modified RSI in a separate pane with a selectable smoothing method such as RMA or EMA, an adjustable length and source, and a smoothed signal line. Overbought and oversold levels default to 80 and 20, with colour fills for each zone. Settings chan

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

Calculates standard Bollinger Bands alongside the Relative Strength Index (RSI) directly on the main price chart. It plots the upper band, lower band, and simple moving average midline. An upward green arrow signals potential long setups when price crosses bac

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Bollinger Bands & RSI with Arrow

Gravity Points

by yankeexlr
1 stars

An overlay that tracks a multi-step sequence of conditions using RSI and simple moving averages. It flags bearish candles that close while RSI is below 20, remembers the low of the latest such candle, notes when price crosses above the 50-period average, and t

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

This script defines a custom alert setup for trade signals across multiple symbols. It supports conditions such as RSI overbought signals, custom crossover rules, center line crosses at 50, SAR alerts, and daily checks. The script uses the alert function combi

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Ami_Trade_alert() with multiple symbols

Ari zScore

by alessioricco
1 stars

Ari zScore calculates a z-score as the difference between a fast and a slow simple moving average of close, divided by the standard deviation of close. It plots numbered triangles above and below price bars when that value enters fixed magnitude bands, optiona

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

The Woverine - Buy Sell Indicators plots buy and sell labels on the price chart based on selected calculation sources like close, EMA, or SMA, combined with ADX for long or short strategies. Users can customize the strategy type, signal colors, label sizes, po

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Woverine - Buy Sell Indicators

Imbalance Strategy

by creatidy
1 stars

A stock strategy that combines a trend template with relative strength against a reference index. It builds smoothed moving averages scaled for daily or weekly charts, 52-week high and low, and an IBD-style relative strength measure against a reference symbol.

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · GPL-3.0 GitHub repository of Imbalance Strategy
1 stars

This indicator automatically identifies and plots horizontal support and resistance levels directly on the price chart using pivot detection logic. Users can base pivots on either price action lookback or RSI oscillator lookback when RSI mode is enabled. The s

Indicator v4 Support & resistanceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Auto Support + Resistance Levels

Volatility Oscillator

by jubayernil
1 stars

This indicator measures intrabar volatility by plotting price spikes (close minus open) alongside standard deviation upper and lower bands in a separate pane. It identifies regular and hidden bullish or bearish divergences by comparing pivot points of the osci

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 3 years ago · None stated GitHub repository of Volatility Oscillator

Fluffy MACD Uptrend

by pvdochtend
1 stars

A long-only strategy that buys when the MACD histogram turns from negative to positive while the 50 EMA is above the 200 EMA and RSI sits between a lower and an upper limit. Its only exit is a percentage take-profit above the average entry price. No stop loss

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · GPL-3.0 GitHub repository of Fluffy MACD Uptrend

Aroon [RSI-Adjusted]

by JohnsonHsiao
1 stars

This indicator calculates the difference between traditional Aroon lines derived from price action and RSI-adjusted Aroon lines calculated from the Relative Strength Index. It measures both upper spread and lower spread values across a user-defined rolling per

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Aroon [RSI-Adjusted]

Supertrend v2 Strategy

by greenish7
1 stars

Strategy version of a Supertrend plus Stochastic RSI system. Supertrend direction comes from an ATR period and multiplier; long and short entries require the Stochastic RSI lines to be in low or high bands and close to each other while the trend agrees. Trades

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Supertrend v2 Strategy

Alt Coin BB SMA Strategy

by samliu0206
1 stars

Alt Coin BB SMA Strategy calculates custom MACD delta histogram values, Bollinger Bands, and middle band slopes to generate trading signals in a separate pane. It triggers long entry orders when the price crosses above the Bollinger middle band, provided the M

Strategy v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Alt Coin BB SMA Strategy

StackOverFlow MFI and DMI

by namdar-nejad
1 stars

This Pine v4 indicator shows a Money Flow Index line and the directional movement indicators DI plus and DI minus in a separate pane, each with a label on the last bar. A green square at the top marks bars where DI plus is above DI minus and MFI is above 50, a

Indicator v4 Oscillators & momentumVolume
Updated 4 years ago · None stated GitHub repository of StackOverFlow MFI and DMI
1 stars

A separate-pane indicator that plots a slow MACD, 21 and 200 periods by default, against a long simple-average signal line, colored green or red by which is higher. A second MACD can be shown, with its lengths multiplied by a factor chosen for the chart timefr

Indicator v4 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Armonia de los MACD (v2)

Slimdicator

by tseitz
1 stars

Slimdicator is a TradingView indicator for cryptocurrency markets that plots multiple moving averages on the price chart including a fast EMA, a medium SMA, and a slow SMA. It calculates MACD and RSI values to generate buy and sell signals. The indicator alert

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of Slimdicator
1 stars

Mansfield Relative Strength indicator computes relative strength by dividing the current close price by a daily index value selected from Nasdaq Composite, NYSE Composite, ARCA Composite, or Coinbase BTCUSD based on the symbol prefix. It calculates the percent

Indicator v4 Oscillators & momentum
Updated 5 years ago · AGPL-3.0 GitHub repository of Mansfield Relative Strength

Stochastic by TH

by T0pp3rH4rl3y
1 stars

A slow stochastic oscillator in a separate pane with adjustable K, D and smoothing periods. It plots the smoothed percent K and its percent D average, with lines at 80, 20 and an added middle line at 50, and shades the area between 80 and 20. It has no signals

Indicator v4 Oscillators & momentum
Updated 5 years ago · GPL-3.0 GitHub repository of Stochastic by TH

RSI Divergence

by digasic
1 stars

A separate-pane indicator that calculates an RSI with adjustable source, length, overbought and oversold levels, then looks for bullish and bearish divergence between price and RSI. It tracks the highest and lowest price and RSI values inside a lookback window

Indicator v4 Oscillators & momentumDivergence
Updated 6 years ago · None stated GitHub repository of RSI Divergence

Pure Stochastic Long Only

by RayRuizheLi
1 stars

This strategy calculates a smoothed stochastic oscillator with k and d lines. It enters long positions when k crosses above d below the oversold level and close exceeds high[1]. Exits occur when k crosses below d above the midpoint or reaches overbought levels

Strategy v4 Oscillators & momentum
Updated 6 years ago · None stated GitHub repository of Pure Stochastic Long Only
330 stars

Double RSI is a momentum strategy that calculates RSI on the current bar and a multi-timeframe RSI. Long entries trigger on RSI crossover above 30 when multi-timeframe RSI is below 35. Short entries trigger on RSI crossover below 70 when multi-timeframe RSI is

Strategy v5 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Double RSI [Alorse]

2xTP, SL to Entry

by hasnocool
106 stars

This strategy executes mean-reversion trades based on Bollinger Bands and the Stochastic Oscillator. Long orders trigger when price dips below the lower band alongside a bullish Stochastic crossover, with an optional oversold threshold. Short orders execute on

Strategy v5 Mean reversionOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 2xTP, SL to Entry
105 stars

This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints

Machine Learning: Lorentzian Classification

by artificial-intelligence-edge
75 stars

This indicator classifies the current bar by comparing its feature vector with historical bars using Lorentzian distance and a k-nearest-neighbors vote. Configurable features include RSI, WaveTrend, CCI, and ADX. Optional volatility, regime, ADX, and EMA filte

Indicator v5 AI / machine learningOscillators & momentum
Updated 4 days ago · MIT GitHub repository of Machine Learning: Lorentzian Classification

All alert() calls

by be-thomas
65 stars

This indicator calculates a 20-period RSI of the close and plots it in a separate pane with a horizontal line at 50. It marks an RSI cross above 50 with a small up triangle and a cross below 50 with a small down triangle. On those same crosses it calls alert w

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of All alert() calls

BTC MACD Basic Tests

by iamrichardD
57 stars

BTC MACD Basic Tests implements a Pine Script unit-testing framework designed to validate components of a long-only Bitcoin MACD trading system. It constructs structured test cases to evaluate mock functions for MACD crossover calculations, volume threshold ch

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

This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of Candle Counter + MA + RSI + Mode

RSI-VWAP Indicator

by oguzhandilber
47 stars

This strategy calculates a Relative Strength Index (RSI) applied to the Volume Weighted Average Price (VWAP) rather than standard close values. It plots dedicated long and short RSI-VWAP lines with customizable overbought and oversold thresholds, alongside an

Strategy v4 Oscillators & momentumVolume
Updated 5 years ago · None stated GitHub repository of RSI-VWAP Indicator

This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binancash Futures Strategy 1M Candles

FVG RSI Strategy (Translated)

by skywalker0803r
42 stars

This strategy overlays two exponential moving averages on the price chart to trade reversals using custom Fair Value Gaps and the Relative Strength Index. It enters long trades when price closes bullishly below both moving averages with an oversold RSI and a g

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of FVG RSI Strategy (Translated)

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