Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 37)

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

4 stars

This indicator modifies the classic Supertrend calculation by incorporating the Commodity Channel Index (CCI) to determine trend direction. It calculates ATR bands around the median price and updates trailing stop levels based on whether CCI is above or below

Indicator v4 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Simple Supertrend CCI

The Stock and NQ Futures Convergence Strategy identifies trading opportunities by comparing the Relative Strength Index of the active chart stock against NQ futures. It enters a long position when NQ RSI rises above the upper threshold while the stock RSI stay

Strategy v5 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of Stock and NQ Futures Convergence Strategy
2 stars

This indicator calculates the Relative Strength Index from a chosen price source and length and plots it in a separate pane. It draws horizontal bands at 70, 50, and 30 and fills the area between the outer bands. An optional moving average can smooth the RSI u

Indicator v6 Oscillators & momentumMoving averages
Updated 6 weeks ago · None stated GitHub repository of Relative Strength Index

Alpy Kazan

by avatar-lavventura
2 stars

This strategy tracks market direction using an ATR-based trailing envelope similar to Supertrend, combined with Bollinger Bands, Keltner Channels, and momentum filters. Long and short entry signals trigger on trend direction shifts within a specified backtest

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

Intrabar Efficiency Ratio

by regalouisei
2 stars

Intrabar Efficiency Ratio calculates an efficiency ratio indicator using lower timeframe intrabar data to measure price efficiency and market noise. It plots in a separate pane using customizable visual modes such as Line, Candles, or Circles based on moving a

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Intrabar Efficiency Ratio

RSI Divergence

by Web3Degenerate
2 stars

The indicator detects RSI divergences on the price chart. It calculates the RSI using the close prices with a configurable length and identifies potential trend reversals by comparing swings in price and RSI values. Bullish divergence is signaled when price fo

Indicator v5 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of RSI Divergence

DEPV2 D1 Giriş Kalitesi

by YuceSezar89
1 stars

This indicator evaluates trade entry quality across trend, momentum, volatility, and volume dimensions. It calculates momentum ROC z-scores, ATR-based volatility expansion, volume flow thresholds, and multi-timeframe Heikin Ashi alignment across multiple timef

Indicator v6 TrendOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 D1 Giriş Kalitesi

Davo Indicator

by GreyssonEnterprises
1 stars

This indicator searches price and selected oscillators for five-point W and M formations, based on Davinci's dav-o meter but without a fixed five-bar window. It can scan close price, OBV, Williams %R, RSI, MFI, and DI plus and minus. Enabled sources, strictnes

Indicator v4 Oscillators & momentumVolume
Updated 3 months ago · MIT GitHub repository of Davo Indicator

V11 Swing Sniper Pro

by kevinesk
1 stars

V11 Swing Sniper Pro is a trend-following and swing timing indicator tailored for equity markets such as the KLSE. It overlays key moving averages directly on the price chart and evaluates setups across three structured tiers: trend quality based on Minervini

Indicator v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of V11 Swing Sniper Pro

v5 Combination

by webcrack4
1 stars

This indicator calculates several variants of the MACD oscillator, including Traditional, Histogram, Leader, and Source methods, and overlays the oscillator directly on the price chart. It plots shape labels for MACD and signal line crossovers, while rendering

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of v5 Combination

Tuples

by fiji-solutions
1 stars

This Pine Script indicator demonstrates the use of tuples in Pine Script v5. It defines a function that generates a tuple containing the values 1, 2, and 3. The script then accesses the elements of the tuple and plots the first value on the chart. Additionally

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tuples

KST Step Trend

by amico1234
1 stars

This indicator builds a Know Sure Thing oscillator from four rate-of-change readings of close, each smoothed with a custom EMA and combined with weights of one through four. It then draws a step line in a separate pane that updates only when the oscillator mov

Indicator v4 Oscillators & momentumTrend
Updated 2 years ago · None stated GitHub repository of KST Step Trend
1 stars

A Pine v4 oscillator in a separate pane based on the Coppock curve. It sums two rate-of-change values, smooths the result with a Hull moving average, then draws a smoothed line coloured green or red and filled as an area. A zero line and a 21-bar average of th

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Advanced Coppock Curve

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup
330 stars

