Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView (page 2)

Open-source Pine scripts written for currency pairs: session ranges, currency strength, pip-based tools and forex strategies.

Pine scripts483
Code shown here245open licence
Updated in a year304
No repaint flag402

Forex: Indicators, Strategies and Libraries

Session Sweep Model

by kxngHADES
1 stars

Detects liquidity sweeps of the Asian or London session range, followed by a reclaim and a break of structure, on the 5-minute chart. It plots entry, stop and take-profit levels with a reward-to-risk target, skips setups whose stop exceeds a multiple of ATR, a

Indicator v6 SMC / ICT / price actionSessions & time
Updated 13 days ago · Custom licence GitHub repository of Session Sweep Model
1 stars

A Pine v6 indicator that puts intraday reference points on the price chart. It draws Asia, London, New York AM and PM session boxes and kill zones, session highs and lows that extend until swept, period opens with previous highs and lows, fair value gaps, and

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 2 weeks ago · Custom licence GitHub repository of Arnoldd Key Levels, Gaps and Kill Zones
1 stars

SMC Swing 1H/4H Signal is an overlay indicator that applies smart money concepts to swing charts. It marks swing highs and lows using a configurable bar count, draws break of structure and change of character lines, and shades fair value gaps above a minimum s

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of SMC Swing 1H/4H Signal

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

A Pine v6 overlay that maps smart money concepts on the price chart. It detects internal and external swing structure with break of structure and change of character, equal highs and lows with sweep detection, order blocks, fair value gaps, imbalances and gaps

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of DC ALPHA Market Cognition Engine
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

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

Alpha Forge Core Elite

by vedkanani123
1 stars

A price-chart indicator that plots a basis line with volatility bands and graded buy and sell setups. Presets for Scalping, Day, Swing or Custom, plus an auto market profile that detects forex, gold, crypto, stocks or futures, set trend length, band width and

Indicator v6 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Alpha Forge Core Elite

Vesper

by mavomen
1 stars

Vesper is an overlay session indicator that shades the Asia, London and New York windows on the price chart and highlights the overlaps between them. It can also draw session boxes and per-session high and low lines, show an information table with the active s

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Vesper

KB# GOLD

by jayadevrana
1 stars

KB# GOLD is a trading strategy that identifies trend entries and exits using moving average crossovers and optional Tillson T3 breakout filtering. The script calculates fast and slow exponential moving averages alongside a T3 smoothing curve. When breakout mod

Strategy v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of KB# GOLD
1 stars

Draws three projected future candles to the right of the price chart. A directional score blends EMA trend, MACD histogram, Bollinger position, RSI and VWAP distance, and the score sets an expected return, a bullish probability and a confidence figure shown on

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of BTC and FX 3-Candle Forecast
1 stars

This indicator plots High Timeframe Opening Gaps for Monthly, Weekly, and Daily sessions on the price chart, highlighting price levels formed by previous period closes to current opens. It displays Opening Price Lines at selected times including 00:00, 08:30,

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Opening Levels — Gaps + OPL

Asia Session Box

by riegodavid-git
1 stars

A small overlay indicator that draws a box around a fixed 30-minute window each day, defined in Philippine time (Asia/Manila). The only timing input is the start hour, 7 by default, so the window runs from the start of that hour to half past. The box expands t

Indicator v6 Sessions & timeSupport & resistance
Updated 4 months ago · None stated GitHub repository of Asia Session Box
1 stars

An intraday overlay combining candle range theory with price action. It plots break of structure and change of character labels from swing pivots, the previous higher-timeframe candle as a range with premium and discount shading, previous day high and low, the

Indicator v5 SMC / ICT / price actionSessions & time
Updated 4 months ago · MIT GitHub repository of Forex Analyst - CRT + Price Action

OOTM Strategy

by FRX132
1 stars

This strategy tracks the Asia, London and New York session highs and lows and draws them on the price chart. In Sweeps mode it looks for a wick beyond a finished session level that closes back inside; Breakouts mode looks for a close beyond it. Optional EMA 20

Strategy v6 Sessions & timeBreakout
Updated 4 months ago · None stated GitHub repository of OOTM Strategy

RTE Overlay EURUSD 5M

by Jagadeesh963
1 stars

