Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 11)

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

Bitcoin Momentum Strategy

by Web3Degenerate
2 stars

This strategy enters long positions when price trades above a higher-timeframe exponential moving average and momentum conditions are clear. It avoids new entries during volatility caution periods, which trigger when pullbacks exceed specified Average True Ran

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Bitcoin Momentum Strategy
2 stars

This strategy calculates the built-in Supertrend indicator using customizable ATR length and factor multiplier parameters, plotting the trend lines and colored fills directly on the price chart. It executes a long order when the Supertrend direction flips to b

Strategy v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of 슈퍼트렌드 전략
2 stars

This trend-following strategy plots an 8-period WMA on close prices, a 10-period WMA on open prices, a 100-period Hull Moving Average, and a VWAP EMA overlay on the price chart. It enters long when the fast WMA crosses above the slow WMA while above the HMA fi

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of [CBB] LWMA OCx 8/10 Strategy

Mini-Project

by Core-Four
2 stars

Mini-Project is a multi-indicator trading strategy that overlays technical indicators directly on the price chart. It provides modular components including Linear Regression, the Relative Strength Index (RSI), MACD, Parabolic SAR, and Supertrend. Users can tog

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Mini-Project

Sassiz Chandelier Exit

by sassiz-root
2 stars

This Pine Script v5 strategy calculates ATR-based trailing stops for crypto trading on the price chart. It defines a long stop as the highest close minus ATR times multiplier and a short stop as the lowest close plus ATR times multiplier. The script dynamicall

Strategy v5 TrendVolatility & bands
Updated 3 years ago · MIT GitHub repository of Sassiz Chandelier Exit

Supertrend UP/DOWN

by minaecer
2 stars

This strategy plots a Supertrend line on the price chart and colors it green in an up direction and red in a down direction. It also marks direction changes with arrows below the bar. Entries come from a separate moving-average rule: a long when the 14-period

Strategy v5 TrendMoving averages
Updated 4 years ago · MPL-2.0 GitHub repository of Supertrend UP/DOWN

Breaking fractals

by DaniilOkrug
2 stars

This strategy identifies trend changes using fractals from a higher timeframe and the current chart timeframe. It opens buy or sell orders on breaks of lower-timeframe fractals aligned with the higher-timeframe trend. Normal trading mode exits on trend reversa

Strategy v5 TrendBreakout
Updated 4 years ago · MIT GitHub repository of Breaking fractals

Overbought

by kat3samsin
2 stars

This strategy identifies overbought conditions in uptrends for long entries. It calculates RSI with 14 periods, 50 and 200 period SMAs, ALMA smoothed close, and Stochastics with customizable K D and smooth periods. Entries occur when RSI exceeds 70 price excee

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Overbought

Gamma/X Killzone Sweeps (strategy)

by OverleveragedWhale
1 stars

A strategy version of the killzone sweep idea. In the Asia, London, New York AM and PM windows it waits for the previous killzone's high or low to be swept and reclaimed, then enters on the close with a stop just past the wick and a fixed point target for ES o

Strategy v6 SMC / ICT / price actionSessions & time

Asif Dip v2 Daily

by Asifali549
1 stars

A long-only daily strategy for crypto that buys short-term dips inside an uptrend. It requires the close above a long EMA, a medium EMA above the long one, an optional Bitcoin trend filter, and a very low three-period RSI. Entry is at the next open. The stop i

Strategy v6 Mean reversion
Updated yesterday · None stated GitHub repository of Asif Dip v2 Daily
1 stars

A research strategy for the price chart, meant for a five-minute chart with Moscow time. It measures the price move between two time points of the same day, and if the move exceeds a threshold it opens a position at the end of the second slot, either with the

Strategy v6 Sessions & timeMean reversion
Updated yesterday · None stated GitHub repository of Session Triples - 5 Stocks

RSI 30 Turbo Swing

by vriken
1 stars

A long-only strategy that buys stocks after the daily 14-period RSI closes below an oversold level, optionally only above the 200-day average and in a bullish market regime based on an index and VIX. Trades close after a set number of days or earlier when the

Strategy v6 Mean reversionOscillators & momentum Repaints
Updated yesterday · None stated GitHub repository of RSI 30 Turbo Swing

Strategy Template

by Jahanzaib211
1 stars

A strategy template that enters long when a fast EMA crosses above a slow EMA while price is above a higher-timeframe EMA, and short on the opposite setup, optionally limited to a session window. Entries happen only on a confirmed bar with no open position. Ea

Strategy v6 Moving averagesTrend
Updated yesterday · MIT GitHub repository of Strategy Template

