Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 15)

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

Calculates higher timeframe Exponential Moving Averages, Average True Range, and optional RSI momentum filters to determine market regimes. Enters long positions during bullish regimes and allows scaling in through pyramiding as price advances by a user-define

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Bitcoin Regime Pyramid Strategy
2 stars

[CBB] MTF Penta RSI Strategy is an overlay strategy that tracks momentum across multiple time horizons using five distinct Relative Strength Index (RSI) calculations: a smoothed 4-period RSI, alongside 14, 30, 70, and 120-period RSIs. It evaluates whether thes

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of [CBB] MTF Penta RSI Strategy

Sassiz Ichimoku

by sassiz-root
2 stars

This overlay strategy plots a full Ichimoku set on the price chart: Tenkan, Kijun, displaced Chikou, and Senkou Spans A and B with a colored cloud. It marks a long when a confirmed Tenkan cross above Kijun occurs with price and Chikou above the lines and cloud

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Sassiz Ichimoku

My Strategy

by storm0611
2 stars

The script implements a basic moving average crossover trading strategy directly on the price chart. It calculates a 14-period and a 28-period simple moving average (SMA) and plots them as green and red circles. It enters a long position when the fast SMA cros

Strategy v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of My Strategy
2 stars

This strategy implements an automated dollar-cost averaging (DCA) trading system inspired by Market Cipher indicators. It calculates WaveTrend oscillator crossovers and a volume-weighted Money Flow index to trigger initial base orders, supporting both long and

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of MC Strategy - Aggressive

Oversold

by kat3samsin
2 stars

The oversold strategy identifies oversold conditions using the relative strength index with a 14 period. It applies an arithmetic linear moving average with a 20 period for trend filtering and requires the price to stay within 15 percent of this average. Stoch

Strategy v4 Mean reversionOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Oversold

Calm Kamaz

by Va3elina
1 stars

A one-minute strategy for perpetual crypto contracts that buys sharp drops. Entry needs a low RSI on three-minute candles, a price a set percentage below the hourly high, and a fall over two hours. Up to six larger buys can follow lower down a fixed ladder, an

Strategy v5 Mean reversionScalping Repaints
Updated 2 days ago · None stated GitHub repository of Calm Kamaz

Intraday Regime Follower

by nvolpe2007-cell
1 stars

A long and short trend strategy that compares a 50-bar and 200-bar EMA with price position and EMA slope. It goes long in an uptrend, short in a downtrend and flat otherwise. A hysteresis band must be broken before the state flips, and an ATR-versus-cost gate

Strategy v6 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Intraday Regime Follower

Booming Bulls Sniper

by jayadevrana
1 stars

Implements liquidity sweep and prop firm breakout strategies inspired by the Booming Bulls methodology. The script monitors previous-day, previous-week, and current-day highs and lows for liquidity sweeps where price wicks beyond a level without closing past i

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of Booming Bulls Sniper

Strategy RSI

by Jakub-Pinkowski
1 stars

Calculates the Relative Strength Index (RSI) to generate entry signals directly on the price chart. The strategy opens a long position when the RSI crosses above the oversold level and a short position when it crosses below the overbought level. Users can cust

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

Aperture COG LinReg

by pineforge-4pass
1 stars

A long-only strategy that combines the Center of Gravity oscillator with a linear regression path. It enters long when the oscillator crosses above its EMA signal while the regression line is rising and price sits above it. It exits when the oscillator crosses

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Aperture COG LinReg
1 stars

A Supertrend strategy drawn on the price chart whose multiplier can adapt to the detected market regime using ADX. Entries need a minimum signal score and can be filtered by a trend EMA, a skip-ranging rule, a volume filter and a bar cooldown. Stop loss can us

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of SuperTrend AI Strategy Adaptive

A Pine v6 research strategy for slower accumulation on crypto charts. It uses fast and slow trend EMAs, a weekly higher timeframe filter, an RSI accumulation threshold and a multi-timeframe regime cascade. Up to three entries can be added with a minimum bar ga

Strategy v6 TrendSupport & resistance
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro Long Term Hold Companion

MA + R:R Strategy (tuned)

by MuhammadMuhamid
1 stars

A long-only crypto spot strategy variant that makes a multi-timeframe moving average trend the primary entry trigger, with 300-period averages on one-minute and five-minute charts and a rising-slope requirement. Other trend, volume and structure filters are av

Strategy v6 TrendMoving averages
Updated 13 days ago · None stated GitHub repository of MA + R:R Strategy (tuned)
1 stars

This overlay strategy combines a fast and slow EMA, MACD, and RSI smoothed by an EMA. It opens a long when any one of those three crosses bullish while the other two stay aligned upward, and it opens a short on the matching bearish combination. Trades are limi

