Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 11)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

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

An overlay indicator that detects swing structure on up to three configurable timeframes and marks break of structure and market structure shift events with lines and labels. Each timeframe has its own swing length, line style, colours and a choice between clo

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Multi Timeframe Break of Structure (BOS) & Market Structure Shift (MSS)
1 stars

This indicator visualizes Wyckoff Volume Spread Analysis principles directly on the price chart. It calculates volume moving averages, bar spread, and close location values to categorize individual candlestick behavior relative to average trading activity. Whe

Indicator v5 VolumeCandlestick patterns
Updated 1 year ago · MIT GitHub repository of VSA Volume Spread Analysis
1 stars

Calculates take profit and stop loss levels from the Average True Range and shows them on the price chart for long and short setups. Settings are the ATR period and separate multipliers for the stop loss and the take profit. The levels are computed from the la

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ATR Auto TP/SL Calculator
1 stars

A plain Average True Range indicator in a separate pane. It plots the ATR of the chart with an adjustable averaging length, 14 by default, and has no signals, levels, alerts or trade rules. The repository description and README present it as a way to size stop

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Average True Range

Micha 150

by crabiner
1 stars

Micha 150 is a trend-following overlay indicator that calculates a 150-period daily Simple Moving Average (SMA) along with its three-point backward difference derivative slope. It identifies entry and exit conditions using customizable percentage buffer zones

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Micha 150

ShinobiTrend

by Yasukeey
1 stars

A feature-rich overlay indicator that prints buy and sell signals with a sensitivity setting, a signal tuner and presets such as All Signals or Trend Scalper. It adds a trend cloud, a long-term trend tracer, pullback signals, trend heatmap candle colouring and

Indicator v5 TrendScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of ShinobiTrend
1 stars

Scans recent price swings on the chart for four harmonic patterns, Bat, Butterfly, Crab and Shark, checking Fibonacci ratios within an adjustable tolerance over a lookback window. Detected patterns are drawn with labels, price levels, a completion marker and a

Indicator v5 Support & resistance
Updated 1 year ago · MIT GitHub repository of Harmonic Pattern Recognition
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

ADX Trend Strategy

by pcjtse
1 stars

This strategy goes long when ADX is above a threshold and price crosses above a 20-period simple moving average, and goes short on the opposite cross. Each entry carries an ATR-based stop loss and take profit, set by two multipliers. Orders use all available e

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of ADX Trend Strategy
1 stars

A candlestick pattern detector for the rising and falling three methods setup on a five-candle window. For a bullish final candle it checks that the three candles before it are bearish and sit within the range of the first candle, and for a bearish final candl

Indicator v5 Candlestick patterns
Updated 1 year ago · MIT GitHub repository of Rise/Fall of Three Methods
1 stars

A strategy built on two Donchian midlines, one long and one short, plus an ATR readout. It enters long when price has crossed above the long line and the short line has crossed above the long line, in either order, and enters short on the mirror pair of crosse

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ardakani Dual Condition Strategy
1 stars

Auto Trend Line Indicator is a minimal overlay script that looks back over a set number of bars for the most recent swing high and swing low, then draws a green line joining them. Swing length and lookback period are the only settings. A new line is created on

Indicator v5 Support & resistance Repaints
Updated 1 year ago · GPL-3.0 GitHub repository of Auto Trend Line Indicator

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

Forex Sessions

by klimasevskiy
1 stars

This indicator highlights key trading sessions directly on the price chart to help identify periods of high volatility. It visualizes Asian, Frankfurt, London, and New York killzones using configurable background boxes, high and low boundary lines, and pip-ran

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Forex Sessions
1 stars

This strategy trades long or short on the chart. It takes a long entry when a fast EMA is above a slow EMA, MACD is above its signal line, ADX is above a threshold and price is above VWAP, or when price breaks above a pivot high; shorts mirror this. Each trade

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of AI-Optimized Trading Strategy

Million Moves Algo

by hasibulc71x
1 stars

A multi-feature chart overlay that generates buy and sell signals from a SuperTrend-style calculation with an adjustable sensitivity and a choice between all signals and smart signals. It can add a trend ribbon, trend cloud, chaos trend line, order blocks, a 2

Indicator v5 TrendScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Million Moves Algo

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
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

Mxwll Suite Strategy

by nishimweprince
1 stars

A strategy built on a smart money concepts toolkit that draws internal and external market structure with break of structure and change of character labels, swing order blocks, fair value gaps, previous day and 4-hour highs and lows, and automatic Fibonacci le

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Mxwll Suite Strategy
1 stars

Daily Range Volatility calculates the percentage range of each bar relative to its midpoint price. It plots this amplitude as silver columns in a separate pane alongside three simple moving averages: a 30-period baseline, a fast 3-period average, and a smoothe

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of Daily Range Volatility
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

Trading Bot

by FedeHide
1 stars