A generated overlay script that draws a fixed set of horizontal lines, boxes and text labels on the last bar of a EURUSD five-minute chart. The labels cover items such as market structure shifts, buy-side and sell-side liquidity, fair value gaps, an order bloc

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of RTE Overlay EURUSD 5M

Nexus Flow

by darkwader26
1 stars

Nexus Flow is a multi-dimensional trend and momentum indicator that combines EMA and ALMA trend detection with Supertrend consensus for adaptive trend filtering. It incorporates an adaptive RSI for momentum analysis with volatility-adjusted lookback and plots

Indicator v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Nexus Flow

Bakome Buy Sell

by BAKOME-Hub
1 stars

This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss

Indicator v5 Moving averagesTrend
Updated 5 months ago · MIT GitHub repository of Bakome Buy Sell

BAKOME ICT Institutional

by BAKOME-Hub
1 stars

BAKOME ICT Institutional is an overlay indicator that implements Inner Circle Trader concepts directly on the price chart. It calculates 50 and 200 EMAs for trend direction, identifies market structure breaks and changes of character using pivot points, and de

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · MIT GitHub repository of BAKOME ICT Institutional

Ghost Engine

by h33rnan
1 stars

Ghost Engine is an overlay indicator that tracks the Asian session range, London and New York killzones, and the New York midnight open. It prints a trap tag when price sweeps an Asian high or low and then closes back inside the range. It maps break of structu

Indicator v6 SMC / ICT / price actionSessions & time
Updated 6 months ago · MIT GitHub repository of Ghost Engine
1 stars

ICT v4-weinkya All-in-One overlays smart money concept structural elements directly on the price chart. It detects Market Structure Shifts (MSS), Breaks of Structure (BOS), Order Blocks, Fair Value Gaps (FVGs), and Buyside or Sellside Liquidity levels. Additio

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya All-in-One

Killzones & Levels

by Jony2176
1 stars

Killzones & Levels is an overlay session indicator that highlights the London, New York and Asia sessions with boxes, using time zone names so daylight saving changes are handled automatically. For each session it can draw the high, low and midpoint. It also p

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Killzones & Levels
1 stars

The aggressive preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected in

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

ICT 2022 Pure Mentorship

by cKm-IceCold
1 stars

A strategy that models an ICT-style sequence: it detects a liquidity sweep of a one-hour swing level, then waits for a market structure shift on the chart timeframe confirmed by a large displacement candle. Signals are limited to configurable London, New York

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of ICT 2022 Pure Mentorship

Momentum FX Order Block Zones

by mikedconcepcion
1 stars

An indicator that finds supply and demand zones after a short consolidation followed by a fast ATR-scaled breakout, and draws them as boxes on the price chart. Zones can be limited to windows around the hour and half hour in UTC, and to the direction of a high

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 9 months ago · MIT GitHub repository of Momentum FX Order Block Zones

Live Market Scanner - V7

by IamTamheedNazir
1 stars

The Live Market Scanner V7 is a real-time market analysis indicator that fuses MACD, RSI, EMAs, volume, and price momentum to calculate LONG and SHORT scores. It determines market status (LONG, SHORT, WAIT) using a sensitivity-based threshold and plots signals

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · Custom licence GitHub repository of Live Market Scanner - V7

Normalises USD/TWD, TSMC, the 0050 ETF, the dollar index and the SOXX semiconductor ETF against their own moving averages and plots them together. It then measures rolling correlations of USD/TWD with the dollar index, SOXX and TSMC, and labels whichever has t

Indicator v5 Screeners & dashboards
Updated 11 months ago · MIT GitHub repository of TWD Triple-Layer Driver Detector

Llama P2P

by lappingio
1 stars

A session and levels overlay that draws boxes for the Sydney, Asia and London sessions in New York time with optional labels, plus a Fibonacci retracement of the session range. It also draws horizontal lines for the current and true day open, previous day, wee

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Llama P2P

Buy and Sell Signal Combo

by Mr-Madhuranga
1 stars

An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high

Indicator v5 Oscillators & momentumBreakout
Updated 1 year ago · None stated GitHub repository of Buy and Sell Signal Combo
1 stars

