Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 22)

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

4 stars

This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count

Strategy v6 Moving averagesOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v2 (Relaxed)

RSI EMA Breakout

by latentwill
4 stars

This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position

Strategy v5 TrendOscillators & momentum
Updated 8 days ago · None stated GitHub repository of RSI EMA Breakout

PropFirm Elite Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This price-chart strategy scores Smart Money Concepts setups from break of structure, fair value gaps, order blocks, and volume spikes. A minimum score, optional London and New York killzones, and four-hour plus daily bias filter entries. Position size uses a

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Elite Strategy - QuantAlgo
4 stars

This long-only strategy identifies mean-reversion dip opportunities within established uptrends on daily charts. It opens a position when price is trading above a simple moving average and the Relative Strength Index (RSI) crosses back above a specified overso

Strategy v6 Mean reversionOscillators & momentum
Updated 5 months ago · None stated GitHub repository of RSI Mean Reversion (Long Only)

This strategy buys after a sharp down bar with a long lower wick. It opens one long when the lower wick exceeds the candle body by the pin-bar ratio and the one-bar close change falls past the decline threshold. Size defaults to the full account equity. While

Strategy v6 Candlestick patternsMean reversion Repaints
Updated 10 months ago · Apache-2.0 GitHub repository of youtube布欧量化策略-接针策略

Japo [Alorse]

by Hugs-4-Bugs
4 stars

This strategy plots a fast EMA and a slow EMA of Heikin Ashi closes requested from two higher timeframes, both drawn on the price chart. It enters long when the fast average crosses above the slow average and enters short on the opposite cross, only inside a u

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Japo [Alorse]

FRAMA Strategy

by ShabbirHasan1
4 stars

Calculates a Fractal Adaptive Moving Average (FRAMA) and signal line using multi-timeframe security data, plotted directly on the price chart. Includes an optional SuperTrend filter with customizable factors and period for signal confirmation and visual entry

Strategy v4 Moving averagesTrend Repaints
Updated 1 year ago · Custom licence GitHub repository of FRAMA Strategy

My Strategy Coding

by fox-buddy
4 stars

This script executes a trend-following strategy based on simple moving averages and exponential moving averages. It enters a long position when the 5-period SMA is above the 10-period SMA and the 10-period SMA is above the 34-period EMA. It enters a short posi

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

RSI-7 Breakout

by aofwittawat
4 stars

This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a

Strategy v5 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of RSI-7 Breakout
3 stars

This price-chart strategy is built around RSI divergence using a configurable RSI length and source plus left and right pivot lookbacks. Separate toggles control regular and hidden bullish and bearish divergence plots, and an RSI level is available as a take-p

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Sapphire RSI Divergence Strategy

RTF Strategy

by blackcat1402
3 stars

RTF Strategy is an overlay strategy that tracks Bollinger bands and a lookback of recent highs and lows to decide long and short cycles. It opens a long or short when price crosses the band by a set pivot level, then closes the trade when a take-profit percent

Strategy v4 Volatility & bandsBreakout
Updated 5 years ago · MIT GitHub repository of RTF Strategy
2 stars

This intraday strategy is designed for 5-minute ETF trading, specifically tailored for leveraged assets like TQQQ. It evaluates simple moving average alignment across three lengths and calculates consecutive rising or falling bars over a lookback window to ide

Strategy v6 TrendMoving averages
Updated 9 days ago · None stated GitHub repository of TQQQ MA Accumulation v3-5m
2 stars

The SuperTrend Regime Confluence strategy combines an adaptive SuperTrend indicator with market regime detection to generate trading signals. It computes a composite conviction score using an ADX regime lookback, a trend EMA, and a volume moving average. Trade

Strategy v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of SuperTrend Regime Confluence

Strategy Examples

by danielbodnar
2 stars

Strategy Examples is a Pine Script strategy template demonstrating multiple classic technical trading approaches directly on the price chart. It incorporates a moving average crossover system using SMA or EMA, an RSI mean reversion model operating on overbough

Strategy v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Strategy Examples

BOT SLP 2H ZEGUELA DEMABOT

by danielvm-git
2 stars

This strategy calculates DEMA values using configurable lengths and detects crossovers and crossunders to generate long and short entry signals on the price chart. It plots multiple DEMAs with green, red, and fuchsia colors for visual reference. The main setti

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of BOT SLP 2H ZEGUELA DEMABOT
2 stars

This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in

Strategy v6 BreakoutTrend
Updated 4 months ago · None stated GitHub repository of XAUUSD Momentum Breakout Strategy

Alpy Vix

by avatar-lavventura
2 stars

