Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView (page 4)

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

3 stars

BTMM Comprehensive Risk Management is an overlay indicator that calculates position sizing, stop loss levels, and multiple take profit targets based on the Beat The Market Maker methodology. It supports various stop loss methods including ATR, EMA, Asian Range

Indicator v5 Support & resistanceScreeners & dashboards

Forex Boxes

by maxits
3 stars

This indicator overlays custom session boxes and time markers directly on the price chart based on specified GMT-4 hours. It identifies distinct intraday timestamps including 4pm and the 3am to 3pm window while tracking volume and plotting one-minute closing p

Indicator v4 Sessions & time
Updated 4 years ago · None stated GitHub repository of Forex Boxes

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots the relative strength of eight major forex currencies in a separate pane using logarithmic price differences across currency pairs. It visually displays relative currency performance using customizable lines, histograms, or dynamic table o

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Sukepoyo Sub

by Pesci1134
2 stars

This indicator plots two ZigZag lines and five EMAs on the price chart. ZigZag 1 uses depth 12, deviation 5 and backstep 3 for the main trend. ZigZag 2 uses depth 5, deviation 3 and backstep 2 for the fast trend. Five EMAs with lengths 20, 30, 40, 75 and 200 a

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of Sukepoyo Sub

Forex Trading Strategy

by AmjadSaidam
2 stars

Forex Trading Strategy is an overlay indicator designed for multi-timeframe session analysis on forex markets. It calculates open, high, and low values across 1-hour, 4-hour, and 8-hour timeframes to identify key session ranges. The script filters valid candle

Indicator v6 Support & resistanceSessions & time
Updated 5 weeks ago · MIT GitHub repository of Forex Trading Strategy
2 stars

Qtus SMC-Sniper System v2 is a comprehensive chart overlay indicator combining Smart Money Concepts (SMC), ICT elements, price action, and momentum filters. It identifies and plots Fair Value Gaps (FVG), Order Blocks, Breaker Blocks, Liquidity Zones, and Marke

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper System v2
2 stars

SMC Toolkit detects core Smart Money Concepts on the price chart, including market structure breaks (BoS and CHoCH), Order Blocks, Fair Value Gaps (FVGs), and liquidity levels such as equal highs and lows. Active zones project forward and freeze or stop extend

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of SMC Toolkit [btankutt]
2 stars

Ghost Zone v9 GTI Signals v18 is an overlay technical indicator designed to replicate Ghost Trade Pro methodology. It calculates anchored Supertrend channels, previous weekly close levels, fair value gaps, and volume profile high-volume nodes. The script evalu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 GTI Signals v18

Tik 2 USD

by keiru517
2 stars

Tik 2 USD is an overlay indicator that plots a grid of fixed price level lines and entry/exit offset lines across a user-defined price range. It uses a loop between specified start and end ratios to draw main target levels along with intermediate subdivided ra

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 2 USD

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 3 days ago · MPL-2.0 GitHub repository of Booming Bulls Sniper

AIO Blue

by jometa9
1 stars

A forex-oriented overlay that shades up to three trading sessions, by default New York, London and Tokyo, with optional range boxes, trendlines, mean lines, session VWAP and high and low markers for each. It also contains simple price alerts for EURUSD and GBP

Indicator v5 Sessions & time
Updated 4 days ago · None stated GitHub repository of AIO Blue
1 stars

A strategy visualizer, with no real orders, that tracks a 200-bar moving average of lows on the 1-hour timeframe. When price touches the average it arms, then marks long or short entries on a wick rejection seen on 5 or 15 minute candles, or a run of three sam

Indicator v6 Mean reversionSupport & resistance Repaints
Updated 2 weeks ago · None stated GitHub repository of MA200 Wick Rejection

ORB + ICT Manual Signals v3

by mccallister-dev
1 stars

This overlay indicator marks opening-range breakouts inside configurable Asian, London, and New York session windows. It searches for a break, retest, and continuation after an optional delay, then shows confirmed-bar signals with estimated entry, stop, and ta

Indicator v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Manual Signals v3
1 stars

This Pine Script indicator plots daily support and resistance levels for XAUUSD gold at 08:00 SGT on weekdays. It finds resistance by backward searching 5-minute candles until the 07:55 candle close exceeds the 07:50 high, then repeats for support when the clo

Indicator v5 Support & resistanceVolatility & bands
Updated 2 months ago · None stated GitHub repository of Gold 08:00 SGT Support/Resistance

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

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

Smart Money Concepts

by IamTamheedNazir
1 stars

