Pine Library · 3,040 open-source scripts

Free TradingView Strategy Scripts (page 64)

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

1 stars

A test strategy from a reference corpus that checks a daily counter reset using the trading day time variable. The counter resets at each new session. When it is even and flat, the strategy buys one unit and adds one to the counter; when it is odd and long, it

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of Time Tradingday Daily Reset Counter

SHORT eMACD

by g-moe
3 stars

SHORT eMACD is a short-only strategy that evaluates bearish momentum using MACD crossunders, exponential moving averages (EMA), and consecutive candle filters. It offers five configurable entry modes combining MACD signals and custom EMA candle logic. Users ca

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of SHORT eMACD

Torque TSI Signal

by pineforge-4pass
1 stars

A long-only strategy built on the True Strength Index smoothed by an RMA signal line, shown in a separate pane with a minimum strength line. It enters long when the index crosses above its signal, exceeds a minimum strength and price is above a trend EMA. It e

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Torque TSI Signal

TSI Signal Cross

by pineforge-4pass
1 stars

A minimal strategy that compares the True Strength Index, with fixed 25 and 13 lengths, to a 13-period EMA of itself. It enters long when the index crosses above the average and short when it crosses below, reversing the position each time. It has no adjustabl

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of TSI Signal Cross
1 stars

This Pine Script strategy executes a dual moving average crossover system designed as a validation test for intraday order capping across exchange session rollovers. It calculates a 9-period fast SMA and a 21-period slow SMA, entering long on bullish crossover

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of US-equity Intraday Cap (Scaffold)

VCP probe 01 - pivot strength 5

by pineforge-4pass
1 stars

This strategy identifies pivot highs and pivot lows using standard pivot detection functions to evaluate market structure. Plotted directly overlaying the price chart, it enters a fixed long position on the exact bar where a pivot low is confirmed. The long po

Strategy v6 Support & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 01 - pivot strength 5

VCP probe 02 fvg zones

by pineforge-4pass
1 stars

This strategy detects Fair Value Gaps on the price chart using 3-bar candle imbalances filtered by ATR. It maintains a capped array of active FVG zones with their tops, bottoms, and bullish flags. Long entries occur when the current bar overlaps an active bull

Strategy v6 SMC / ICT / price actionCandlestick patterns
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 02 fvg zones
1 stars

The strategy detects smoothed RSI divergences on the price chart. It calculates smoothed RSI as the EMA of 3 applied to the 14-period RSI of close. Bullish divergence signals when smoothed RSI is below 40, with smoothed RSI rising over five bars while close ex

Strategy v6 Oscillators & momentumDivergence
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 03 - rsi smooth divergence
1 stars

A small test strategy from a parity-checking corpus that isolates a volume Z-score calculation. It compares volume with its moving average and standard deviation, and flags bars where the absolute score is above 2. It enters one long unit on a flagged up bar a

Strategy v6 Volume
Updated 6 days ago · Apache-2.0 GitHub repository of VCP Probe 04 Volume Z-Score Anomaly
1 stars

This strategy calculates synthetic buy and sell volume from candlestick price action and computes a ten-bar rolling cumulative volume delta. It signals long entries with a fixed position size of one unit when the cumulative delta crosses above zero, and closes

Strategy v6 VolumeOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 05 - cumulative vol delta

VCP probe 06 - adx regime

by pineforge-4pass
1 stars

This strategy isolates and tests manual directional movement and ADX calculations plotted directly on the main price chart. It constructs plusDI, minusDI, and ADX without using built-in indicators, entering a long position when ADX exceeds 25 in an uptrend and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 06 - adx regime

VCP Probe 07 - Session NY

by pineforge-4pass
1 stars

This Pine Script strategy isolates and validates session and timezone filtering using a basic market entry mechanism. It calculates active trading windows using timezone-aware time functions and enters a single long position at the start of the defined session

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of VCP Probe 07 - Session NY

VCP Probe 08 - Integration

by pineforge-4pass
1 stars

This integration strategy combines seven analytical layers into a single system drawn directly on the main price chart. It calculates pivot highs and lows, Fair Value Gaps (FVG) scaled by ATR, smoothed RSI momentum, volume z-score anomalies, cumulative volume

Strategy v6 TrendVolume
Updated 6 days ago · Apache-2.0 GitHub repository of VCP Probe 08 - Integration

Volume Breakout

by pineforge-4pass
1 stars

The Volume Breakout strategy identifies directional price movements confirmed by trading volume spikes and Average True Range thresholds. It enters long positions when prices rise beyond a volatility-adjusted distance accompanied by above-average volume, and s

Strategy v6 VolumeVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of Volume Breakout

VWMA vs SMA Divergence

by pineforge-4pass
1 stars

This strategy tracks the difference between a Volume-Weighted Moving Average (VWMA) and a Simple Moving Average (SMA) of identical lengths. It enters a long position when the VWMA crosses above the SMA, and enters a short position when the VWMA crosses below t

Strategy v6 Moving averagesVolume
Updated 6 days ago · Apache-2.0 GitHub repository of VWMA vs SMA Divergence

Zenith RCI WPR

by pineforge-4pass
1 stars

This strategy combines the Rank Correlation Index (RCI) and Williams %R to identify momentum confirmation for long positions. It enters a trade when RCI crosses above a specified entry threshold while Williams %R remains above its configured level. Exits occur

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of Zenith RCI WPR

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