Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 33)

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

Awesome Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the Awesome Oscillator in a separate pane. It subtracts a 34-period simple moving average of the high-low midpoint from a 5-period simple moving average of the same midpoint. Rising bars are drawn as teal columns and falling bars as red co

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Awesome Oscillator

KC15

by benso87
24 stars

KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · MPL-2.0 GitHub repository of KC15

RSI/BB/60 Strategy

by SammyEnigma
18 stars

This strategy plots Bollinger Bands on the price chart and calculates RSI plus Bollinger Band width from one shared length. It enters long when band width crosses under 0.01, with a stop order at the lower band. It adds short orders when price crosses the uppe

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of RSI/BB/60 Strategy

Divergenced E005

by ruckard
13 stars

Strategy identifying market entries based on Squeeze Momentum Indicator divergence patterns and exiting via Curie Closing Lines moving averages. It evaluates color transitions in the squeeze momentum histogram against price movements to detect divergence condi

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced E005

Stochastic RSI Crossover - Eterna MCP

by EternaHybridExchange
9 stars

This strategy plots a Stochastic RSI oscillator in a separate pane. It computes RSI of close, then a stochastic of that RSI, and smooths the result into K and D lines. It enters long when K crosses above D below the oversold level and short when K crosses belo

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of Stochastic RSI Crossover - Eterna MCP
9 stars

4th Dimension Currency Strength is a multi-currency indicator that calculates and displays relative currency strength across major Forex pairs and Gold. It uses security calls to fetch multi-symbol prices from selected brokers like OANDA or FOREXCOM, comparing

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 5 years ago · None stated GitHub repository of |AG| 4th Dimension Currency Strength

Cerebr

by jerryinyang
5 stars

Cerebr is a multi-timeframe trend-following strategy that combines Hull Moving Average (HMA), SuperTrend, and MACD indicators to generate trading signals. Users can individually toggle each component and adjust parameters such as the higher timeframe HMA perio

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Cerebr

Simpleton Signals KIMI

by eltonaguiar
4 stars

This price-chart indicator is described as producing buy and sell signals with strength levels from 1 to 4. It calculates RSI, MACD, SuperTrend, and fast, medium, and slow EMAs. Labels, background color, and an information table can be shown or hidden, and a m

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Simpleton Signals KIMI

RSI fixed timeframe

by InNoobWeTrust
4 stars

This indicator calculates the Relative Strength Index and a smoothed moving average across a selectable fixed timeframe, plotting the values in a separate pane. Users can customize the timeframe, RSI length, calculation source, moving average smoothing type, a

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI fixed timeframe

This indicator is a debugging example that overlays a scaled close-to-SMA ratio on the price chart. It divides close by a simple moving average, takes the natural log, and multiplies by 100. A triangle appears below the bar when that scaled value exceeds the t

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Simple Test Indicator for Debugging
3 stars

This indicator plots a composite momentum oscillator in a separate pane, featuring a hyper wave calculation and an integrated smart money flow oscillator. It detects both bullish and bearish divergences using an adjustable sensitivity threshold. Additional vis

Indicator v5 Oscillators & momentumDivergence
Updated 12 months ago · None stated GitHub repository of Lux Algo - Oscillator Matrix
3 stars

This strategy is written for NVIDIA stock and overlays the price chart. It opens a long when price crosses above an exponential moving average, the rate of change is positive, and the average true range exceeds the previous daily ATR. It closes that long when

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of NVDA Buy/Sell Strategy

Currency Strength Chart

by itmakesyousick
3 stars

The Currency Strength Chart calculates and plots relative currency strength values for major forex currencies in a separate pane. Calculations can be based on raw price action, RSI, CCI, or Stochastic oscillators, smoothed with various moving average types. Us

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Sniper

by TamTH-Dev
2 stars

Sniper is a custom oscillator indicator that derives Bullish and Bearish lines from close and open prices using a smoothing factor based on trend length. These lines feed into a signal line calculated as EMA over the signal length. The indicator plots Bullish

Indicator v6 Oscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Sniper

This strategy overlays XAUUSD and combines stochastic, RSI, and three EMAs with an ATR-based risk model. Confirm entries can require an M15 overbought or oversold trigger plus a rejection wick, and they stay near Fibonacci or EMA zones without chasing far from