The Smart Money Concepts indicator plots order blocks, fair value gaps, break of structure, and liquidity zones directly on the price chart. It identifies bullish order blocks as strong up-candles following down moves and bearish order blocks as strong down-ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · Custom licence GitHub repository of Smart Money Concepts

Range

by equitymarkets
1 stars

Range calculates relative price ranges across four user-specified currency pairs by comparing high and low values against close prices from a secondary timeframe. It computes the average range across these pairs to establish a baseline volatility benchmark. Th

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 1 year ago · MIT GitHub repository of Range

This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t

Strategy v6 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR and Stoploss
1 stars

The IBKR Safe Forex Strategy is a Pine Script v6 strategy that trades forex pairs using crossovers of 10-period and 50-period EMAs, filtered by a 200-period EMA and restricted to London or New York session overlap. It enters long positions on fast EMA above sl

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of IBKR Safe Forex Strategy

COT Legacy

by ivansoft
1 stars

An indicator in a separate pane that plots Commitment of Traders legacy report metrics for the chart symbol, such as open interest, noncommercial, commercial and nonreportable positions and trader counts. Settings pick the metric, direction, data type, a selec

Indicator v6
Updated 1 year ago · None stated GitHub repository of COT Legacy

Jinni v1

by Hurairahengg
1 stars

Jinni v1 is an overlay indicator that highlights the Sydney trading session and plots buy or sell signals based on dual exponential moving average trends. It draws a dynamic box around the Sydney session price range and applies time filters to exclude Fridays

Indicator v5 Sessions & timeMoving averages
Updated 2 years ago · None stated GitHub repository of Jinni v1

algo-trade-forex

by akash-yellgetti
1 stars

A strategy-type script that draws on the price chart and combines two ideas. Pivot-based support and resistance lines are plotted from left and right bar counts, with breakout labels when price crosses a level on rising volume, and alerts for broken support or

Strategy v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of algo-trade-forex
1 stars

A two-sided strategy that looks for a fan of fast EMA, medium EMA and slow SMA in order, a pin bar candle and a bar piercing one of the averages. It then places a stop order beyond the previous bar high or low. Exits combine a hard stop in pips with a trailing

Strategy v5 TrendCandlestick patterns Repaints
Updated 2 years ago · None stated GitHub repository of Grail Trailing Stop Strategy

XXXNOK

by taco-c
1 stars

The XXXNOK indicator plots the exchange rate of a chosen currency (USD or EUR) to NOK sourced via OANDA. It presents the rate on the main price chart as a black line with a simple width. A single input setting allows selection between USD and EUR. The script u

Indicator v4 Support & resistance
Updated 5 years ago · MPL-2.0 GitHub repository of XXXNOK
104 stars

This overlay strategy combines a Chandelier Exit with a zero-lag least squares moving average. Although the header mentions Heikin Ashi candles, the calculations use ordinary closes. An ATR trailing stop sets long and short levels, and direction flips when pri

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Chandelier Exit & ZLSMA Strategy
38 stars

Synthesizes macroeconomic indicators for the Vietnamese economy into a multi-pillar monitoring engine and composite risk score. It tracks inflation, policy rates, interbank interest rates, GDP growth, exchange rates, and sovereign bond yields using Taylor-rule

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of MacroAcademic - VN Economy Engine

Bandz Po3 Profiler

by samuelharting
18 stars

Bandz Po3 Profiler draws an ICT-style power-of-three profile on the price chart. It plots higher-timeframe candles, C1 through C4 sequence boxes, T-Spot zones, CISD marks, fair value gaps, STDV projections, sweeps, midpoints, opens, and liquidity. It also mark

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Po3 Profiler

Fibonacci strategy

by JoelPasapera
11 stars

This strategy plots a Fibonacci retracement of the previous day's high-low range on the price chart. It places a single long limit order at that level when the bar hour matches the chosen entry hour and the close is below the level. Position size follows the l

Strategy v6 Support & resistanceSessions & time
Updated 5 months ago · Apache-2.0 GitHub repository of Fibonacci strategy
9 stars

This indicator functions as a multi-pair forex screener, drawing output in a separate pane. It fetches price data across major currency pairs using security functions based on a user-selected resolution timeframe. It processes these market feeds with short, me

Indicator v4 Screeners & dashboardsTrend Repaints
Updated 5 years ago · None stated GitHub repository of AG Screener (Phill_I Request)

FX Market Sessions

by itmakesyousick
7 stars

FX Market Sessions highlights distinct trading sessions, such as London, New York, and Tokyo, directly on the main price chart. It draws background boxes for each active session and optionally plots opening ranges, Fibonacci retracement levels, and session ext

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions
6 stars