Dynamic Anchored VWAP calculates a volume-weighted average price starting from a selected dynamic or manual anchor point, such as the chart start, daily start, weekly start, monthly start, or a specific timestamp. It calculates and plots the anchored VWAP alon

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · GPL-3.0 GitHub repository of Dynamic Anchored VWAP
1 stars

This Pine Script indicator identifies potential trade entries for the USDJPY pair exclusively on 5-minute and 15-minute charts. It plots three Exponential Moving Averages: 9-period fast, 20-period slow, and 200-period trend filter. Signals trigger on EMA 9 cro

Indicator v6 Moving averagesVolatility & bands
1 stars

This indicator plots a 14-period Relative Strength Index alongside two smoothed Stochastic oscillators in a separate pane. It displays momentum across fast and medium periods relative to a dashed 50 midline. Background coloring signals alignment: green indicat

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RSI + Stochastic Panel

Forex Sessions

by klimasevskiy
1 stars

This indicator highlights key trading sessions directly on the price chart to help identify periods of high volatility. It visualizes Asian, Frankfurt, London, and New York killzones using configurable background boxes, high and low boundary lines, and pip-ran

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Forex Sessions
1 stars

This indicator plots an EMA and RSI on the price chart. It signals overbought and oversold conditions through red and green triangular markers when the RSI crosses 75. A background highlight marks the active trading session between user-defined start and end t

Indicator v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of EMA + RSI + Session Expiry

Sovren COT Smart Index

by Eazynesta
1 stars

A separate-pane indicator that reads weekly Commitments of Traders data through a TradingView library and plots net positioning for commercial, non-commercial and non-reportable traders. Each series is normalised to a 0 to 100 scale over a configurable lookbac

Indicator v5 Oscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Sovren COT Smart Index

Genie b

by Hurairahengg
1 stars

This minimal Pine Script indicator plots the closing price directly onto the price chart. Developed as part of the GenieV1 automated scalping project, it serves as a lightweight template or baseline script initialized with expanded allowances for boxes, labels

Indicator v5
Updated 2 years ago · None stated GitHub repository of Genie b

Mi Indicador

by winos
1 stars

Plots a fixed list of hard-coded price values as circles and short line segments, offset forward from the last bar so they appear as a manually entered projected path on the chart. The values are typed directly into the code, so they do not respond to market d

Indicator v5
Updated 2 years ago · None stated GitHub repository of Mi Indicador

Grail Only Longs

by Wendigooor
1 stars

A long-only strategy based on a trailing stop approach, using a slow SMA, medium and fast EMAs, a pin bar test, and optional stochastic and money flow index filters that can read other timeframes. Exits use a trailing stop plus a hard stop expressed in pips. I

Strategy v5 TrendCandlestick patterns Repaints
Updated 2 years ago · None stated GitHub repository of Grail Only Longs
1 stars

A strategy that applies a k-nearest-neighbours classifier to RSI, ROC, CCI or volume features to estimate the next move, then trades long and or short with an optional moving average filter and volatility filter. Each position uses an ATR-multiple stop loss, a

Strategy v5 AI / machine learningTrend Repaints
Updated 2 years ago · None stated GitHub repository of kNN-Based Trend Following

BTCNOK

by taco-c
1 stars

This indicator plots the Bitcoin price in Norwegian kroner on the price chart. It multiplies a Bitcoin quote in USD or EUR by the matching dollar or euro to NOK rate, both requested on the one-minute timeframe. The Currency input switches the Bitcoin and forei

Indicator v4
Updated 5 years ago · MPL-2.0 GitHub repository of BTCNOK
104 stars

This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at

Strategy v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands and RSI Strategy

ADX_40

by Li-Hongmin
36 stars

This indicator plots the Average Directional Index (ADX) alongside a static threshold line in a separate pane. It calculates directional movement using the true range and directional indicators smoothed with running moving averages. Users can adjust the smooth

Indicator v4 Trend
Updated 1 year ago · None stated GitHub repository of ADX_40
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

Arbitrage Matrix [LuxAlgo]

by MeridianAlgo
9 stars

This overlay indicator builds a dashboard that compares last price, last volume, average price, or average volume across selected crypto exchanges or forex brokers. The source input can follow the chart asset automatically or lock the list to exchanges or brok

Indicator v6 Screeners & dashboards
Updated 4 months ago · MIT GitHub repository of Arbitrage Matrix [LuxAlgo]

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