This indicator calculates the Directional Movement Index (DMI) and Average Directional Index (ADX) using configurable length and smoothing settings. Plotted in a separate pane, the ADX line changes color dynamically to green when DI+ exceeds DI- and red when D

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of DMI Trade Zone [Alorse]

Function - Logistic Equation

by ricardosantos79
261 stars

Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Function - Logistic Equation

LeMan Trend Indicator

by capissimo
114 stars

LeMan Trend Indicator calculates buy and sell values using normalized differences between current and highest/lowest highs and lows over adjustable lookback periods. It plots a zero line signal in a separate pane and normalized buy and sell lines in colors. Ma

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of LeMan Trend Indicator
99 stars

This indicator plots a Baxter-King symmetric band-pass filter in a separate pane. It estimates the cyclical component of a source series for periods between a minimum and a maximum bar length, using ideal band-pass weights shifted so they sum to zero and remov

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Baxter-King Band-Pass Filter
65 stars

This indicator calculates a 20-period RSI and plots it in a separate pane with a horizontal line at 50. It marks an upward cross of 50 as a long and a downward cross as a short, using small characters on the oscillator. Alerts fire only for the directions the

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

This indicator plots WaveTrend Oscillator values along with MFI and RSI areas on the chart. Colored circles and dots indicate buy and sell signals at wave crossings, overbought and oversold levels. Purple triangles mark regular and hidden divergences. It draws

Indicator v4 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of VuManChu B Divergences

Trend Analysis

by dcaoyuan
55 stars

Trend Analysis plots a 20-period and a 50-period exponential moving average on the price chart. It marks bars whose close is above the faster average with a green square below the bar and marks other bars with a red square above the bar. It also calculates a 1

Indicator v6 TrendMoving averages
Updated 6 months ago · Apache-2.0 GitHub repository of Trend Analysis
16 stars

Implements a Donchian breakout trend-following strategy filtered by ADX trend strength. It initiates long or short positions when price breaks Donchian channel extremes and ADX exceeds a specified threshold. Positions are sized using ATR volatility with Turtle

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 28: ADX Filter

Divergenced L002

by ruckard
13 stars

Divergenced L002 is a trading strategy that identifies divergence setups by tracking state changes in the Squeeze Momentum Indicator relative to price extremes. It enters trades when price and momentum diverge across consecutive momentum color transitions. Pos

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

The indicator scores whether a counter-move against the dominant structure is maturing and whether price has started turning back. It plots a composite score in a separate pane from weighted context, correction maturity, and exhaustion, scaled by trigger and a

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

Folded RSI

by MeridianAlgo
9 stars