Confluence Trend + Momentum

by nvolpe2007-cell
1 stars

A long-or-cash strategy that holds a position only when two conditions agree: the close is above a 100-bar simple moving average and above the close from 20 bars earlier. Otherwise it stays in cash. By default it requests daily bars whatever the chart timefram

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of Confluence Trend + Momentum

ML Strategy Webhook

by GeekRabbit007
1 stars

A simple strategy built to feed a server with alert data. It plots a fast and a slow EMA, 12 and 26 by default, goes long when the fast crosses above the slow, and on the opposite cross closes the long and opens a short. There is no stop loss or take profit, s

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of ML Strategy Webhook

Dip Mafia HODL

by 0xCaretaker
1 stars

A long-only strategy that buys dips and never sells during the test. A buy needs a lower Bollinger Band touch, by default with a close below the midline, plus a MACD or Impulse MACD crossover. Position size is a percent of equity or a fixed cash amount per buy

Strategy v6 Mean reversionOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Dip Mafia HODL

RCCE Scanner v6

by cianfru
1 stars

A strategy that combines four engines into one signal: a Z-score regime classifier, a weekly midline heat score, an exhaustion detector for absorption and climax bars, and a synthesizer that weighs them using confidence thresholds. Entries and exits appear as

Strategy v6 TrendVolatility & bands Repaints
Updated 2 days ago · None stated GitHub repository of RCCE Scanner v6

ES1! Short 1D MA200 MA5

by luifertorres
1 stars

A short-only daily strategy for E-mini S&P futures, the mirror of the long version. It enters short when the 200-period SMA is falling, the candle is bullish and the whole bar sits above the 5-period SMA, and it closes the position when price closes below the

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

Advanced Trade Metrics

by pineforge-4pass
1 stars

Advanced Trade Metrics is an overlay breakout strategy that uses a 20-bar Donchian channel to generate trade signals. It opens long positions when the closing price breaches the prior 20-bar high and short positions when it drops below the 20-bar low. Position

Strategy v6 BreakoutTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Advanced Trade Metrics

RSI Above 70 Buy

by kanylbullen
1 stars

A simple long-only strategy that buys when the RSI rises above a chosen level, 70 by default, and closes the position when the RSI crosses back below that level. The RSI length and the level are adjustable. The RSI line and the level are drawn in a separate pa

Strategy v6 Oscillators & momentum
Updated 7 days ago · None stated GitHub repository of RSI Above 70 Buy

A strategy that defines a 30-minute range, waits for a breakout, then looks for a retracement into a configurable percentage band before entering on a lower-timeframe trigger. The range can be each closed 30-minute candle, the session opening range, or a matur

Strategy v6 BreakoutSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of 30m Range Retracement + 5m Entry Strategy

An earlier Pine v6 version of a day trading research strategy for crypto charts. It combines RSI, Fibonacci Bollinger Bands, trend moving average, Ichimoku, pivot support and resistance, candlestick and chart pattern modules into a weighted score. A trading se

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

MA + R:R Strategy

by MuhammadMuhamid
1 stars

A strategy that combines optional multi-timeframe moving average trend filters, SuperTrend, linear regression, VWMA, volume and higher-high structure checks to trigger entries on crypto spot pairs. Risk is set with a swing-low stop and a take profit at a chose

Strategy v6 TrendMoving averages Repaints
Updated 12 days ago · None stated GitHub repository of MA + R:R Strategy
1 stars

A long-only strategy for the price chart that pairs a lower timeframe with a higher one, selected by a volatility mode: 10 and 45 minutes, 15 and 75 minutes, or 30 and 120 minutes. It buys when price crosses above the 20 EMA with RSI above 52 while price is ab

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of TV Adaptive MTF Strategy

Fibonacci SR Strategy

by moonyroy
1 stars

This strategy identifies bullish and bearish Pin Bar or Engulfing candlestick patterns interacting with Fibonacci levels calculated from a 1,440-bar lookback range. It enters long or short positions when a valid candlestick pattern crosses a Fibonacci level. E

Strategy v6 Support & resistanceCandlestick patterns
Updated 3 weeks ago · None stated GitHub repository of Fibonacci SR Strategy

TradeVisor BTC Strategy

by Rahib00494
1 stars

A Bitcoin strategy that enters long or short when price, a fast and slow EMA and a 50-period SMA trend filter agree, RSI sits inside a set band, MACD line and histogram point the same way, and volume is near its average. Each trade gets an ATR-based stop and a

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of TradeVisor BTC Strategy

