Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 36)

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

BTC Delta MTF v3 Enhanced

by Focal-QuantAI
1 stars

An indicator on the price chart that estimates order flow from lower-timeframe sub-candles. It combines delta from a main 5 minute and a secondary 1 minute timeframe with weights, and can scale by a 60 minute trend filter. Added modules score delta exhaustion,

Indicator v5 VolumeOscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of BTC Delta MTF v3 Enhanced

Solo Stochastic v1

by gabriel-klettur
1 stars

This strategy plots 10, 55 and 200 period exponential moving averages on the price chart and calculates a smoothed stochastic oscillator from user K, D and smoothing periods. It opens a long when the K line crosses above D while K is below a fixed oversold lev

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Solo Stochastic v1

Bjorgum Reversal

by amico1234
1 stars

Bjorgum Reversal is an overlay indicator that combines Tillson T3 moving averages, Parabolic SAR, and the True Strength Index to identify trend direction and potential reversal points. It recolors candles to signal trends and potential crossovers, while plotti

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Bjorgum Reversal

MA Angles

by nvFede
1 stars

A Pine v4 indicator in a separate pane that measures the angle, in degrees, of several moving averages including a Jurik moving average. The comments say the angles indicate whether momentum is rising or falling. A threshold in degrees defines low-slope zones,

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of MA Angles

Linear Slope & Delta2

by JohnsonHsiao
1 stars

This indicator measures how a linear regression of the close changes over a chosen shift, then measures how that slope itself changes. It plots the slope and a second difference in a separate pane with a zero baseline. The regression length sets how many bars

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Linear Slope & Delta2

Hotch v1.02

by rajatjpatel
1 stars

A Pine v4 overlay that finds Williams-style fractals over an adjustable period and combines them with a recent RSI low or high. When a down fractal forms after RSI dipped into one of three bands, up triangles of different shades appear under the bar, offset ba

Indicator v4 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of Hotch v1.02

His/Lows

by tseitz
1 stars

A Pine v4 strategy that combines rolling highest and lowest values over fast, medium and slow lookbacks with a 12/26 MACD and a 14-period RSI. Inputs set the three lookbacks, an RSI level for closing longs in a short zone, whether shorts are allowed, and two M

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of His/Lows

This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi

Indicator v5 Oscillators & momentumVolume
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup

This strategy combines Arnaud Legoux Moving Average percentage price change calculations with an adaptive Gaussian Moving Average to generate trend-following signals. Long and short entries are triggered when the ALMA change calculation crosses above or below

Strategy v5 Moving averagesOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of ESM2024 - ALMA Smoothed Gaussian Moving Average

Balance of Power (BOP)

by mihakralj
99 stars

This indicator calculates the Balance of Power oscillator to gauge underlying buying and selling pressure by evaluating the position of the close relative to the open against the bar high-low range. It provides an option to smooth raw values using an exponenti

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Balance of Power (BOP)

DeMarker

by iamc1oud
56 stars

This indicator plots a DeMarker oscillator in a separate pane. It compares positive changes in highs with negative changes in lows, smooths both series with a selectable moving average, and scales the result from 0 to 100. The line is colored when it is above

Indicator v4 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of DeMarker

Divergenced J001

by ruckard
13 stars

Divergenced J001 is a price-chart strategy that finds squeeze-momentum divergences and can send Zignaly alert messages. It shorts when a light-green to dark-green squeeze section shows a smaller value while price is higher, and longs on the opposite red-sectio

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced J001
9 stars

This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · MIT GitHub repository of CVD Bias [WavesUnchained]
8 stars

This indicator plots a smoothed stochastic, a Schaff Trend Cycle, and a WaveTrend oscillator in a separate pane. It draws percent K and percent D between fixed upper and lower bands and marks their crosses when percent D is under 30 or over 70. The STC is a do

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Stochastic with STC X

stelaraX - Momentum

by eddiebelaval
7 stars

This indicator plots momentum of a chosen price source over a user-set period in a separate pane. It calculates the difference between the current source value and the value that many bars earlier, then draws the result as a histogram. Positive values appear g

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of stelaraX - Momentum

MA Rate of Change

by suyons
7 stars

