Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 6)

Open-source Pine Script strategies: scripts that place simulated trades, so TradingView's Strategy Tester can report how the rules did on past data.

Pine scripts3,040
Code shown here1,833open licence
Updated in a year1,781
No repaint flag2,645

Strategies: All

Contra v6

by jayadevrana
1 stars

This Pine Script strategy fades exhaustion moves into the Pivot Point SuperTrend band. It buys when price stretches down into the band and sells when price stretches up, using touch, reversal or both triggers. Entries support pyramiding with configurable steps

Strategy v6 Mean reversionVolatility & bands
Updated 2 months ago · Custom licence GitHub repository of Contra v6

KB# GOLD

by jayadevrana
1 stars

KB# GOLD is a trading strategy that identifies trend entries and exits using moving average crossovers and optional Tillson T3 breakout filtering. The script calculates fast and slow exponential moving averages alongside a T3 smoothing curve. When breakout mod

Strategy v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of KB# GOLD

3 - 30 Formula

by jayadevrana
1 stars

A Pine v5 strategy that enters on a 3-period and 30-period EMA crossover when the candle is strong, meaning its body is at least 80 percent of its full range. A bullish cross on a strong green candle opens a long, and a bearish cross on a strong red candle ope

Strategy v5 Moving averagesTrend
Updated 2 months ago · Custom licence GitHub repository of 3 - 30 Formula
1 stars

A strategy that trades only when a fast and slow EMA crossover agrees with an RSI filter and an external signal input. Optional filters add a 200 EMA trend check, a volume multiple and MACD confirmation. Exits use a chandelier and ATR trailing stop with an eme

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of NEXYROTH x AlgoPro Hybrid

FVG + Volatility Regime

by ankitpatel117
1 stars

A strategy that detects three-candle fair value gaps and trades retracements into unfilled gaps, but only when an ATR-based volatility regime agrees. The regime is high or low by comparing ATR to its average or to a percentile, and a toggle flips between high-

Strategy v5 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · MIT GitHub repository of FVG + Volatility Regime

Super Duper Trend

by shahrukhhaider
1 stars

A strategy built on a SuperTrend line using an ATR period and multiplier, entering when the trend direction flips and sizing trades by a fixed amount input. Optional exits can be enabled: a faster SuperTrend, an ATR trailing stop, an EMA exit, and fixed percen

Strategy v6 TrendVolatility & bands
Updated 3 months ago · Custom licence GitHub repository of Super Duper Trend

PineFlow v6 — ORB Risk Strategy

by loveyuanfandj-glitch
1 stars

PineFlow v6 — ORB Risk Strategy executes opening range breakout trades filtered by trend and momentum indicators. It defines an initial opening range and trades breakouts during the active trading session when aligned with fast and slow EMAs, ADX momentum, and

Strategy v6 BreakoutSessions & time
Updated 3 months ago · MIT GitHub repository of PineFlow v6 — ORB Risk Strategy
1 stars

MTF Confluence Strategy is a Pine Script strategy that generates long and short signals based on Supertrend flips on the chart timeframe confirmed by Supertrend on a higher timeframe. Signals require ADX above a threshold for trending conditions and optional v

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of MTF Confluence Strategy

EMA Crossover Strategy

by jaichaturvedi88
1 stars

A simple long-only strategy written for an Indian rupee account. It buys when the close is above a short EMA, default 9, and closes the position when the high falls below a longer EMA, default 26. Order size is a fixed rupee amount divided by price, and tradin

Strategy v6 Moving averagesTrend
Updated 3 months ago · None stated GitHub repository of EMA Crossover Strategy

FVG Auto-Trader

by DANIELMANZRU
1 stars

A strategy that detects fair value gaps and trades only those scoring high on a five-point quality check covering gap size, impulse strength versus ATR, candle body ratio and volume. Optional filters include a 200 EMA trend filter, premium and discount zone, s

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · None stated GitHub repository of FVG Auto-Trader

EMA Cross (Clean)

by ForexCodes-hq
1 stars

A small Pine v6 example strategy that goes long when a 12-period EMA crosses above a 26-period EMA, and only acts on a confirmed bar. After entry it attaches a fixed stop loss placed a set number of points below the average entry price, set by one input. There

Strategy v6 Moving averagesTrend
Updated 3 months ago · MIT GitHub repository of EMA Cross (Clean)
1 stars

The ATR Breakout Channel strategy detects breakouts by comparing the current close price to the high or low of the previous 20 bars, forming a channel. Entries occur when the price breaks through the channel in the trend direction of a 200-period EMA if the tr

Strategy v6 BreakoutTrend
Updated 3 months ago · MIT GitHub repository of ATR Breakout Channel [QuantForge]

Fat Tail System vFinal.2

by zyuzhong470
1 stars