Alpy Vix is a strategy that computes the Wave Trend oscillator from HLC3 using EMA and SMA, the Williams VIX Fix formula, VWAP levels, and Bollinger Bands on WVF. It generates signals on WT crosses and WVF conditions like long_VWMA or close strength versus pri

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

Box Scalper v4

by wynnforthework
2 stars

Box Scalper v4 is a strategy that plots buy and sell signals on the price chart using ADX trend filters, QQE momentum oscillator, and BOX channels. It signals entries based on crossovers and zone conditions, with trailing stop loss and take profit targets. Par

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Box Scalper v4

Breakout Strategy

by Web3Degenerate
2 stars

This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di

Strategy v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Strategy

Undercut

by kat3samsin
2 stars

Undercut is a momentum and volatility strategy that evaluates relative strength, choppiness, and stochastic indicators in a separate pane. It enters long trades when RSI remains above the Choppiness Index for a specified lookback period and Stochastic %K cross

Strategy v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · MIT GitHub repository of Undercut

Candlestick Patterns

by pineforge-4pass
1 stars

This strategy detects bullish and bearish engulfing candles, hammers, shooting stars, and morning stars from current and prior bar bodies. It enters long when a bullish pattern occurs while price is below a simple moving average, and short when a bearish patte

Strategy v6 Candlestick patternsTrend Repaints
Updated 7 days ago · Apache-2.0 GitHub repository of Candlestick Patterns

Hash Supertrend

by kanylbullen
1 stars

A Supertrend strategy with adjustable ATR length and multiplier, drawn on the price chart. It sizes positions at a percentage of equity and offers an optional time filter limiting trading to chosen hours. Visual options include colour intensity, a glow effect,

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of Hash Supertrend
1 stars

A Pine v6 research strategy for crypto charts that scores several modules, namely RSI, Fibonacci Bollinger Bands, a trend moving average with higher timeframe filter, Ichimoku, candlestick patterns and chart patterns, then enters when a weighted score passes a

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro v6 Megalithic Research

MTF Confluence Spot Strategy

by MuhammadMuhamid
1 stars

A long-only spot strategy where each filter has its own timeframe and on/off switch, and a trade needs every enabled filter to pass. Gates include Supertrend, RSI and Volume Flow Indicator, with structure filters such as support zones, supply and demand, liqui

Strategy v6 SMC / ICT / price actionTrend
Updated 13 days ago · None stated GitHub repository of MTF Confluence Spot Strategy

Pin Bar Strategy

by moonyroy
1 stars

This strategy identifies long and short pin bar candlestick patterns aligned with trend conditions defined by an Exponential Moving Average (EMA) and an Average True Range (ATR) filter. Long trades enter when an uptrend is active, price is near the EMA, and a

Strategy v6 Candlestick patternsTrend
Updated 3 weeks ago · None stated GitHub repository of Pin Bar Strategy

AlgoBot Strategy

by femibol
1 stars

A strategy that approximates a trading bot's entry and exit rules in three modes: EMA 8 and 21 momentum with ADX and a volume surge, relative-volume momentum, and a daily SuperTrend trend rider using a daily EMA, ADX and consecutive green days. Exits include a

Strategy v5 Oscillators & momentumTrend
Updated 6 weeks ago · None stated GitHub repository of AlgoBot Strategy

Strategy Template

by MoDarK-MK
1 stars

This strategy template provides a modular foundation for building TradingView v6 backtests. It uses a placeholder Exponential Moving Average crossover signal combined with customizable filters for higher-timeframe trend alignment, volatility regime thresholds,

Strategy v6 TrendMoving averages
Updated 8 weeks ago · MPL-2.0 GitHub repository of Strategy Template

TRAMA Turtle

by dwightspitz
1 stars

A strategy that draws a triple Hull moving average cloud and up to five TRAMA adaptive average clouds on the price chart, each with its own length, delay and timeframe. Only the Hull and first TRAMA clouds are on by default. It includes ATR-based position sizi

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of TRAMA Turtle
1 stars

A counter-trend strategy that fades price when it reaches a Pivot Point SuperTrend band, selling into upward stretches and buying into downward ones. Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · None stated GitHub repository of Contra Pivot SuperTrend Fade

Regime Trend Rider

by jayadevrana
1 stars

This long-only trend strategy trades only while price is above a 200-period SMA that is also rising. It enters when price crosses back above a 20-period EMA after a pullback within that uptrend, and exits on an ATR-based chandelier trailing stop that ratchets

Strategy v6 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of Regime Trend Rider

GEKO Ultimate - UO Williams Baseline

by grzegorzkowalskigk-jpg
1 stars