Strategy v5 TrendOscillators & momentum
Updated 3 weeks ago · None stated GitHub repository of EMA + MACD + RSI Strategy
1 stars

A test strategy used to check how a converter handles broker emulation. It goes long when a 9-period EMA crosses above a 21-period EMA and short on the opposite cross. Open longs get a stop and a limit set from ATR multiples, while shorts get an ATR-based trai

Strategy v6 TrendMoving averages
Updated 3 weeks ago · Apache-2.0 GitHub repository of AlphaResin Conformance 3

Fibow

by moonyroy
1 stars

Fibow is an intraday trading strategy that tracks daily price extremes to calculate directional Fibonacci support and resistance levels. It monitors price action for Pin Bar and Engulfing candlestick patterns reacting at key Fibonacci retracement thresholds. U

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

Daily Trend Rider

by femibol
1 stars

A long-only swing strategy for daily charts of liquid stocks. It requires several consecutive green closes, a close above the 20 EMA, ADX above a minimum and a bullish SuperTrend, within a price band. Entry is a break of the prior high on volume or a pullback

Strategy v6 TrendBreakout
Updated 6 weeks ago · None stated GitHub repository of Daily Trend Rider

Hedge Fund Manager SIGIL

by dwightspitz
1 stars

A strategy that builds simulated Renko bricks from the ATR of a chosen reference symbol, SPY by default, and trades within a set start and end date. It scales position sizes with a factor, keeps a hold percentage, and can add a TRAMA cloud with a percentage ex

Strategy v6 Trend
Updated 2 months ago · MIT GitHub repository of Hedge Fund Manager SIGIL

Grimmchu

by GreyssonEnterprises
1 stars

Grimmchu is a Pine Script strategy designed to trade within specified session time windows and days of the week. It combines session timing constraints with momentum filters based on a configurable relative strength index. Users can customize the active tradin

Strategy v5 Sessions & timeOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Grimmchu

RSI Based Strategy

by jaichaturvedi88
1 stars

A long-only mean reversion strategy for an Indian rupee account. It buys when RSI falls to 30 or below and closes the position when RSI reaches 80 or above. Order size is a fixed rupee amount divided by price, and orders are only placed within a hard-coded one

Strategy v6 Oscillators & momentumMean reversion
Updated 3 months ago · None stated GitHub repository of RSI Based Strategy

Ribbon

by FranklyBrandon
1 stars

A very small Pine v4 strategy that plots simple moving averages of 5, 8 and 13 bars, each rounded to two decimals, in a separate pane. When all three rounded values are exactly equal, which will be rare, it sends one buy order and a second order that is also l

Strategy v4 Moving averages
Updated 3 months ago · None stated GitHub repository of Ribbon

Strategy Template

by maxenko
1 stars

A Pine v6 starter template for a strategy rather than a ready-made system. Its setup uses percent-of-equity sizing, a commission and slippage assumption, no pyramiding and orders processed on bar close. Inputs cover fast and slow lengths, a risk percent per tr

Strategy v6
Updated 3 months ago · MIT GitHub repository of Strategy Template

This strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak Strategy By. Akhmfz
1 stars

This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b

Strategy v6 Mean reversionMoving averages
Updated 3 months ago · MIT GitHub repository of VWAP Reversion Bands [QuantForge]
1 stars

This strategy applies Gann swing lane signals to generate entries in micro futures instruments. It enforces compounding risk controls that scale take-profit targets upward after wins and downward after losses using configurable ratios. Additional risk manageme

Strategy v6 TrendSessions & time
Updated 4 months ago · None stated GitHub repository of Futures Compounding Machine
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts with no pyramiding. Entries need RSI to pass set levels plus a gap, with candle color, EMA 200, ATR range and body-size filters, and an optional pullback re-en

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

A strategy version of an ICT optimal trade entry indicator. It finds a swing leg, applies a confluence score from structure shift, liquidity sweep, fair value gap, killzone and higher-timeframe bias, then places a limit entry inside the OTE zone, 0.705 by defa

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of OTE Strategy Confluence
1 stars

A second strategy version for index futures built on New York session phases, session VWAP, previous day high and low, EMAs, ATR and RSI with thresholds that tighten in low volatility. It builds a session volume profile from price and volume to find the point

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

BB(10,2) TP20 MTF

by zraesdev-hub
1 stars

A long-only Bollinger Band strategy intended for daily stock charts. It buys when the previous close was below the lower band, the current open is also below it, and no position is open. Mode S1 targets a large percentage gain on the same day and otherwise clo

Strategy v5 Mean reversionVolatility & bands
Updated 4 months ago · None stated GitHub repository of BB(10,2) TP20 MTF

