Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 9)

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

Momentum Rider DAILY FINAL

by greenpeas007
58 stars

This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider DAILY FINAL

BTC Futures MACD

by iamrichardD
57 stars

This strategy plots a MACD in a separate pane and enters on zero-line or signal-line crosses, with an optional early momentum trigger. Volume and a trend moving average can filter signals, and shorts can be disabled so only long trades are taken. It sizes posi

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Futures MACD
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

This strategy executes trades based on pivot levels, an exponential moving average, and a multi-stage smoothing trend line. It identifies support and resistance points from pivot highs and lows, combining them with price relationship rules against a custom smo

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binancash - Candle Strategy Futures on Binance

FVG RSI Strategy (Optimized)

by skywalker0803r
42 stars

This strategy plots on the price chart and trades fair value gaps filtered by RSI and two EMAs. It opens a long when a bullish gap, a rising candle, RSI below the oversold level, and price under both EMAs align, and a short on the opposite conditions. Each tra

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of FVG RSI Strategy (Optimized)

CombinedBinHAndClucV8

by viktors1982
36 stars

This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of CombinedBinHAndClucV8
23 stars

The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period

Strategy v6 Candlestick patternsOscillators & momentum
Updated 3 months ago · Custom licence GitHub repository of Stocks - Inside Day Strategy

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Seykota / Turtle Core

by trustdan
16 stars

This trend-following strategy implements classic Turtle Trading rules based on Ed Seykota's breakout principles. It uses 55-period Donchian Channels for trade entries and 10-period channels for exits, combined with ATR-based volatility sizing. Risk per unit is

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota / Turtle Core

PMA Strategy Idea

by QuantCT
14 stars

PMA Strategy Idea evaluates trend alignment using three exponential moving averages calculated on the typical price. It enters long when all three EMAs are concurrently rising over one bar, closing the position as soon as any EMA stops rising. Conversely, shor

Strategy v4 TrendMoving averages
Updated 5 years ago · Apache-2.0 GitHub repository of PMA Strategy Idea
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy
13 stars

BitLa Microtendencias B008 is a Pine Script v5 strategy drawn on the price chart. It enters long when a 10-period EMA crosses over a 120-period EMA and enters short on the opposite cross. Optional percentage stop loss is on by default, while take profit, trail

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BitLa Microtendencias B008
12 stars

This strategy plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Strategy

Moon Phase

by koradiyakaushal
12 stars

This strategy estimates the Moon's age from the chart date and marks full-moon and new-moon transitions with circles on the price chart. It optionally fills the background navy or gray on those bars. It opens a long after a new-moon signal and a short after a

Strategy v4
Updated 5 years ago · MIT GitHub repository of Moon Phase
11 stars

Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · Apache-2.0 GitHub repository of Estrategia Donchian Breakout

Awesome Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · MIT GitHub repository of Awesome Oscillator - Eterna MCP

Scalping 3EMA

by rodrigo-brito
9 stars

This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Scalping 3EMA

Repanocha V4 Edited

by wocclyl
9 stars

This strategy plots a Tillson T3 average on the price chart and colors it by slope. It combines the T3 direction with a range filter, ADX, RSI, MACD and parabolic SAR to mark long and short entries, including optional unconfirmed signals. Positions can be rest

Strategy v4 TrendOscillators & momentum Repaints
Updated 7 years ago · MIT GitHub repository of Repanocha V4 Edited
8 stars

This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of SCTR & ONeil + RSI strategy

Breaker Block

by muammeryldrm42
7 stars

The Breaker Block strategy identifies failed Smart Money Concepts (SMC) order blocks and trades their retests. It uses an ATR impulse condition to detect bullish and bearish order blocks, tracking when price breaks through them. When price retests a broken ord

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · MIT GitHub repository of Breaker Block

A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Bollinger + RSI + SMA Trend Filter
7 stars

Custom EMA Crossover Strategy calculates two Exponential Moving Averages to identify trend direction on the main price chart. It enters a long position when the fast EMA crosses above the slow EMA during a specified backtest period. The strategy closes the lon

Strategy v6 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Custom EMA Crossover Strategy
7 stars

This strategy plots DeMark pivot, support, and resistance levels on the price chart. It can keep several historical daily pivots, draw labels and prices, and mark crosses of the pivot. When strategy trading is enabled, it sizes trades from a risk-per-trade per

Strategy v6 Support & resistanceBreakout Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of DeMark Pivot Points Strategy

Temp RSI

by benniebendiksen
7 stars

This strategy calculates the relative strength index of the closing price using a user-set length and prints that value in labels on the price chart. It also requests the close from a selectable higher timeframe, though the shown logic does not use that series

Strategy v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of Temp RSI
7 stars