This strategy executes long entries during a user-defined backtest time window. It calculates a 1-period Exponential Moving Average (EMA) and enters long trades automatically within the specified dates. Positions exit when the calculated EMA exceeds the positi

Strategy v5 ScalpingMoving averages
Updated 1 year ago · MIT GitHub repository of Trading Bot

RootNet Trader

by amiremadi
1 stars

A price-chart indicator that shows buy and sell signals together with a numeric strength score for each signal. Options include a signal strategy mode and sensitivity with an automatic setting, filters for consolidation, high volume and smart signals, candle c

Indicator v5 TrendVolatility & bands
Updated 1 year ago · GPL-3.0 GitHub repository of RootNet Trader

FVG Position Bar

by munlit
1 stars

A small Pine v5 indicator that marks fair value gaps on the price chart and shades their position relative to price, with separate colors for buy and sell sides. A single ATR multiplier setting controls how large a gap must be to qualify. Comments and settings

Indicator v5 SMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of FVG Position Bar

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

GDAX EMA Cross Signals

by zawawimanja
1 stars

Plots three exponential moving averages with lengths 12, 26 and 50 as thick lines on the price chart. The README describes using the 50-period line to judge the major trend and waiting for a pullback before entering with it. The visible code has no adjustable

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of GDAX EMA Cross Signals
1 stars

A short overlay indicator that plots rolling resistance and support lines using the highest high and lowest low over a lookback period, 20 bars by default. When a level changes it adds a small label marking the new resistance or support. Inputs set the lookbac

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Support/Resistance Indicator

Bollinger Bands Signals

by techteam92
1 stars

This indicator calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Signals

Label Line

by immy2good
1 stars

A simple example indicator that draws a series of green labels and connects them with red lines on the price chart. On every bar it creates the chosen number of labels, spaced ten bars apart to the right and stepped upward from the high, and joins their coordi

Indicator v5
Updated 1 year ago · None stated GitHub repository of Label Line

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

Basic Engulfing Candles

by fiji-solutions
1 stars

This indicator identifies basic bullish and bearish engulfing candlestick patterns directly on the main price chart. A bullish engulfing signal triggers when a green candle opens at or below the prior bearish candle's close and closes at or above its open. A b

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Basic Engulfing Candles

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

Genie b

by Hurairahengg
1 stars

This minimal Pine Script indicator plots the closing price directly onto the price chart. Developed as part of the GenieV1 automated scalping project, it serves as a lightweight template or baseline script initialized with expanded allowances for boxes, labels

Indicator v5
Updated 2 years ago · None stated GitHub repository of Genie b

Mi Indicador

by winos
1 stars

Plots a fixed list of hard-coded price values as circles and short line segments, offset forward from the last bar so they appear as a manually entered projected path on the chart. The values are typed directly into the code, so they do not respond to market d

Indicator v5
Updated 2 years ago · None stated GitHub repository of Mi Indicador

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

Donchian Channel

by JoeTonDev
1 stars

An overlay that plots a Donchian channel from the prior highest high and lowest low over an adjustable length, with an optional midline and fill, plus a fast and a slow EMA. It highlights a breakout bar when the close crosses the channel, sits on the matching

Indicator v5 BreakoutTrend
Updated 2 years ago · None stated GitHub repository of Donchian Channel

An overlay indicator combining several tools. It finds pivot highs and lows and groups them into support and resistance channels, limited by width, count and minimum strength, drawn with a chosen line style and colours. It also plots three smoothed moving aver

Indicator v5 Support & resistanceMoving averages

ema-strategy-algotrade

by akash-yellgetti
1 stars

A minimal strategy-type script for the price chart that draws a fast and a slow moving average, exponential or simple according to a toggle, and colours the lines and the area between them by the direction of the gap. Inputs set the source, the fast length at

Strategy v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of ema-strategy-algotrade

ITI

by darkshloser
1 stars

A Pine strategy script that overlays three SuperTrend lines with different periods and multipliers, plus a 100-period EMA, and computes the same SuperTrends on a higher timeframe set in minutes. A slope of the third SuperTrend is plotted over a bar-count input

Strategy v5 Trend
Updated 2 years ago · Apache-2.0 GitHub repository of ITI

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
1 stars

A smart money concepts toolkit on the price chart that marks market structure with internal and swing structure, order blocks, equal highs and lows, fair value gaps and premium, discount and equilibrium zones. It can colour candles, flag boring candles and sho

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of My Algo Smart Money Concepts

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

Chart Viewer

by hsmalvajerdi
1 stars

Chart Viewer overlays user-supplied price data on the chart. It reads a Candle array and plots each bar's open, high, low and close with plotcandle, coloring green when close is above open, gray when they match, and red otherwise. A second Order array draws gr

Indicator v5
Updated 2 years ago · None stated GitHub repository of Chart Viewer

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