Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 5)

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

3xEMA 1min Startegy

by DaniilOkrug
2 stars

This strategy identifies entry setups on short timeframes by combining moving average trend filters with Bill Williams fractal breakouts. It tracks multi-bar high and low fractals to establish market structure, waiting for confirmed fractal breaks in the direc

Strategy v5 Moving averagesSupport & resistance
Updated 4 years ago · MIT GitHub repository of 3xEMA 1min Startegy

DCA Bot Backtest

by Metzenas
2 stars

A dollar-cost averaging strategy template designed to simulate algorithmic DCA trading bots. It initiates a base order immediately or based on indicator inputs, then scales into positions with safety orders as price deviates against the entry, applying configu

Strategy v4 Mean reversion
Updated 5 years ago · None stated GitHub repository of DCA Bot Backtest

BIAS

by kat3samsin
2 stars

This multi-indicator strategy combines the Relative Strength Index (RSI), Choppiness Index, Stochastic Oscillator, and an Arnaud Legoux Moving Average (ALMA). It plots RSI, Stochastic, and Choppiness lines in a separate pane. Long entries trigger when RSI cros

Strategy v4 Oscillators & momentumMoving averages
Updated 5 years ago · MIT GitHub repository of BIAS

Asif 4H TP5 and MS Break

by Asifali549
1 stars

A long-only strategy for crypto on the 4-hour chart that combines two entry types: an Ichimoku plus market structure break signal, and a structure break confirmed by a volume spike. Trend EMAs and a volume multiple filter entries, and each signal type has a co

Strategy v6 BreakoutTrend
Updated yesterday · None stated GitHub repository of Asif 4H TP5 and MS Break

NSE Swing v6 Pro UI

by Tilak004
1 stars

A trend-following swing strategy for Indian stocks. Longs need an EMA 21, 50 and 200 alignment with rising slopes, then enter on a pullback to the 21 EMA or a breakout above a recent swing high, filtered by ADX, volume against its average, RSI and an optional

Strategy v5 TrendBreakout
Updated yesterday · None stated GitHub repository of NSE Swing v6 Pro UI

BTC Trend Ensemble 2-of-3

by nvolpe2007-cell
1 stars

A long-or-cash strategy where three trend checks vote at each daily close: price above a 100-bar SMA, above a 200-bar SMA, and above its close 90 bars earlier. It holds a long position when at least the required number of votes agree, two by default, and moves

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of BTC Trend Ensemble 2-of-3

BB StochRSI ADX Scalper

by surendra2304
1 stars

A mean reversion strategy that buys when price dips below the lower Bollinger Band while Stochastic RSI is oversold and crosses up, and sells short on the mirror setup at the upper band. Entries are skipped when ADX is above a maximum, to avoid strong trends.

Strategy v5 Mean reversionScalping
Updated 2 days ago · None stated GitHub repository of BB StochRSI ADX Scalper

SMC Confluence Engine Strategy 2

by shubhamtaywade82
1 stars

A smart money concepts strategy drawn on the price chart. It marks break of structure and change of character, order blocks, liquidity sweeps and optionally internal structure, equal highs and lows, fair value gaps and premium and discount zones. Long entries

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 days ago · None stated GitHub repository of SMC Confluence Engine Strategy 2
1 stars

This trend-following strategy implements Paul Tudor Jones' long-term moving average rule directly on the price chart. It calculates an SMA or EMA baseline with an optional percentage band and a confirmation close counter to filter out false breakouts. The stra

Strategy v6 TrendMoving averages
Updated 3 days ago · MPL-2.0 GitHub repository of 200-Day Rule (Paul Tudor Jones) [JR]
1 stars

This strategy for index futures models an ICT sequence on the price chart. Price sweeps a liquidity pool, either the previous day high or low or confirmed swings. A displacement close then shifts market structure, and a limit order is placed at the fair value

Strategy v6 SMC / ICT / price action Repaints
Updated 4 days ago · MIT GitHub repository of Liquidity Sweep, MSS and FVG Entry Model

BigStrategy