This strategy combines higher-timeframe market bias filtering with an oscillator and ADX trend detection to generate trading signals. It calculates market bias using Heikin-Ashi values across custom timeframes and filters entries using dynamic or static ADX th

Strategy v6 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of EURUSD Synergy + PropEA Hedge

This indicator calculates 1-hour Bollinger Bands and overlays them directly on lower timeframe price charts, such as M15. It fetches hourly middle, upper, and lower band values and locks them until the next hourly bar opens to provide higher-timeframe volatili

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of H1 Bollinger Bands on M15 (Forward Shifted)
5 stars

This strategy enters long positions when price tests and bounces off the prior week's low level within an allowed point tolerance during designated UTC trading hours. It requires the bar low to approach the prior week low and the close to rebound above it whil

Strategy v5 Support & resistanceMean reversion
Updated 5 months ago · MIT GitHub repository of WKL — Prior Week Level Retest (Bull)
4 stars

This indicator plots directional trade signals, ATR-based target and stop-loss boxes, and SuperSmoother reversal bands directly on the price chart. It evaluates market conditions across selectable technical strategies, displaying confidence scores alongside an

Indicator v6 Screeners & dashboardsTrend Repaints
Updated yesterday · None stated GitHub repository of Elton's Predictions Decision Engine
4 stars

This indicator plots support and resistance pivot levels, order blocks, market structure changes, and Fibonacci optimal trade entry zones directly on the price chart. It calculates touch counts across dynamic zones, detects chart patterns, and tracks pre-spike

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration

Institutional HFT Engine - QuantAlgo

by thesenegalesehitch
4 stars

This strategy evaluates trading opportunities using a probabilistic scoring model combined with Smart Money Concepts (SMC) pattern detection, including Break of Structure (BOS), Fair Value Gaps (FVG), and Order Blocks. It overlays signals directly on the price

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of Institutional HFT Engine - QuantAlgo

RSI Mean Reversion

by LePotoRico2105
4 stars

This strategy executes mean-reversion trades when the Relative Strength Index rebounds from overbought or oversold zones in the direction of a higher-period trend EMA. It calculates indicators using confirmed bar closes to prevent live-bar recalculation. Entri

Strategy v5 Mean reversionOscillators & momentum
Updated 6 months ago · MIT GitHub repository of RSI Mean Reversion

BTMM Core Foundation

by jcortes254
3 stars

This indicator plots five exponential moving averages on the price chart using lengths of 5, 13, 50, 200 and 800, labeled as a food system. It scores directional bias against a user threshold, includes an optional 15-minute-and-above rule, and shows the result

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BTMM Core Foundation

MA & DMI

by maxits
3 stars

MA & DMI is a strategy that combines moving average crossovers with Directional Movement Index filters to identify trade setups. It calculates a slow SMA, a medium EMA, and a fast EMA alongside ADX and DI values. Trade risk management uses an ATR-based multipl

Strategy v4 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of MA & DMI

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart measures and compares relative strength across major fiat currencies and optional commodities. It aggregates price data for major Forex pairs from selected brokers and plots smoothed strength lines for each currency in a separate chart

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Smart Money M1 - Clean & Precise

by ifreddyman2014-tech
2 stars

This overlay indicator marks smart-money structure on the price chart. It finds swing pivots, flags displacement candles whose body exceeds a multiple of the average body, and can label breaks of structure. It draws bullish and bearish order-block boxes and ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Smart Money M1 - Clean & Precise

Tik 1 JPY

by keiru517
2 stars

Tik 1 JPY is a visual reference indicator that plots horizontal level grid lines, midpoint lines, and sub-interval lines tailored for Japanese Yen currency pairs. Users can configure the start and end price levels, which default to 130 and 165. It draws solid

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 1 JPY

Sessions

by teshmi9z-beep
1 stars

An overlay that shades trading session ranges on the chart, with three sessions preset to New York, London and Tokyo. Each session has its own name, time window, colour and on or off toggle. While a session is active, a box tracks its running high and low, and

Indicator v5 Sessions & time
Updated yesterday · MIT GitHub repository of Sessions

Blue Alerts

by jometa9
1 stars

An alert helper that watches up to six major forex pairs: AUDUSD, EURUSD, GBPUSD, USDCAD, USDCHF and USDJPY. Each row has an on switch, a pair name and upper and lower price inputs, and the script sends an alert message when its condition is met. As written, b

Indicator v5 Screeners & dashboards
Updated 4 days ago · None stated GitHub repository of Blue Alerts

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