Unified Trade Strategy

by ashishgkwd
1 stars

Unified Trade Strategy is the strategy version of a combined signal. It goes long when price breaks above a Nadaraya-Watson envelope band, the fast EMA is above the slow EMA, the trend channel slopes up and RSI is in a bullish rising band; shorts mirror this.

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Unified Trade Strategy
1 stars

A strategy version of an ATR pullback scanner. It requires a strong, rising ADX with directional indicators to set the trend direction, and an optional daily SMA 50 and 200 filter. A pullback zone is measured in ATR units from the recent swing. A toggle choose

Strategy v5 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of Trend Scanner Strategy (A/B Test)
1 stars

This strategy identifies Minervini Volume Confirmation Patterns fused with Smart Money Concepts for Bursa Malaysia stocks. It plots entry and exit signals with trend lines, boxes and labels directly on the price chart. The strategy enters long positions when v

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX KLSE v8

This strategy trades long only on the price chart. It enters when price pulls back near the EMA20 and closes back above it, while the MACD line and signal stay above zero and the histogram is not falling. A longer trend EMA must sit below price and the EMA20,

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Doc01 MACD Zero Pullback EMA20 - Project Adapted
1 stars

A strategy that looks for mean-reversion entries when volume shows exhaustion, using wave comparison, volume rate of change or z-score detection plus several confluence checks, including a higher-timeframe volume ROC. It is designed for Renko charts, with Heik

Strategy v6 Mean reversionVolume Repaints
Updated 5 months ago · None stated GitHub repository of Volume Exhaustion Strategy (VES)

BB Squeeze Breakout

by shubhamtaywade82
1 stars

A strategy that trades the release of a Bollinger Band and Keltner Channel squeeze. When the bands move back outside the channel, it buys if momentum, measured against the Donchian midline, is positive and sells short if it is negative. An optional ATR-based s

Strategy v6 Volatility & bandsBreakout Archived
Updated 5 months ago · None stated GitHub repository of BB Squeeze Breakout

Talons Chandelier Exit

by muammeryldrm42
1 stars

A strategy that builds chandelier style stops from the highest high and lowest low over a period minus or plus an ATR multiple. It goes long when close crosses above the short stop with price above a 200 EMA, and short when close crosses below the long stop wi

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Talons Chandelier Exit

Forex EMA Trend with ATR Risk

by PETERSAMUELOPS12
1 stars

A forex strategy that follows a fast and slow EMA crossover, filtered by a 200-period EMA so longs trade only above it and shorts only below. An RSI filter blocks longs when overbought and shorts when oversold, and a session filter limits trading to a chosen w

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Forex EMA Trend with ATR Risk

BVortex SP500 4H

by Alberto082544
1 stars

BVortex SP500 4H is a momentum-based trend strategy designed for 4-hour charts. It calculates a scaled Vortex Indicator to detect extreme overbought and oversold zones. Long or short entry signals trigger when exiting these extreme levels with a confirming can

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex SP500 4H
1 stars

A strategy with BTC, gold and custom presets that enters in the direction of the trend when a strong candle breaks the latest swing high or low. Filters include a higher-timeframe trend check, a volume surge, body and range thresholds, a prior consolidation, a

Strategy v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of PA Trend Breakout Strategy

AlgoBot GC Mean-Reversion Strategy

by ghostnathan30-ops
1 stars

A gold futures strategy meant for the micro contract on the 30-minute chart. It records the first New York hour range from 9:30 to 10:30, then fades the first breakout between 10:30 and 13:00, taking the opposite direction of the break. ATR-based stop and targ

Strategy v6 Mean reversionSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot GC Mean-Reversion Strategy

EMA + RSI Strategy

by Sandesh30-cloud
1 stars

This trend-following strategy combines two Exponential Moving Averages with the Relative Strength Index to identify long trade setups. It calculates a 50-period fast EMA, a 200-period slow EMA, and a 14-period RSI. A long position is triggered when the fast EM

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of EMA + RSI Strategy

ICT v4-weinkya MTF v2

by tndg16-bot
1 stars

This multi-timeframe strategy identifies trading opportunities by combining higher-timeframe market structure shifts with optimal trade entry Fibonacci levels and lower-timeframe confirmations. It calculates swing pivots on higher timeframes to determine bias,

Strategy v5 SMC / ICT / price actionTrend
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya MTF v2

A strategy variant, described by its file name as optimized for long trades only, 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 b

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

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays Bitcoin cycle timing, an all-time-high rise and drop model, and optional chart studies on the price chart. It sizes positions as a percentage of equity and allows up to five stacked entries in the same direction. Users can show an EMA ra

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

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