Strategy v5 Oscillators & momentumMoving averages

Alper

by avatar-lavventura
2 stars

This strategy combines a WaveTrend oscillator with a dual-period RSI differential to generate trend-following entries in a separate indicator pane. It calculates fast and slow RSI values, alongside WaveTrend channel lines and overbought or oversold thresholds.

Strategy v4 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of Alper

Volume MACD Histogram

by ankurksoni
1 stars

A separate-pane indicator, short title Vol MACD, that applies the MACD calculation to volume instead of price. It takes a fast and a slow moving average of volume, subtracts them to form the MACD line, smooths that with a signal average and plots the differenc

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Volume MACD Histogram
1 stars

DEPV2 C1c DEVISSO KOLAYLIK calculates a Devisso ratio and ease score for five selectable symbols using daily higher-timeframe data. It computes each symbol's historical ratio percentile over a configurable lookback window alongside a cross-sectional percentile

Indicator v6 Oscillators & momentumScreeners & dashboards Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 C1c DEVISSO KOLAYLIK

This trading strategy generates scalping entries by combining exponential moving averages with momentum and trend filters. It triggers long or short trades when the short EMA crosses the long EMA, provided RSI, MACD, ADX trend strength, and Stochastic levels c

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · Custom licence GitHub repository of Ultimate Scalping PRO Legend Pro

Momentum Cascade

by vedkanani123
1 stars

A separate-pane momentum indicator by Lyro RS that computes rate of change over an adjustable length and passes it through three EMA stages, described as instant, reactive and committed. A trend is flagged only when all three stages agree. It can show signals

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Momentum Cascade

RS Rating vs KLCI

by kevinesk
1 stars

This indicator computes relative strength by subtracting KLCI index returns from stock returns over a user-defined lookback period. It plots the resulting RS percentage in a separate pane using green for positive values and red for negative values. The default

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of RS Rating vs KLCI

Quad Rotation 60 10

by rubbermetal
1 stars

Quad Rotation 60 10 is the slowest pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 60/10 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence ban

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 60 10

Hammers and Stochastic Strategy

by gabriel-klettur
1 stars

Hammers and Stochastic Strategy overlays signals on the price chart by combining candlestick pattern detection with the Stochastic oscillator. It identifies standard hammer and inverted hammer candles and validates them with Stochastic oversold and overbought

Strategy v5 Candlestick patternsOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Hammers and Stochastic Strategy

Franken-Strength

by anil-sn
1 stars

An oscillator in a separate pane that blends a TMO-style momentum count with a scaled RSI. The TMO part compares the close with a run of earlier opens, smooths the result with selectable EMA, SMA or RMA stages, and plots a main line, a signal line and a colour

Indicator v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Franken-Strength

TD Sequential 9/13

by zhuzp98
1 stars

This indicator tracks DeMark's TD Sequential 9 and 13 setup and countdown conditions directly on the price chart. It compares the current close price to the close four bars prior to determine setup counts, switching direction when price crosses. When setup or

Indicator v5 Oscillators & momentumSupport & resistance
Updated 1 year ago · None stated GitHub repository of TD Sequential 9/13

Efficiency Ratio

by JohnsonHsiao
1 stars

Efficiency Ratio measures market efficiency and trend strength over a configurable rolling window by dividing net price displacement by the sum of absolute bar-by-bar price changes. It plots the calculated ratio as an oscillator in a separate pane alongside ho

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Efficiency Ratio

Coppock Curve Strategy

by capissimo
114 stars

This study builds a Coppock curve from two rate-of-change readings smoothed by a weighted moving average and marks signals on the price chart. Long entries occur when the curve crosses above zero or a simple moving-average trigger, and short entries occur on t

Indicator v4 Oscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Coppock Curve Strategy

5212 EMA Strategy

by hasnocool
106 stars

This strategy combines a triple exponential moving average system with a Stochastic RSI oscillator to identify trend-following entry opportunities directly on the price chart. It plots 50, 100, and 200-period EMAs while computing smoothed Stochastic RSI values

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5212 EMA Strategy

The indicator calculates the Average Directional Movement Index (ADX) along with +DI and -DI lines to measure trend strength and direction. It plots ADX, +DI and -DI in a separate pane on the chart. The main setting is the period length for smoothing, defaulti

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Average Directional Movement Index (ADX)