by hoox-sh
1 stars

A simple price-action strategy that goes long on a bullish bar closing above the prior close with a higher high, and short on the mirror-image bearish bar. Each entry comes with a stop, a limit and a trailing value set as percentages of price. It also closes a

Strategy v6 Breakout
Updated 4 days ago · AGPL-3.0 GitHub repository of BigStrategy

ES1! Long 1D MA200 MA5

by luifertorres
1 stars

A long-only daily strategy for E-mini S&P futures. It enters long when the 200-period SMA is rising, the candle is bearish and the whole bar sits below the 5-period SMA, and it closes the position when price closes above the 5-period SMA. Size is a fixed one c

Strategy v6 Mean reversionMoving averages
Updated 5 days ago · MIT GitHub repository of ES1! Long 1D MA200 MA5

Trend Mastery

by LemonPower21
1 stars

A long-only trend strategy using a 50-period and a 200-period EMA with an RSI filter. It buys when price crosses above the fast EMA or the fast EMA crosses above the slow one, provided price is above the slow EMA and RSI is above a set level. It closes when th

Strategy v5 TrendMoving averages
Updated 5 days ago · None stated GitHub repository of Trend Mastery

Adaptive MA Function

by pineforge-4pass
1 stars

This strategy calculates Kaufman's Adaptive Moving Average (KAMA) using a custom efficiency-ratio function on closing prices. It plots a color-coded KAMA line directly on the price chart, turning green when the slope is positive and red when negative. The stra

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of Adaptive MA Function
1 stars

This test strategy demonstrates Pine Script v6 risk management using maximum consecutive losing days rules. Once the configured start time is reached, it opens long positions on set bar intervals and optionally executes partial position exits. It tests trading

Strategy v6
Updated 6 days ago · MIT GitHub repository of Consecutive Loss Days Isolation R1

This strategy calculates fast and slow EMAs crossed with an RSI filter to generate long and short signals on the price chart. It enters positions based on EMA crossover conditions filtered by RSI thresholds and exits using stop-loss and take-profit levels scal

Strategy v6 TrendMoving averages
Updated 6 days ago · None stated GitHub repository of Hyperliquid-Ready Webhook Strategy Template

A long-only strategy for short-term crypto trading that combines Bollinger Bands, RSI, a 9-period EMA, a 21-period SMA and a Fibonacci window covering about ten minutes of bars. It sizes positions as a percentage of equity and can require a minimum gain before

Strategy v6 ScalpingSessions & time
Updated 7 days ago · None stated GitHub repository of Crypto Long 10m Scalper BB RSI EMA Fib

A strategy that builds a 15-minute opening range box from a configurable session and time zone, drawing its high, midpoint and low lines with price labels. It then trades a break, return and cross sequence around the range, with a reward-to-risk exit model, th

Strategy v6 Sessions & timeBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of 15-Minute ORB Box Break-Return-Cross Strategy

Prior Day Breakout

by allanninal
1 stars

This strategy plots the previous trading day's high and low on the price chart and enters on the first close beyond either level, once per side per day, between 01:00 and 20:00 server time. A long starts above the high and a short below the low. The stop sits

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Prior Day Breakout

NSE Algo Trading System v1

by ArunTelegramBot
1 stars

A strategy for Indian stocks that lets the user choose one of five rule sets: SuperTrend with an EMA, an EMA crossover, RSI with MACD, a Bollinger Band squeeze, or a VWAP pullback. A time window in UTC limits trading to exchange hours. Risk management sizes by

Strategy v5 TrendOscillators & momentum
Updated 10 days ago · None stated GitHub repository of NSE Algo Trading System v1

This strategy trades the New York open on the price chart using an ICT workflow. It sets a higher-timeframe bias from an EMA, structure and session VWAP, requires SMT divergence against a correlated symbol, then waits for an inverse fair value gap and enters o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 11 days ago · MIT GitHub repository of NY Open ICT: HTF Bias + SMT + IFVG Retrace

