Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 18)

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

2 stars

MC Strategy - Defensive executes long trades using a WaveTrend oscillator combined with a volume-weighted money flow calculation. It enters long positions when the WaveTrend lines cross upward under low money flow conditions or when price sufficiently diverges

Strategy v4 Oscillators & momentumVolume
Updated 5 years ago · None stated GitHub repository of MC Strategy - Defensive

RSI powerzone

by kat3samsin
2 stars

The RSI powerzone strategy plots the 4-period RSI in a separate pane along with horizontal levels at 30 and 55. It identifies an uptrend using a series of simple moving averages on the close price. The strategy enters long positions when the uptrend condition

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of RSI powerzone
1 stars

A long-or-cash strategy using the same entry rule as a plain trend filter: the close must be above a 100-bar simple moving average and above the close 20 bars earlier. Position size scales with momentum strength, from a minimum fraction of equity to a maximum

Strategy v6 TrendOscillators & momentum

A SuperTrend breakout strategy for crypto perpetual futures. An auto-adapt option picks the DEMA period, ADX threshold and take-profit multiple based on whether the symbol is Bitcoin or Ethereum, or manual values can be used. Position size comes from a fixed o

Strategy v5 BreakoutTrend Repaints
Updated 4 days ago · MIT GitHub repository of ST Breakout V10.0 Multi-Asset Strategy

ATR Trailing Stop

by pineforge-4pass
1 stars

This Pine Script strategy generates entry signals from an EMA of length 20 crossed by close price. Long crossover enters long position and sets initial trailing stop below close using ATR multiplied by 2.0. Short crossover enters short and sets trailing stop a

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of ATR Trailing Stop
1 stars

A strategy for one-minute charts that trades a breakout of a short opening probe at the cash open in a chosen time zone. It limits entries to the first breakout of the day within a time window and offers fixed risk-multiple, ATR bracket, time-based or session-

Strategy v6 Sessions & timeBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Academia TORB v1.5 Volatility-Regime ORB

A Pine v6 strategy for crypto charts that evaluates RSI, a trend moving average with higher timeframe filter, Fibonacci Bollinger Bands and Ichimoku in a fixed order. Each indicator can be switched on for visuals, for backtesting or both, and entry and exit si

Strategy v6 Oscillators & momentumTrend
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro Phase 1 Weighted Indicators

Master Trading Strategy

by MuhammadMuhamid
1 stars

A heavily modular long strategy for crypto spot pairs in which every filter and exit has its own switch. Entries centre on pivot-based support and resistance across several timeframes with retest confirmation, plus optional moving average, volume, ATR spike, s

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of Master Trading Strategy
1 stars

This strategy identifies trend phases using consecutive directional candle sequences, tracks the trend extreme, and monitors for order blocks confirmed by candle displacement. When price returns to test the identified order block, it enters long or short on a

Strategy v6 SMC / ICT / price actionCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Höhlenmensch Strategie

A multi-asset strategy that scores market sentiment from money flow, stochastic RSI and the price position within a lookback, then compares the score with long and short thresholds that can adapt to volatility. Optional filters add confirmation from three high

Strategy v5 Oscillators & momentumVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of Universal Futures Strategy - Multi-Asset Optimized

Kernal Cipher 3

by kdricha0602
1 stars

Kernal Cipher 3 is a momentum trading strategy that plots signal diamonds on the price chart for breakout, reversal and continuation setups. It calculates EMAs of varying lengths to detect trend regime and slope, ADX for strength confirmation, WaveTrend oscill

Strategy v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 3
1 stars

An intraday strategy for stocks that gap up before the open. It qualifies a symbol by gap size, price band and premarket volume, then trades an opening-range breakout with a volume surge, limited to a set number of trades per day and a cut-off hour in New York

Strategy v6 BreakoutSessions & time
Updated 6 weeks ago · None stated GitHub repository of Premarket Gap Scalper

Options Momentum SIGIL

by dwightspitz
1 stars

A strategy that builds two TRAMA adaptive averages, each compared with a delayed copy of itself to form a cloud on the price chart. Each can use its own timeframe, with 15-second data as the default, which needs a plan that supports seconds charts. An optional

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of Options Momentum SIGIL
1 stars

This Pine Script v6 strategy generates multi-layered trading signals plotted directly on the price chart. It combines eight modular signal engines: EMA crossover pullbacks, price action breakouts, RSI momentum and divergence, MACD histogram flips, volume surge

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Advanced Swing Strategy v6
1 stars