A strategy that looks for a volatility squeeze using a normalised Bollinger Band width, then waits for rising linear regression slope momentum and a break above recent resistance before entering. Exits use an ATR-multiple stop loss, an optional reward-to-risk

Strategy v6 BreakoutVolatility & bands
Updated 3 months ago · None stated GitHub repository of Fat Tail System vFinal.2

Mean Reversion + Trend Filter

by antonispaterakis
1 stars

A strategy that trades RSI reversals in the direction of a 200 EMA trend. It buys when RSI crosses up through the oversold level above the EMA and sells short when RSI crosses down through the overbought level below it. Each trade has an ATR-multiple stop, siz

Strategy v5 Mean reversionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Mean Reversion + Trend Filter
1 stars

BottleRocket Pivot Breakout is an intraday trading strategy designed to capture breakout moves above daily pivot levels. It derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum sto

Strategy v6 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of BottleRocket Pivot Breakout
1 stars

A Pine v6 strategy for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. It enters long or short when RSI pushes through set levels plus a gap, with optional candle color, EMA 200 trend, ATR range and body-size filters, and a pullback re-e

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v20

Pro Algo System

by Meghraj-N
1 stars

This strategy combines a stack of exponential moving averages with RSI, MACD, stochastic and a volume spike check before entering long or short trades. Stops and targets are set from ATR multiples, with an optional ATR trailing stop, and position size is deriv

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Pro Algo System

Sentinel Intelligence Strategy

by FolahanWilliams
1 stars

A strategy that trades mean reversion using a composite score built from RSI, MACD, 50 and 200 SMA trend, Bollinger bands, Z-score and volume. Longs and shorts trigger when oversold or overbought readings agree with a confidence gate, with filters against buyi

Strategy v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Sentinel Intelligence Strategy
1 stars

A strategy for index futures that combines New York session timing, session VWAP with bands, previous day levels and a volume profile with order flow proxies such as delta and a depth-of-market aggression threshold. Inputs set the aggression threshold, how man

Strategy v5 VolumeSessions & time Repaints
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile + Order Flow

BB(10,2) + TP20 SameDay

by zraesdev-hub
1 stars

This strategy draws Bollinger Bands on the price chart and enters long when both the open and the close are below the lower band. Mode S1 exits the same day at a 20 percent take profit or forces a close if that target is missed. Mode S2 can hold for a set numb

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) + TP20 SameDay

OOTM Strategy

by FRX132
1 stars

This strategy tracks the Asia, London and New York session highs and lows and draws them on the price chart. In Sweeps mode it looks for a wick beyond a finished session level that closes back inside; Breakouts mode looks for a close beyond it. Optional EMA 20

Strategy v6 Sessions & timeBreakout
Updated 4 months ago · None stated GitHub repository of OOTM Strategy
1 stars

Array Advanced Helpers is a Pine Script v6 strategy that plots on the price chart. It builds arrays from close, open, high and hl2 to compute the lowest and highest values along with the last index of the highest. Two EMAs with periods 8 and 21 generate crosso

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Array Advanced Helpers
1 stars

A strategy for crypto futures that combines a Hurst exponent estimate with a z-score, ADX, RSI and ATR to separate trending from mean-reverting conditions. It plots a 50-bar high and low as resistance and support lines and uses pivot-style levels for entries a

Strategy v5 Mean reversionTrend
Updated 4 months ago · MIT GitHub repository of QuantiFine v6 Pivot R2 S2
1 stars

Calculates institutional liquidity sweeps across a configurable swing lookback period to trade market reversals directly on the price chart. It enters long when price dips below recent swing lows and closes back above, and enters short when price sweeps swing

Strategy v5 SMC / ICT / price actionSupport & resistance

Talons BB Squeeze Breakout

by muammeryldrm42
1 stars

This strategy identifies Bollinger Band squeezes and enters positions on volatility breakouts. It defines a squeeze when the normalized band width over the last five bars drops below its 25th percentile over a configurable lookback window. When a breakout occu

Strategy v5 Volatility & bandsBreakout
Updated 5 months ago · None stated GitHub repository of Talons BB Squeeze Breakout
1 stars

This overlay strategy is built for MNQ on a five-minute chart and is meant to trade imbalance fair value gaps. It reads one-hour and two-hour closes against exponential moving averages for directional bias, and it flags liquidity sweeps of the previous day hig

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of IFVG Strategy – MNQ 5min
1 stars

A futures strategy that looks for price touching pivot levels or dynamic touch zones during the regular session and enters on a rejection wick. A stack of optional filters must agree: VWAP, EMA, momentum, volume, a higher timeframe trend, a trend cloud, a VIX

Strategy v6 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Pivot Master Bot v4 Strict Zones

BTC 1min CCI Reversal

by PETERSAMUELOPS12
1 stars

A one-minute Bitcoin strategy built on a short five-period CCI of the typical price. A cross above the upper level opens or flips to a long, and a cross below the lower level opens or flips to a short, with each direction switchable. It holds a single position