A Pine v6 day trading research strategy for crypto charts. It blends RSI, Fibonacci Bollinger Bands, trend and higher timeframe filters, pivot support and resistance zones, Ichimoku and pattern modules into a weighted score for entries. A session filter, auto-

Strategy v6 Support & resistanceSessions & time
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Day Trading S/R Execution

Multi-Strategy Bot

by edwinlai2058
1 stars

A Pine v5 strategy, with Chinese input labels, that lets the user pick one of four setups: a short after an RSI overbought exhaustion, a long after an oversold reading, a Bollinger Band reversion, or a VWAP breakout with an EMA. Exits use three take-profit sta

Strategy v5 Mean reversionOscillators & momentum
Updated 12 days ago · None stated GitHub repository of Multi-Strategy Bot
1 stars

This strategy identifies an Opening Price Range during a specified time window and trades breakouts above or below the established range during the New York trading session. Entries can be filtered using optional RSI extremes and EMA trend direction, restricte

Strategy v6 BreakoutSessions & time
Updated 12 days ago · None stated GitHub repository of NQ NY Session OPR Breakout Strategy

AlphaTrend Scalping

by MuhammadMuhamid
1 stars

A strategy designed for a fifteen-minute chart that takes one trade per AlphaTrend buy signal. Entries need price above 15-minute and 1-hour moving averages, plus filters for sideways markets (stacked rising averages, ADX floor, breakout above recent highs). A

Strategy v6 TrendScalping
Updated 12 days ago · None stated GitHub repository of AlphaTrend Scalping

Combo

by pouyA-png
1 stars

This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi

Strategy v5 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Combo

This strategy demonstrates a decoupled architecture where external Python optimization feeds parameters into Pine Script through a formatted configuration payload. The script parses the payload to set the SMA length, ATR length, take profit percentage, and ATR

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Off-Chain Python-Pine Architecture [The Quant Science]

Opening range breakout

by yawningmonsoon
1 stars

This strategy builds an opening-range high and low during a user-defined session, then waits until that session ends. A close above the range enters long and a close below it enters short. The long exit uses the range low as the stop and a limit one range-widt

Strategy v5 BreakoutSessions & time Repaints
Updated 2 weeks ago · MIT GitHub repository of Opening range breakout
1 stars

A long-entry strategy for the price chart that scores twelve conditions: RSI, MACD histogram, an EMA stack, SuperTrend, Bollinger position, ATR volatility, VWAP, volume ratio, stochastic, ADX, Ichimoku cloud and MFI. A buy needs at least nine to pass. Inputs s

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of 12-Indicator Webhook Trigger

FVG Prob TW Strategy

by gplee789-afk
1 stars

This strategy trades Taiwan-stock fair value gaps on the price chart. It marks gaps that pass an ATR size and displacement filter, tracks inverse FVGs, internal order-block retests and sweeps, and scores enabled triggers with fixed weights. A signal confirms o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 3 weeks ago · MPL-2.0 GitHub repository of FVG Prob TW Strategy

RSI Oversold Reversion

by monounsaturated
1 stars

This strategy calculates the relative strength index of the closing price and enters a long position when the RSI crosses above a user-set oversold level. It exits that long with a fixed absolute stop price and a fixed absolute limit price. The main settings c

Strategy v5 Oscillators & momentumMean reversion
Updated 4 weeks ago · MIT GitHub repository of RSI Oversold Reversion
1 stars

A strategy for 15-minute Bitcoin charts that opens a trade when several conditions agree: fast and slow EMA alignment, RSI inside a set band, MACD line and histogram direction, volume above a fraction of its average, price between the Bollinger basis and the n

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of BTC 15M Tight Stop Strategy
1 stars

A strategy for US index, energy, metal, agriculture and livestock futures that reads Commitments of Traders data through a TradingView library. It builds a commercial positioning index and combines it with an RSI to decide long and short entries. Exits can use

Strategy v5 Oscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of COT Strategy - Commodities & Index Futures

ORB + ICT Backtest Strategy v1

by mccallister-dev
1 stars