This indicator calculates a user-selected moving average of the source and plots that average's rate of change in a separate pane. Users choose among SMA, EMA, WMA, HMA, RMA, VWMA, and ALMA, plus length and source. ROC length and a multiplier scale the plotted

Indicator v5 Moving averagesOscillators & momentum
Updated 4 months ago · None stated GitHub repository of MA Rate of Change
5 stars

This indicator measures the drift or directional slope of a series relative to its deviation or range over a chosen lookback period. It can transform the input series by differencing, integrating, or keeping the original prices. The metric evaluates the slope

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Quick scan for drift

Charles' RSI Strategy

by jerryinyang
5 stars

This overlay strategy combines RSI, which can be read from another timeframe, with fast and slow exponential moving averages. It sequences overbought and oversold crosses with returns into a base zone, optionally counting those events only when the moving-aver

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of Charles' RSI Strategy
4 stars

This indicator is a live strategy scanner for cryptocurrency pairs. It runs six strategies on the current chart, tracks their wins and losses, and rates them to show the best one for this pair and timeframe. It uses ATR for adaptive TP/SL, auto-scales based on

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Crypto Pair Selector v2 STEPFUN

VIX Trending

by dearvn
4 stars

The VIX Trending indicator plots on the price chart for the VIX symbol. It computes EMA values on 1m and 5m timeframes using security requests and detects trend shifts via consecutive high or low breaks along with volume. Buy signals trigger on upward EMA alig

Indicator v5 TrendOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of VIX Trending

P-MACD TARAMA2

by gocaman
3 stars

P-MACD TARAMA2 calculates a MACD from a fast and slow moving average and plots the MACD line, signal line, and histogram in a separate pane. It marks MACD and signal crossovers with circles and includes pivot-based bullish and bearish divergence settings. User

Indicator v5 Oscillators & momentumDivergence
Updated 2 days ago · None stated GitHub repository of P-MACD TARAMA2
3 stars

This strategy combines the Stochastic Oscillator with Chaikin Money Flow (CMF) to generate trading signals on the price chart. It enters long positions when the Stochastic %K line crosses above the %D line while CMF is above 0.1, and enters short positions on

Strategy v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Stochastic and CMF Strategy

Alpy Kazan

by avatar-lavventura
2 stars

Alpy Kazan combines a WaveTrend oscillator with a Bollinger Bands and Keltner Channels squeeze detector. It plots the WaveTrend lines, overbought and oversold boundary levels, and visual crossover markers in a separate pane, while highlighting crossover bars o

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

The strategy combines support and resistance levels with RSI or MFI momentum oscillators, optional WaveTrend indicators, and Bollinger Bands filters. Strategy logic evaluates trade signals on either Heikin Ashi or standard candle data to execute DCA entries wi

Strategy v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Support and Resistance with RSI and Trend Filter

PSMC - Namespaces

by Web3Degenerate
2 stars

This indicator plots the 14-period RSI oscillator on the chart. It also demonstrates string handling by converting a fixed string to a number and plotting the result. The script uses namespaces to access built-in functions like ta.rsi and str.tonumber. It draw

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of PSMC - Namespaces
1 stars

A strategy that scores signals from ten sources: RSI, MACD, Bollinger Bands, head and shoulders, wedges, multiple tops and bottoms, candlestick reversals, pivot support and resistance, volume spikes and an EMA ribbon filter. A trade needs a minimum pattern sco

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 2 days ago · None stated GitHub repository of Fall Strategy 10-Pattern Engine

DEPV2 C6 Gölge Kasa

by YuceSezar89
1 stars

This indicator evaluates signal performance and multi-timeframe market dynamics through a shadow bankroll tracking framework. It measures market conditions across trend, momentum ROC Z-scores, ATR volatility expansion, and volume flow, alongside multi-timefram

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C6 Gölge Kasa

Root Deviation Loop

by vedkanani123
1 stars

A separate-pane oscillator based on root mean square deviation. It offers two signal modes: Bollinger-style bands around a chosen moving average of the deviation, or a for-loop score summed across a range of lookbacks that is compared with long and short thres

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Root Deviation Loop

RSI Window

by rubbermetal
1 stars

RSI Window shows a relative strength index in a separate pane with a color gradient and overbought and oversold zone fills. It can also draw a faster RSI and a histogram of the gap between the fast and standard RSI. Up to five exchange symbols, defaulting to B

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of RSI Window