Strategy v6 Oscillators & momentumScalping
Updated 5 months ago · None stated GitHub repository of BTC 1min CCI Reversal

Sentiment 2

by ggamer5555
1 stars

Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1. It combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotte

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Sentiment 2
1 stars

A strategy that links TradingView to an external trading backend. Its inputs cover an RSI with overbought and oversold levels, a fast and slow EMA pair, and a London kill zone time window. It is set up to send signals to a webhook address, with an optional API

Strategy v5 Sessions & timeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Quantum Trading Connector

BEST Supertrend Strategy

by Ayooluwa-trading-dev
1 stars

This strategy combines a Supertrend line, calculated on a selectable timeframe from daily up to yearly, with a fast and slow SMA pair, 7 and 20 by default. A long needs price above the Supertrend level and the fast SMA above the slow one; a short needs the rev

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of BEST Supertrend Strategy

XAUUSD Renko Scalping

by thealgo899-creator
1 stars

A strategy intended for gold on a Renko chart with a box size of 1. It goes long when close is above its five-bar average and RSI sits between 45 and the overbought level, and short on the mirror conditions. An optional volume filter is available. Stop loss an

Strategy v5 ScalpingOscillators & momentum
Updated 5 months ago · None stated GitHub repository of XAUUSD Renko Scalping
1 stars

This strategy overlays a seven-step smart-money process on the price chart. It compares a higher-timeframe close with an EMA to shade bullish or bearish trend, then marks equal highs and lows, order blocks, fair value gaps, and changes of character. Inputs set

Strategy v6 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of Kasper — 7 Étapes de Trading
1 stars

A long and short strategy that ports smart money concept logic into Pine: fair value gaps, order blocks, and break of structure and change of character from swing pivots. It combines a 4-hour trend timeframe, a 1-hour signal timeframe and a 15-minute confirmat

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of SMC OB+FVG+BOS/CHOCH

BWC Mean Reversion v5

by tonimaxx
1 stars

A long-only strategy for stocks that buys when a very short RSI is below a threshold, the close is under the lower Bollinger Band, price is above a 200-period SMA, the opening gap down is small and average dollar volume clears a floor. It closes the position w

Strategy v5 Mean reversion
Updated 5 months ago · Custom licence GitHub repository of BWC Mean Reversion v5

AlgoBot CL Crude Oil Strategy

by ghostnathan30-ops
1 stars

A first-hour breakout strategy for crude oil futures that captures the 9:30 to 10:30 New York range, then looks for a break between 10:30 and 13:00 in the direction of a 50-period EMA bias. It skips the Wednesday inventory report window and calculates ATR-base

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot CL Crude Oil Strategy

SMC + VWAP Edge Strategy

by StockPro-AI
1 stars

This strategy combines Smart Money Concepts with Order Blocks and Fair Value Gaps alongside multiple VWAP levels including session, weekly, monthly, and anchored variants. It detects confluence zones to generate long and short entry signals on the price chart.

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of SMC + VWAP Edge Strategy
1 stars

This strategy trades BIST30 futures on the price chart using a fast 9-period and slow 21-period EMA crossover signal. It generates buy signals only during Turkish market session hours of 09:30-18:15 UTC+3 and closes all positions automatically at session end.

Strategy v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of VİOP Session Strategy

APEX Scalper v3

by Sandesh30-cloud
1 stars

A Pine v5 strategy that scores trade setups from several indicators before entering. Inputs cover an 8, 21 and 50 EMA ribbon, a higher-timeframe EMA trend check using previous-bar values, RSI, MACD, Stochastic RSI, ADX, a volume spike test and optional London

Strategy v5 ScalpingTrend
Updated 6 months ago · None stated GitHub repository of APEX Scalper v3

Strategy Template

by rubenterlouw
1 stars

A blank strategy template where the author's own entry conditions are meant to be added, with risk controls already coded. These include streak loss control that pauses trading for a timeframe after consecutive losses, a maximum drawdown halt, long and short s

Strategy v6
Updated 6 months ago · None stated GitHub repository of Strategy Template

BOS & CHoCH Strategy

by cavaldos
1 stars

A strategy that detects break of structure and change of character events from swing and internal pivots, based on LuxAlgo-style smart money logic, and draws them on the price chart. The trade-on setting chooses whether swing or internal structure drives trade

Strategy v5 SMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of BOS & CHoCH Strategy

ADX Backtest

by AlanGuo
1 stars

A long-only strategy that uses the Average Directional Index to time entries, with a moving average trend filter. It buys when ADX crosses above a threshold, optionally requiring the plus DI to lead, while price is above a 60-period SMA, EMA or RMA, or when pr

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of ADX Backtest
1 stars

The aggressive preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected in

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Aggressive

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