Volume Flow Analysis

by iamrichardD
57 stars

This indicator calculates volume moving averages, volume spikes, and price-volume momentum to detect institutional order flow. It plots in a separate pane and generates visual signals for high-volume activity and flow persistence. Key inputs adjust the volume

Indicator v6 VolumeScalping
Updated 1 year ago · Apache-2.0 GitHub repository of Volume Flow Analysis

Balance of Power

by TWODS-CAPITAL
37 stars

This indicator plots the Balance of Power of each bar in a separate pane. It calculates the ratio of the close-to-open difference to the high-to-low range and draws that value as a red line. Positive readings mean the close is above the open, and negative read

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Balance of Power

Divergenced F002

by ruckard
13 stars

This strategy detects momentum divergences based on shifts between color states of the Squeeze Momentum indicator. It enters long positions when lower price lows form alongside higher oscillator values, and enters short positions on higher price highs with low

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

This indicator overlays buy and sell signals on the price chart by combining multi-period Stochastic oscillators with a Traders Dynamic Index (TDI). It computes three Stochastic oscillators across different lengths and checks if all lengths concurrently reach

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of WE: TDI/STOCH/SIGNALS

This indicator applies Singular Spectrum Analysis (SSA) to decompose price data into distinct structural components, including the underlying trend, long-term periodic cycles, short-term periodic cycles, and high-frequency noise. Using a configurable window le

Indicator v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Singular Spectrum Decomposition [LuxAlgo]

TSI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

The TSI Strategy - Eterna MCP calculates the True Strength Index using double-smoothed momentum and an exponential moving average signal line. It opens long positions on bullish signal line crossovers occurring below zero or in oversold territory, and short po

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of TSI Strategy - Eterna MCP

RSI Trend Strategy

by SynergOps
7 stars

The RSI Trend Strategy combines a short-period Relative Strength Index with 30-period and 100-period Simple Moving Averages to identify trading opportunities on the main price chart. Long positions trigger when a 5-period RSI drops below 30 while price sits ab

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of RSI Trend Strategy

Cerebr Bloop

by jerryinyang
5 stars

Cerebr Bloop is a momentum oscillator calculated by applying Heikin-Ashi candle logic to a zero-centered Relative Strength Index (RSI). Displayed in a separate pane, it visualizes smoothed RSI momentum candles alongside customizable overbought and oversold thr

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of Cerebr Bloop
4 stars

This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode. It enters from the selected signals and exits with percentage take-profit and stop-loss

Strategy v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 KIMI - Enhanced
4 stars

This indicator calculates the Relative Strength Index alongside a smoothing moving average and multiple length tiers based on a fixed timeframe. It draws in a separate pane below the price chart, plotting tiered RSI levels and an optional multi-length average.

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of RSI multi-length fixed timeframe

RSI Basic Indicator

by mitchell-917
4 stars

This indicator calculates the Relative Strength Index from a chosen source and length and plots it in a separate pane. It draws overbought, oversold, and midline levels, optionally shades the background when RSI is outside those levels, and marks crosses into

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of RSI Basic Indicator

P-Dipmix Kripto

by gocaman
3 stars

P-Dipmix Kripto is a multi-indicator oscillator and screener designed to detect dip opportunities in cryptocurrency markets. It calculates WaveTrend oscillator lines, Bollinger Bands, the Awesome Oscillator, and the Accelerator Oscillator to evaluate oversold

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of P-Dipmix Kripto
3 stars

TradingView Debug Example is an overlay indicator that calculates RSI, a simple moving average, and MACD, then marks buy and sell shapes on the price chart. A buy appears when RSI is below 30 and price is above the SMA; a sell appears when RSI is above 70 and

Indicator v5 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of TradingView Debug Example
3 stars

This indicator computes and plots the Slow Stochastic momentum oscillator in a separate chart pane. It calculates the raw stochastic percentage based on price location within the highest high and lowest low range over a user-defined period, smoothing the resul

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of Stochastic Slow (Momentum Oscillator)

Currency Strength Chart

by itmakesyousick
3 stars

This indicator calculates and plots the relative strength of major forex currencies and optional commodities in a separate pane. It fetches price data across configurable broker feeds to calculate relative performance over a selected resolution or lookback per

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

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