A strategy that uses the underlying stock as a timing proxy for buying around 21-day at-the-money call options. A symbol profile preset selects gates and a higher timeframe. Entries depend on a volume profile value area, a swing VWAP, MACD Heikin-Ashi and a sq

Strategy v6 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of v29 Coldstart Options Proxy
1 stars

A strategy for a Taiwan mini index futures contract that combines a manually updated macro score with chart pattern breakouts. Growth, inflation, valuation and sentiment readings are typed in as inputs and produce a green, red or neutral bias. Entries need fou

Strategy v5 TrendBreakout Repaints
Updated 4 months ago · None stated GitHub repository of Mini Futures Macro Strategy v10

EMA Cross Strategy

by ashishgkwd
1 stars

EMA Cross Strategy is a Pine v4 strategy that plots a fast and a slow exponential moving average, 13 and 48 by default. It enters long when the fast EMA crosses above the slow one and short on the opposite cross, with a trade direction option for long only, sh

Strategy v4 Moving averagesTrend Repaints
Updated 4 months ago · None stated GitHub repository of EMA Cross Strategy
1 stars

This strategy identifies Volatility Contraction Patterns in US stocks using breakout confirmation with volume surge filters. It enters on pattern completion when required conditions such as full TPR or VCP squeeze are met and exits via partial profit targets a

Strategy v6 Volatility & bandsVolume
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX US

This strategy combines multi-timeframe trend bias, hourly liquidity sweeps, and lower-timeframe inversion fair value gap confirmations. It determines daily trend direction using historical daily candles, checks for a 1-hour liquidity sweep and reclaim against

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · MIT GitHub repository of Doc02 H1 Liquidity Sweep IFVG - Project Adapted

Talons EQH/EQL Sweep

by muammeryldrm42
1 stars

This SMC strategy detects EQH and EQL levels from swing pivots using ATR tolerance. It plots EQH as red circles and EQL as green circles on the price chart. Long signals trigger on sweeps where price closes above open after touching EQL on the prior bar. It en

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons EQH/EQL Sweep

Index Futures Beat Buy and Hold

by PETERSAMUELOPS12
1 stars

A leveraged trend-following strategy for index futures that uses 20, 50 and 200 period EMAs to decide between long, flat and optional short positions. Leverage is higher in confirmed uptrends and steeper trends, lower for shorts, and reduced when ATR as a perc

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Index Futures Beat Buy and Hold

BVortex Strategy v1

by Alberto082544
1 stars

BVortex Strategy v1 calculates a scaled Vortex Indicator difference to detect overbought and oversold conditions relative to predefined upper and lower thresholds. It filters entries using market trend direction established by confirmed swing pivot highs and l

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex Strategy v1

AlgoBot ORB Strategy

by ghostnathan30-ops
1 stars

An opening range breakout strategy for Nasdaq and S&P futures on the 15-minute chart. It records the 9:30 to 10:00 New York range, then enters on the first close beyond it, plus a small point buffer, in line with a 50-period EMA bias, until 11:30. Stops are AT

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

EMA Crossover Strategy

by Sandesh30-cloud
1 stars

This strategy tracks trend changes by calculating a 50-period fast Exponential Moving Average and a 200-period slow Exponential Moving Average. It triggers a long entry when the fast EMA crosses above the slow EMA and closes the position when the fast EMA cros

Strategy v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of EMA Crossover Strategy

ICT v4-weinkya Strategy

by tndg16-bot
1 stars

This strategy implements an Inner Circle Trader (ICT) framework by identifying order blocks, fair value gaps, liquidity pools, and optimal trade entry (OTE) zones. It computes a confluence score requiring a user-defined minimum threshold alongside 200 EMA and

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya Strategy

A strategy variant, labeled in its file name as a time-filtered version, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Time Filter

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy plots a Bitcoin all-time-high cycle model on the price chart. It starts from a chosen date and can show an Ichimoku cloud, a fast and slow geometric mean, and supply and demand boxes. Drop percentage, rise percentage, and a weight set the cycle l

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle

This strategy calculates intraday volatility mean reversion using session VWAP standard deviation bands, RSI overbought and oversold levels, and candle wick exhaustion ratios. It enters trades when price reaches statistical extremes filtered by RSI and wick co

Strategy v6 Mean reversionVolatility & bands
Updated 7 months ago · MIT GitHub repository of Intraday Volatility Reversion Z-Score

Ichimoku Cloud Strategy

by Basant1Saini
1 stars