This indicator computes an adaptive Relative Strength Index whose length dynamically adjusts based on cycle correlation. It measures the Pearson correlation between price and synthetic sine and cosine waveforms at a target cycle period (and optional second har

Indicator v5 Oscillators & momentum
Updated 4 months ago · MIT GitHub repository of Folded RSI

PaperHands Strategy

by lunarticktrading
7 stars

PaperHands Strategy is an intraday trading system displayed in a separate pane, driven by momentum signals such as Laguerre RSI. It executes long and short entries, re-entries, and signal-based exits with risk management rules. Position exits support fixed-tic

Strategy v6 Oscillators & momentumSessions & time
Updated 2 weeks ago · None stated GitHub repository of PaperHands Strategy

MACD %

by suyons
7 stars

The MACD % indicator calculates a percentage-normalized Moving Average Convergence Divergence oscillator plotted in a separate pane. Instead of displaying the standard absolute difference between fast and slow moving averages, it computes the spread as a perce

Indicator v5 Oscillators & momentumMoving averages
Updated 4 months ago · None stated GitHub repository of MACD %
4 stars

This overlay indicator combines up to six optional signals and scores how many of them agree. It checks RSI-2 crosses of 30 and 70, MACD line crosses, Bollinger squeeze breakouts, volume spikes, triple EMA alignment, and price relative to the Ichimoku cloud. E

Indicator v5 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Ensemble Validator STEPFUN

ALGOX

by IAMATOMIC001
3 stars

ALGOX is a trend-following strategy combining Heikin-Ashi price feeds, ATR-based Supertrend bands, moving average ribbons, and RSI filters. It generates long and short entries when price aligns across multi-timeframe moving averages and RSI thresholds, managin

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of ALGOX

Alpy Kazan2

by avatar-lavventura
2 stars

This strategy detects momentum shifts using the WaveTrend oscillator where wt1 crosses above wt2 for long entries and below for shorts. Fractal patterns confirm reversals with upFractal and downFractal signals based on high and low price swings over multiple b

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Kazan2

XO_macd

by wynnforthework
2 stars

XO_macd is an overlay strategy combining exponential moving average crossovers with MACD calculations. It tracks fast, slow, and consolidated bias EMAs to identify trend changes, coloring price bars and plotting Bull or Bear triangle shapes when conditions tri

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of XO_macd

RSI Strategy

by Web3Degenerate
2 stars

This strategy combines RSI extreme condition filters with engulfing candlestick patterns to identify reversal entries. It opens positions on confirmed bars when an overbought or oversold RSI aligns with a bullish or bearish engulfing pattern. Stop losses are c

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Strategy

JAT+BSM Pro v13

by majixai
1 stars

A strategy that combines an AlphaTrend style volatility core with a MACD condition, higher-timeframe background, three consolidation layers with volume profile buckets, candlestick and macro pattern labels, and a forecast with Bayesian lookback. Cross-asset sy

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

DEPV2 DEBUG ALL

by YuceSezar89
1 stars

DEPV2 DEBUG ALL evaluates multi-asset market dynamics across up to 20 cryptocurrency symbols using four distinct analytical dimensions: trend, momentum, volatility, and volume. It computes and displays diagnostic signal outputs in a separate pane, allowing tra

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

Mirror Oscillator

by morindok
1 stars

The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close

Indicator v6 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator

Davo Strategy

by GreyssonEnterprises
1 stars

A strategy version of a W and M pattern detector that looks for five-point double-bottom and double-top shapes in price, on-balance volume and optionally Williams %R, MFI, RSI and directional movement. Each source has strict matching, maximum width and offset

Strategy v4 Oscillators & momentumDivergence
Updated 3 months ago · MIT GitHub repository of Davo Strategy

SMA Rate of Change

by rubbermetal
1 stars

SMA Rate of Change measures the rate of change of a simple moving average, using a fast (20) and an optional slow (200) average, and plots both in a separate pane. Values can be shown as a percent or scaled by price. Optional extras include a histogram, fills,

Indicator v6 Oscillators & momentumMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of SMA Rate of Change

v5 combination by yzz

by webcrack4
1 stars

This indicator overlays a volume or market profile histogram on the price chart and also draws a MACD-style overlay. It builds rows from lower-timeframe bars over the visible range, an anchored start, or all history, then marks the point of control and optiona

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

QS Fast Coppock

by nvFede
1 stars

A Pine v4 oscillator in a separate pane. It adds a 14-bar and an 11-bar rate of change of the close, then smooths the sum with a Hull moving average, whose length defaults to 10. The resulting curve is plotted against a zero line. The three lengths are adjusta

Indicator v4 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of QS Fast Coppock

This indicator scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup Scanner

This indicator applies a k-nearest neighbours (kNN) classification algorithm using Aroon indicator lags and momentum as feature inputs to forecast market direction. It compares current values against historical feature sets to classify bars into buy, hold, or

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (aroon)
55 stars

The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by

Indicator v6 TrendVolatility & bands
Updated 6 months ago · Apache-2.0 GitHub repository of VibeTrader Signal System
47 stars

The Dynamic Momentum Index (DYMOI) calculates a volatility-adaptive Relative Strength Index based on price volatility ratios. It measures short-term versus long-term standard deviation to dynamically adjust the RSI lookback period. Higher volatility shortens t

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · MIT GitHub repository of Dynamic Momentum Index (DYMOI)

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