Stochastic+SQZMOM_LB_v1

by gabriel-klettur
1 stars

This strategy plots exponential moving averages of 10, 55 and 200 on the price chart and shades the background when a smoothed stochastic is oversold or overbought. It opens long positions when the stochastic K line crosses above D below the oversold level, in

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Stochastic+SQZMOM_LB_v1

Thrust Breakout Algorithm

by Tradehook-org
1 stars

A Pine v5 script that looks for a price thrust followed by a pullback entry on the price chart. A thrust is a rate of change beyond a percent threshold. A pullback is price easing back toward a short EMA or by a small tolerance after the thrust bar, and an RSI

Indicator v5 Oscillators & momentumBreakout
Updated 8 months ago · None stated GitHub repository of Thrust Breakout Algorithm
1 stars

This technical indicator plots multiple analytical components directly on the price chart, combining Bollinger Bands, moving averages, relative strength index calculations, and average true range measurements. It generates buy and sell signals based on volatil

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Ultimate Buy and Sell Indicator

Technical Analysis Namespace

by fiji-solutions
1 stars

This indicator calculates common technical analysis variables including RSI, Stochastic Oscillator, EMA moving average, ATR volatility, and MACD with signal and histogram. It plots the MACD line, signal line, and histogram in a separate pane. The script serves

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of Technical Analysis Namespace

Max Index

by JohnsonHsiao
1 stars

Max Index is an oscillator that measures range expansion and contraction over rolling periods. It calculates a rolling high-low range over a user-defined lookback window, applies double exponential smoothing to that range, computes the ratio between the two sm

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Max Index

Asymmetrical RSI

by everget
947 stars

Asymmetrical RSI is an indicator that computes a custom relative strength index from the rate of change of a user-selected source. It plots the resulting ARSI line in a separate pane with color coding that turns green above the overbought level and red below t

Indicator v4 Oscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of Asymmetrical RSI

The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup

8D Run

by hasnocool
106 stars

8D Run is a Pine Script momentum strategy inspired by Linda Bradford Raschke. It tracks consecutive price closes relative to a 5-period Simple Moving Average (SMA). When price remains above the SMA for 8 or more bars and then dips below it, the strategy enters

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8D Run
55 stars

This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of Trend & Momentum Analysis

Divergenced K002

by ruckard
13 stars

This strategy enters on divergences between Squeeze Momentum section changes and price, confirming the pattern across two pairs at once. A smaller squeeze with higher price opens a short; a higher squeeze with lower price opens a long. Curie closing moving ave

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced K002

Calculates directional setup scores by evaluating market structure, Fibonacci retracement location, and momentum response metrics. It analyzes confirmed price pivots, movement efficiency, ATR-adjusted Fibonacci zones, and oscillator divergences across user-sel

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Directional Probability Engine [WavesUnchained]

PaperHands

by lunarticktrading
7 stars

PaperHands is an indicator that plots entry, re-entry, and exit signals for LONG and SHORT positions in a separate pane. It calculates signals using multiple confluence conditions such as real candle color, Heikin-Ashi candle color and flat bottoms or tops, He

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of PaperHands

MA ROC Strategy

by suyons
7 stars

MA ROC Strategy calculates five configurable moving averages (SMA, EMA, or WMA) and plots ATR-based Keltner Channels directly on the price chart. It combines moving average crossovers and Rate of Change (ROC) calculations to generate long and short trading sig

Strategy v5 Moving averagesOscillators & momentum
Updated 4 months ago · None stated GitHub repository of MA ROC Strategy
6 stars

Capital41 Williams Flow Simple calculates current and higher-timeframe Williams %R values alongside a volume filter to identify trend regimes and momentum entries. It defines bullish, bearish, or chop market regimes using the higher-timeframe Williams %R. Entr

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Williams Flow Simple v2

Charles' RSI Strategy

by jerryinyang
5 stars

This strategy plots on the price chart and looks for a sequence of RSI overbought or oversold crosses before it can enter. It calculates RSI on a selectable timeframe and compares a fast EMA with a slow EMA, optionally requiring the same moving-average conditi

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Charles' RSI Strategy

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