This strategy applies Larry Williams' Ultimate Oscillator rules, blending 7, 14 and 28 period buying pressure, and draws in a separate pane. A long entry needs the oscillator below 30, a bullish price divergence and a break above the oscillator peak from that

Strategy v6 Oscillators & momentumDivergence
Updated 3 months ago · Custom licence GitHub repository of GEKO Ultimate - UO Williams Baseline

EMA Channel Reversal

by rubbermetal
1 stars

EMA Channel Reversal is a strategy that plots a 200-period EMA channel built from highs, closes and lows, plus fast and slow momentum EMAs with an optional glow. Entries follow a tracked sequence of breakout, momentum confirmation and pullback, with an alterna

Strategy v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of EMA Channel Reversal

The If Wrapped Subexpression Condition strategy is an exponential moving average crossover trading model. It calculates an 8-period fast EMA and a 21-period slow EMA from closing prices. The strategy executes a long entry when the fast EMA crosses above the sl

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of If Wrapped Subexpression Condition

Talons Ichimoku Breakout

by muammeryldrm42
1 stars

A strategy that computes Tenkan, Kijun and both Senkou lines from highest and lowest midpoints and plots the cloud with a coloured fill. It goes long when price is above the cloud, Tenkan crosses above Kijun and the cloud is green, and short on the mirrored co

Strategy v5 TrendBreakout
Updated 5 months ago · None stated GitHub repository of Talons Ichimoku Breakout

Renko Reversal

by PETERSAMUELOPS12
1 stars

A strategy that trades direction flips on ATR-sized Renko-style bricks. A long opens after a set number of consecutive up bricks and closes after the same number of down bricks, with optional shorts. Brick size can be a fixed value or ATR multiplied by a facto

Strategy v6 Trend
Updated 5 months ago · None stated GitHub repository of Renko Reversal

AlgoBot VWAP Pullback Strategy

by ghostnathan30-ops
1 stars

A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries

Strategy v6 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Pullback Strategy

High Margin Pro

by Sandesh30-cloud
1 stars

High Margin Pro is a long-only chart strategy. It plots a 50-period EMA, a 200-period EMA, and a 60-minute 200-period EMA. A long entry requires the fast EMA above the slow EMA, price above the higher-timeframe EMA and within one ATR below the fast EMA, an RSI

Strategy v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of High Margin Pro

BTCDOM Strategy

by AlanGuo
1 stars

A long-only strategy that reads Bitcoin daily closes through request.security and compares them with a 30-day simple moving average widened by a slippage percentage. It buys when Bitcoin falls below the lower offset line and closes the position when Bitcoin ri

Strategy v6 Mean reversionMoving averages
Updated 7 months ago · None stated GitHub repository of BTCDOM Strategy
1 stars

The quality-first 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

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

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a Bitcoin-focused strategy script that plots time-based halving cycles, supply and demand zones, a ZigZag indicator, a Rainbow ribbon, and an Ichimoku Cloud directly on the main price chart. The script models historical and projected BT

Strategy v6 TrendSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

This intraday strategy identifies mean-reversion fade setups around the previous day's high and low (PDH/PDL). Operating within a configurable morning session window, it seeks rejection setups confirmed by volume spikes above an average threshold. Trades use s

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of PDH/PDL Mean Reversion Fade
1 stars

MACD Divergence - Reversal Hunter detects regular and hidden divergences between price action and the MACD line using pivot points. It generates buy signals on bullish divergences and sell signals on bearish divergences, with optional RSI filter for overbought

Strategy v5 DivergenceOscillators & momentum
Updated 8 months ago · None stated GitHub repository of MACD Divergence - Reversal Hunter
1 stars

A Pine v5 strategy that draws trendlines through confirmed swing highs and lows on the price chart. Swing pivots are confirmed after a set number of bars to the right, and a minimum slope angle removes flat lines. A trade mode setting chooses between breakout

Strategy v5 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of ATTraderAlgo Auto Trendline Trader

Stratégie Vumanchu-SMC

by matlaenousse
1 stars

Stratégie Vumanchu-SMC combines Smart Money Concepts with Vumanchu momentum signals to execute trades directly on the price chart. It detects market structure transitions such as breaks of structure and changes of character, while mapping order blocks and fair

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 10 months ago · None stated GitHub repository of Stratégie Vumanchu-SMC

MA Crossover Strategy

by surajmateti
1 stars

This long-only strategy calculates fast and slow moving averages to generate trend-following trade signals. It enters a long position when the fast moving average crosses above the slow moving average, and closes the trade when a bearish crossover occurs. Movi

Strategy v5 Moving averagesTrend
Updated 11 months ago · None stated GitHub repository of MA Crossover 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