This strategy plots Ichimoku Cloud components on the price chart and generates trades based on trend confirmation. It enters long when a bullish Tenkan-Kijun cross occurs above the cloud or upon a bullish cloud breakout, with optional Chikou Span confirmation.

Strategy v5 TrendBreakout
Updated 8 months ago · None stated GitHub repository of Ichimoku Cloud Strategy

A long and short strategy built on a custom momentum index that combines price velocity, log volume and a standardised Bollinger Band width. A trade needs a recent squeeze in band width, the index breaking beyond its own two-deviation band, and price on the co

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Thermodynamic Volume-Price Resonance (TVPR)

MTF Trend Guardian

by propuchon
1 stars

A strategy that combines a higher-timeframe trend filter with an RSI trigger. It goes long when price is above the previous higher-timeframe EMA and RSI crosses above its long threshold, and short in the mirror case. Positions close when RSI falls below or ris

Strategy v6 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of MTF Trend Guardian

Supertrend 17/3.2

by trustdan
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It uses the built-in Supertrend with an ATR period of 17 and a multiplier of 3.2. It buys when the Supertrend turns to an uptrend and closes the position when it turns

Strategy v6 TrendVolatility & bands
Updated 9 months ago · MIT GitHub repository of Supertrend 17/3.2

VMC Strat Hybrid Trend

by matlaenousse
1 stars

VMC Strat Hybrid Trend is a long-oriented trading strategy plotted directly on the price chart. It combines an exponential moving average trend filter with WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation. Long entries trigger when Wav

Strategy v6 TrendOscillators & momentum
Updated 10 months ago · None stated GitHub repository of VMC Strat Hybrid Trend

EMA Pullback Strategy

by surajmateti
1 stars

This strategy plots a slow trend EMA and a faster entry EMA on the price chart. It opens a long position when price is above the trend EMA, closes below the entry EMA, and crosses back above that entry EMA. It exits with a percentage stop loss and take profit

Strategy v5 TrendMoving averages
Updated 11 months ago · None stated GitHub repository of EMA Pullback Strategy
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then looks for breakouts of that range until a set end time. It tracks whether a long or short has been taken or stopped out each day and sizes positions a

Strategy v5 BreakoutSessions & time
Updated 12 months ago · MIT GitHub repository of Range Breakout Strategy UCMO Research

Lab-Doi-02

by theteelek
1 stars

An experimental strategy lab script that tracks a simulated long position within a date window using a daily EMA 12 and EMA 26 cross as the trend filter. It opens the simulated long when the fast average is above the slow one on a confirmed bar, and closes it

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Lab-Doi-02

Keltner Channel

by Studentcodee
1 stars

The Keltner Channel strategy plots upper and lower bands on the price chart overlay using an exponential moving average or simple moving average combined with ATR or range calculations. The source crosses the bands to generate signals. It enters long positions

Strategy v6 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Keltner Channel
1 stars

A long-only strategy that enters when a fast simple moving average crosses a slow one, using the cross function so either direction of crossing can trigger the entry. Each open position gets a percentage take profit and a percentage stop loss calculated from t

Strategy v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Profit and Stop Loss Strategy
1 stars

A pivot based strategy intended for the USDTHB futures on a 30-minute chart. It detects swing highs and swing lows using a long left bar count and a one bar right count, tracks the latest levels, and trades breakouts of them with a fixed contract count and a p

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of USDTHB TFEX Strategy

SOLBTC MTPI

by Mikelkulla
1 stars

SOLBTC MTPI is a Pine Script strategy designed to gauge whether Solana is outperforming Bitcoin to determine market allocation. It calculates a composite trend signal using liquidity-weighted moving averages with Supertrend logic, DEMA filters, and normalized

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of SOLBTC MTPI
1 stars

This strategy builds Tenkan, Kijun and both Senkou span lines from adjustable periods. It goes long when price is above both cloud spans and Tenkan is above Kijun, and goes short in the mirror case. Each trade carries an ATR-based stop loss and take profit. Th

Strategy v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud Strategy

Double Star Strategy

by mkdir700
1 stars

A strategy for the price chart that combines Bollinger Bands, the MACD line and a small-candle-body test. Shorts follow a close above the upper band with a small body and MACD above zero, then a lower close; longs follow a close below the lower band with a sma

Strategy v5 Mean reversionCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Double Star Strategy

BTC Bot

by zhuzp98
1 stars

A long-only strategy for Bitcoin-style charts that combines an RSI-based momentum signal with a trend filter using one or two simple moving averages. It buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a s

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Bot

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