This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Soulevement / Ressaut Strategy
7 stars

This strategy evaluates market trend alignment across multiple timeframes by plotting a 90-period Simple Moving Average from the daily and 4-hour timeframes alongside a weekly VWAP directly on the price chart. Long trades are entered when the weekly VWAP cross

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 1D Bullish Buy 4H Bearish Sell
7 stars

This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · GPL-3.0 GitHub repository of TEMA + Bollinger Bands Strategy

Input metadata

by pineforge-4pass
6 stars

This strategy declares many input types and plots a simple moving average of the chosen source in a separate pane. Length sets the average period and source selects the price series. Other inputs cover a numeric threshold, an enable flag, a long or short side,

Strategy v6 Moving averages
Updated yesterday · Custom licence GitHub repository of Input metadata
6 stars

Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i

Strategy v6 Oscillators & momentumTrend Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System 2
6 stars

This strategy tracks momentum using an 8-period and 21-period Exponential Moving Average (EMA) crossover system. It enters long positions when the 8 EMA crosses above the 21 EMA and closes open long positions when the 8 EMA crosses below the 21 EMA. Each trade

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost Example MOMO Strategy

Edge 59

by subos2008
6 stars

Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 59

MTF trend alignment

by broomva
5 stars

This strategy plots the same-length exponential moving average on the chart and on two higher timeframes. It enters long when the chart average is above the first higher-timeframe average, that average is above the second, and price is above the chart average.

Strategy v5 TrendMoving averages
Updated yesterday · MIT GitHub repository of MTF trend alignment
5 stars

This strategy calculates fast and slow exponential moving averages to execute trend-following trades based on CDC ActionZone logic. It colors price bars across six conditions depending on price position relative to the fast and slow EMAs. Entries occur when th

Strategy v5 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Xsodus CDC ActionZone V3
5 stars

RG Structure Break-Retest Strategy estimates pivot-constrained support and resistance trendlines and evaluates market regimes. It enters trades upon two-stage break and retest confirmation, scoring setup quality to dynamically scale position sizing between tie

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Break-Retest Strategy

Breakout AVAAI (TV mirror)

by tarasprystavskyj
5 stars

Breakout AVAAI is a crypto breakout strategy mirrored from a Python trading platform. It filters potential trades by evaluating ATR relative to close price and measuring momentum over 6-hour and 12-hour lookbacks. Positions are taken when volatility meets user

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI (TV mirror)
5 stars

This strategy executes long trades when price retests the prior week's low level within a specified tolerance and closes above it. Entries are restricted to configurable UTC trading hours, excluding Mondays and late Friday sessions. Stop loss and take profit t

Strategy v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · MIT GitHub repository of WKL v2 — Prior Week Low Retest (Fixed)

SA-TEST 03

by durdenbtc
5 stars

This strategy calculates a 14-period RSI of close and plots it in a separate pane with horizontal lines at 30 and 70. It opens a long when RSI crosses above the oversold level and closes that long when RSI crosses below the overbought level. There are no short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of SA-TEST 03

This strategy draws on the price chart and defines a long setup when the 50-period EMA is above the 200-period EMA, price is above the faster EMA, RSI is below 50, and stochastic %K crosses above %D. Entries use a percentage of equity. Take profit and stop los

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 2 EMAs + RSI + Stochastic Long Strategy
5 stars

Greeffer's Scalping Strategy combines multi-timeframe Exponential Moving Averages, Bollinger Bands, and Donchian Channels to execute dip-buying trades directly on the price chart. It triggers long entries when price dips below both the lower Donchian Channel a

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Strategy

RSI+EMA+ST

by sawantuday
5 stars

This strategy overlays a fast EMA, a slow EMA, and a Supertrend line on the price chart. It opens a long when RSI is above 50, the fast EMA is above the slow EMA, and Supertrend direction is bullish, and only after 2010. It closes all positions when the fast E

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · CC0-1.0 GitHub repository of RSI+EMA+ST

This strategy plots five simple moving averages on the price chart and trades crosses of price against the longest signal average. It enters long when the close crosses above the 150-period SMA and enters short when the close crosses below it, but only from th

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 150MA Cross BuyAndSell Strategy [d3nv3r]

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Antigravity Elite
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)

Donchian Breakout

by latentwill
4 stars

This strategy enters long when the close is above an exponential moving average and RSI is above a threshold, and enters short when the close is below that average and RSI is below the threshold. A bearish signal also closes an open long. Exits use the stop an

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 7 days ago · None stated GitHub repository of Donchian Breakout
4 stars

This strategy plots a fast and a slow simple moving average on the price chart and trades long only. It enters when the fast average crosses above the slow average and closes the position when the fast average crosses back below. There is no stop loss or take

Strategy v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of SMA cross + TokIO check

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