A Strategy Tester script for opening range breakouts during Asian, London or New York sessions. The range length is selectable, and entries use a close breakout, a break with retest, or a fuller sequence including a liquidity sweep and reclaim. Direction, bias

Strategy v6 BreakoutSessions & time
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v1

Aggressive Scalper

by femibol
1 stars

An open-source momentum scalping strategy for intraday charts of fast-moving stocks. It trades fast and slow EMA lines with a volume surge, a minimum momentum over a lookback, an optional VWAP condition and optional pullback re-entries, capped at a set number

Strategy v6 ScalpingOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Aggressive Scalper

AQR TSMOM Pro Strategy

by cagriKarakulak
1 stars

A Pine v5 strategy that applies time-series momentum, taking the sign of past returns over about one, three and twelve months and averaging them into a long or short score. Position size is scaled to a target annual volatility with a maximum leverage cap, with

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · MIT GitHub repository of AQR TSMOM Pro Strategy
1 stars

A strategy built around a session VWAP and ATR bands during the London window, 08:00 to 12:00 UTC by default. It looks for a pullback to an ATR band followed by a VWAP cross, filtered by an RSI threshold, and evaluates signals on confirmed bars. Stops and targ

Strategy v6 Sessions & timeMean reversion
Updated 7 weeks ago · None stated GitHub repository of EMP Session Momentum v6

A simple strategy that goes long when a 20-period EMA crosses above a 50-period EMA and short on the opposite cross. Each entry gets a stop one ATR away and a take profit set at a risk to reward multiple of the ATR, adjustable by one input. Position size is a

Strategy v5 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of Lyzer Baseline Control - Simple EMA Cross
1 stars

A Pine v6 example strategy from a trading guide that enters long when a fast EMA crosses above a slow EMA and short when it crosses below, defaulting to 10 and 50 periods. Each open position gets a percent stop loss and a percent take profit measured from the

Strategy v6 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of MA Crossover (Guide Example)

AEGIS Demo

by pythonbygabby
1 stars

AEGIS Demo is an EMA crossover strategy designed to trigger webhook signals for an external automated execution bot. It calculates a 20-period fast exponential moving average and a 50-period slow exponential moving average, plotting both lines directly on the

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of AEGIS Demo

XAUUSD LiqSweep+MSS+VP System

by MuthuvelMukesh
1 stars

This intraday strategy executes trades on gold (XAUUSD) 5-minute charts using 15-minute higher-timeframe bias. It identifies key liquidity levels—such as previous day highs and lows, session levels, swings, and equal highs or lows—and waits for confirmed liqui

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of XAUUSD LiqSweep+MSS+VP System

MKUMARAN RRMS Strategy

by shadowmarketai
1 stars

A long and short strategy that finds the lowest low and highest high over a swing lookback of 20 bars. It enters long near the low or short near the high when the reward-to-risk ratio meets a minimum, sizing each trade from a capital figure and a risk percenta

Strategy v5 Support & resistanceMean reversion
Updated 2 months ago · None stated GitHub repository of MKUMARAN RRMS Strategy
1 stars

EMA & Time Exit Strategy v6 is an overlay trend-following strategy based on exponential moving averages and fixed-duration holding periods. It plots a fast EMA and a slow EMA directly on the price chart, triggering a long entry when the fast EMA crosses above

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of EMA & Time Exit Strategy v6
1 stars

This strategy trades pullbacks to the 21 EMA inside a full EMA 21, 50, 200 stack, shorts only by default. Filters include ADX strength, an RSI range, volume relative to its average, a minimum candle body, an ATR floor, a panic-volatility check and an optional

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Adaptive Pullback Momentum 5m
1 stars

This strategy arms a stop entry slightly beyond the close of a confirmed signal candle, filtered by SuperTrend, fast and slow EMAs, MACD, RSI, rising ADX and higher timeframe checks, within a trading session. A basket of 10 lots books half at a one-point targe

Strategy v6 ScalpingTrend
Updated 2 months ago · Custom licence GitHub repository of 5m Weapon One Leg 10 Lots Basket

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