ORB + ICT Backtest Strategy v2

by mccallister-dev
1 stars

This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f

Strategy v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v2
1 stars

A long-only strategy ported from a bot, intended for five-minute crypto charts. It buys dips when a reversal candle appears, a three-day trend gate is satisfied, and one of three paths holds: Z-score with RSI, Z-score with the lower Bollinger Band, or RSI with

Strategy v6 Mean reversionScalping
Updated 6 weeks ago · None stated GitHub repository of Crypto Mean Reversion
1 stars

A strategy that scores long and short setups from a three-EMA trend alignment, an RSI position above or below 50 and a volume spike above its 20-bar average. A trade opens when the score reaches a confidence threshold input. Each entry has an ATR-based stop an

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · MIT GitHub repository of Lyzer Core Runtime Proxy
1 stars

A second version of an index-oriented strategy that uses TRAMA adaptive moving averages with short and long lengths, a hold percentage and a hedge percentage. It can add an RSI slope filter on a chosen timeframe and an optional Turtle-style mode that adds to p

Strategy v6 TrendMoving averages
Updated 8 weeks ago · MIT GitHub repository of Hedge Fund Manager 2 SIGIL

CH033 ORB+ Strategy

by sandovalchristian033
1 stars

A Pine v6 backtest strategy for the New York opening range on index futures. It marks the 09:30 to 09:45 range, then looks for a break by wick or close, a return inside the range, and a close across session VWAP in the opposite direction before entering. Stop

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of CH033 ORB+ Strategy
1 stars

This strategy plots the Donchian Channel bands on the price chart to identify breakouts. It enters a long position by placing a buy stop order when price breaks above the upper band during a target execution hour. The order remains open until filled or cancele

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Donchian Breakout
1 stars

This strategy looks for pullbacks to the 21 EMA while the 21, 50 and 200 EMAs are stacked in trend order, with shorts enabled and longs switched off by default. Entries are screened by ADX, RSI range, volume against its average, candle body size, an ATR floor,

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

This is a synchronised build of a basket strategy that places a stop entry just beyond the close of a confirmed signal candle, for 10 lots, inside a trading session. Take profit and stop orders are armed together with the entry so same-bar touches execute corr

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

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is an overlay strategy aimed at gold. It reads a higher-timeframe trend from three exponential moving averages and includes RSI, MACD, Stochastic RSI, ADX, ATR, and volume settings. Optional session, equity-curve, and maximum-drawdown guards

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro

GrimmArty Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy version of a candle and moving average indicator. It draws four smoothed moving averages (21, 50, 100 and 200), a trend fill against the 200 average, three line strike markers and engulfing-style candle markers, and can shade a time-zone tra

Strategy v5 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmArty Strategy

PineFlow — ICT FVG Liquidity Model

by loveyuanfandj-glitch
1 stars

PineFlow is an ICT-based multi-timeframe strategy that identifies fair value gaps on 4H context and 15m setup timeframes to signal liquidity-driven entries on the 1m execution chart. It plots FVG zones as support and resistance levels directly on the price cha

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · MIT GitHub repository of PineFlow — ICT FVG Liquidity Model

MACD Crossover Strategy

by jaichaturvedi88
1 stars

This strategy plots on the price chart and trades long when the MACD line crosses above its signal line. It closes the long when the MACD line crosses back below the signal. Position size is the number of shares that a fixed ten thousand Indian rupees can buy

Strategy v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of MACD Crossover Strategy

Dollar Cross Play

by majohnst
1 stars

The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Dollar Cross Play
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts. Entries use RSI levels with a gap, plus candle color, EMA 200, ATR and body-size filters, and an optional pullback re-entry. This version sets a tighter fixed

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

A strategy version of a chart pattern detector. It builds a zigzag from pivots, finds patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and wedges, and scores their quality. Trades are entered

Strategy v5 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2 Backtest

Simple Options Bias Strategy

by SankarSrinivasan1
1 stars

This strategy determines directional market bias for options traders by combining a 20-period Exponential Moving Average (EMA) and a 14-period Relative Strength Index (RSI). It enters a long position when the closing price is above the 20 EMA and RSI is below

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · GPL-3.0 GitHub repository of Simple Options Bias Strategy

BB(10,2) MTF Confirm

by zraesdev-hub
1 stars

This overlay strategy trades a close and open below the lower Bollinger Band, using a period and multiplier set on the chart timeframe. An optional higher-timeframe Bollinger Band can confirm entries before orders are placed. Mode S1 exits at a percentage take

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

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