Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView

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

About Forex Scripts

These scripts were written for forex or say so in their description. Many work in pips, mark the Asian, London and New York sessions, or compare currencies against each other.

Most general indicators in the library work on any market, forex included. This category lists the scripts whose authors built them for currencies.

81 of these 483 scripts are marked Repaints, or read higher-timeframe data with lookahead on.

Before You Use One

Forex: Indicators, Strategies and Libraries

104 stars

This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of 3MA and Fractals Strategy

Forex Sessions

by PythonForForex
64 stars

Forex Sessions highlights specific global trading hours directly on the main price chart using background colors. It tracks three major market sessions using predefined time ranges: Tokyo, London, and New York. Active session hours are distinguished by distinc

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

Cronex T Demarker

by romulodl
42 stars

Cronex T Demarker is a momentum indicator that calculates a modified DeMarker oscillator averaged over multiple step lengths and centered at zero. It applies a T3 exponential smoothing filter based on a customizable curvature parameter to generate a smooth tri

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of Cronex T Demarker

This macro indicator analyzes international and domestic transmission channels affecting Vietnamese government bond yields. Plotted in a separate pane with diagnostic tables and background shading, it tracks six macro pathways including Japanese yields, Yen ca

Indicator v6 Screeners & dashboards

MY MACD Strategy

by Li-Hongmin
36 stars

This strategy enters directional trades based on MACD histogram zero-line crossovers filtered by a safety threshold. Users toggle long or short trading modes independently. MACD lines can be calculated using simple or exponential moving averages. Exits execute

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MY MACD Strategy

Forex PS

by brahma-investment-group
34 stars

This indicator calculates forex position sizing in lots based on hardcoded risk and stop-loss parameters. It queries the 5-minute closing price of a user-configurable conversion currency pair using a security call to convert risk across currencies. The script

Indicator v5
Updated 1 year ago · MIT GitHub repository of Forex PS

Alert VOL Strong Candle CME

by codingfordummies911
13 stars

This overlay indicator classifies candle volume against a Wilder moving average and highlights unusually strong volume on the price chart. In automatic mode it requests matching CME or COMEX futures volume for mapped forex, gold, silver, crypto, and index symb

Indicator v5 Volume Repaints
Updated 10 months ago · None stated GitHub repository of Alert VOL Strong Candle CME
11 stars

This overlay indicator identifies Smart Money Concepts (SMC) and Inner Circle Trader (ICT) market structure elements directly on the price chart. It detects higher highs, lower lows, Break of Structure (BOS), and Change of Character (CHoCH) labels alongside st

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Pro Trading V6 - ICT/SMC + MACRO

Breakout Strategy

by JoelPasapera
11 stars

This strategy implements a channel breakout system directly on the main price chart. It calculates highest highs and lowest lows over configurable entry and exit periods using historical candles. A long entry triggers when the close breaks above the entry chan

Strategy v6 BreakoutTrend
Updated 5 months ago · Apache-2.0 GitHub repository of Breakout Strategy

1BullBear

by KweeBoss
10 stars

The 1BullBear indicator is an all-in-one chart utility that displays key trading sessions, reference levels, and market structure helpers directly on the price chart. It highlights Asian, London, and New York sessions with customizable background ranges, label

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of 1BullBear
10 stars

The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju

Strategy v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of Strategy - Reverse RSI

This indicator detects and visualizes Smart Money Concepts (SMC) and Inner Circle Trader (ICT) structures directly on the price chart. It performs multi-timeframe analysis across customizable trend (H1), entry (M15), and micro (M5) timeframes to identify bulli

Indicator v6 SMC / ICT / price actionSupport & resistance
9 stars

This indicator calculates relative currency strength across major foreign exchange currencies and gold by pulling multi-symbol price data via security calls. Users can select specific currency pair sets (such as GBP, EUR, USD, or XAU) or a global strength over

Indicator v4 Screeners & dashboards
Updated 5 years ago · None stated GitHub repository of 4th Dimension Currency Strength

ForexAlgo

by Harshil427
7 stars

ForexAlgo generates trade signals directly on the price chart using a primary leading indicator, such as the Range Filter, combined with modular confirmation filters. Traders can toggle multiple technical filters, including exponential moving average crosses,

Indicator v5 TrendOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of ForexAlgo

LIT - Timing

by rpanchyk
7 stars

LIT - Timing plots key market session ranges directly on the price chart based on Liquidity Inducement Theorem concepts. It renders customizable boxes alongside horizontal projection lines representing the high, low, and midpoint for the Asian, London, and New

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of LIT - Timing

This strategy trades EUR/USD breakouts on the price chart using Ichimoku values. It marks a compressed range when the Senkou spans twist and the range height stays under a pip limit. It enters long on a close above the prior range high, or short below the prio

Strategy v4 TrendBreakout
Updated 2 years ago · MIT GitHub repository of Robot Forex BREAKOUT EUR/USD 5MIN - Ichimoku
7 stars

Acts as a modular strategy boilerplate designed for automated and manual trading strategies on the price chart. It provides execution infrastructure including trade direction toggles, signal reversal, alternating orders, session filtering, and anti-news volati

Strategy v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Git Pine Script v5 Template

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws custom trading session boxes directly on the price chart, with presets for London, New York, and Tokyo sessions. It calculates and outlines session ranges using boxes and lines, with optional extensions, opening ranges, and Fibonacci retra

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

Zeroline

by sharkpunch5
6 stars

Zeroline is a trend-following strategy designed around the No Nonsense Forex (NNFX) methodology. It combines a primary trigger and confirmation system (Didi index), a secondary confirmation (Kuskus), a volume filter, and a Kaufman Adaptive Moving Average (KAMA

Strategy v4 TrendMoving averages
Updated 4 years ago · MIT GitHub repository of Zeroline
6 stars

This indicator plots average-range high and low levels on the price chart. It averages the previous bar range with a simple moving average and projects an upper and lower level for the current period from the bar's high, low, and close. Separate counts, lookba

Indicator v4 Volatility & bandsSupport & resistance Repaints
Updated 5 years ago · None stated GitHub repository of Average Daily Range High Low
5 stars

This strategy calculates Bollinger Bands and monitors band width relative to a historical moving average to identify low-volatility squeeze regimes. It draws upper, lower, and basis bands directly on the price chart while shading squeeze periods in yellow. A l

Strategy v5 Volatility & bandsBreakout
Updated yesterday · MIT GitHub repository of Bridge 04 - Bollinger Squeeze
5 stars

This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti

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

This indicator overlays an order flow intelligence suite directly on the price chart. It renders a liquidity heatmap across configured price zones, alongside an on-chart information panel displaying volume delta, cumulative volume delta, a momentum compass bas

Indicator v6 VolumeScreeners & dashboards
Updated 2 weeks ago · MIT GitHub repository of GHOST — OrderFlow Intelligence

Bollinger Squeeze Breakout

by LePotoRico2105
4 stars

Calculates standard Bollinger Bands and identifies volatility contraction when band width drops below a percentage of its moving average. The strategy enters long positions when a confirmed candle closes above the upper band following a recent squeeze, and ent

Strategy v5 Volatility & bandsBreakout
Updated 6 months ago · MIT GitHub repository of Bollinger Squeeze Breakout

Supertrend EMA Strategy

by mohammad95labbaf
4 stars

Supertrend EMA Strategy is a chart overlay indicator that combines Supertrend trailing levels with an Exponential Moving Average filter to identify entry signals. Buy signals occur when the Supertrend turns bullish while price trades above the specified EMA, w

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Supertrend EMA Strategy

KuChart DayLight Basic Currencies

by Vertexstack-Code
4 stars

This indicator calculates and plots the relative performance of eight major currencies (USD, EUR, GBP, CHF, JPY, AUD, CAD, and NZD) in a separate pane. It fetches price data from major Forex currency pairs and calculates logarithmic percentage changes relative

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 6 years ago · None stated GitHub repository of KuChart DayLight Basic Currencies

GBPUSD H1 QuadLayer

by GifariKemal
3 stars

An institutional order block and EMA pullback indicator designed for GBPUSD on the 1-hour timeframe. It filters trading signals based on specific London and New York session kill zones, ATR volatility thresholds, signal quality metrics, and day or hour multipl

Indicator v5 SMC / ICT / price actionMoving averages
Updated 4 days ago · MIT GitHub repository of GBPUSD H1 QuadLayer

This indicator plots buy and sell signals on the price chart overlay using Supertrend as the primary trend filter combined with multiple moving average crossover strategies. Users select from preset modes or enable custom combinations via toggles for 12 differ

Indicator v6 TrendMoving averages
Updated 5 weeks ago · MIT GitHub repository of Quantum Queen X + Supertrend Signal

This strategy combines fractal-based supply and demand order blocks with Awesome Oscillator divergence detection. It generates long signals when price interacts with a demand zone alongside a confirmed bullish divergence, and short signals at supply zones with

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of Combined Strategy - Supply/Demand + AO Divergence

GainzAlgo EA

by saadkhan371
3 stars

GainzAlgo EA is a trend-following strategy designed for scalping and intraday trading, optimized for gold and liquid assets. It establishes trend direction using a three-EMA alignment alongside RSI momentum filters and an optional higher-timeframe trend confir

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of GainzAlgo EA

Supertrend Strategy

by dharaarpan7
3 stars

This strategy executes long trades based on the Supertrend indicator and candle color confirmation. It enters when a fresh bullish Supertrend flip occurs on a green candle and exits when the trend flips bearish on a red candle. It also places bracket orders wi

Strategy v6 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Supertrend Strategy

This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a

Strategy v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Optimized Volume + Fibonacci + Trend + ATR Strategy

SG Market Cipher B

by jeffAquinn
3 stars

SG Market Cipher B is an oscillator indicator plotted in a separate pane that combines WaveTrend and RSI calculations to identify momentum and potential trend reversals. It generates visual signal dots (buy, sell, gold, and divergence dots) based on overbought

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of SG Market Cipher B

This indicator plots a multi-symbol dashboard on the price chart to monitor up to five custom ticker symbols across three timeframes. It calculates the Relative Strength Index (RSI), Stochastic RSI %K, and %D values alongside the current price. Traders can mod

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Multi Timeframe Stochastic RSI Screener

Combined Script

by maxits
3 stars

Strategy combining EMA and SMA trend alignment with pin bar candle patterns and moving average piercing. It triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targe

Strategy v4 Moving averagesCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Combined Script

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength lines for major currencies and optional metals and oil in a separate pane. It builds each series from a chosen source, either raw price or RSI or stochastics, then applies a selected moving-average smoother. Resolution ca

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

This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of Ver15 Environment Recognition (Provisional Pivot)

ORB Multi-Model Indicator

by BobLeeHacker
2 stars

This indicator plots Opening Range Breakout signals on the price chart for the New York session. It implements nine ORB models with varying conditions including volume filters, RSI thresholds, FVG detection, and compression requirements. Signals display entrie

Indicator v6 BreakoutSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of ORB Multi-Model Indicator

TFX Gold Sniper - V26 Black-Gold

by vijayavardhanarajumahanandi-cell
2 stars

This indicator calculates a derivative Relative Strength Index using polynomial curve fitting and linear algebra routines to identify market momentum shifts. It displays long, short, and exit signal labels directly on the main price chart alongside risk-to-rew

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of TFX Gold Sniper - V26 Black-Gold
2 stars

Session Extreme Revisit - Lines identifies high and low candles during defined trading sessions, such as London and New York, and projects them on the chart as supply and demand reaction zones. The indicator tracks intraday extreme price ranges and extends rea

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit - Lines

HTF OB M30 + LTF Entry System

by ifreddyman2014-tech
2 stars

This multi-timeframe indicator detects order blocks on the HTF M30 timeframe and generates precise entries on the LTF M1 timeframe using break of structure, displacement, and fair value gap concepts. It requires liquidity sweeps for confirmation and signals en

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of HTF OB M30 + LTF Entry System

Wavy Tunnel MS3

by algoboss710
2 stars

The Wavy Tunnel MS3 strategy plots multiple exponential moving averages to form a wavy tunnel on the price chart. It computes wavy high, close, and low lines using 34-period EMAs, along with 144- and 169-period tunnel lines and a 12-period EMA. Optional RSI an

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Wavy Tunnel MS3

Mini-Project

by Core-Four
2 stars

Mini-Project is a customizable multi-indicator strategy that enables traders to combine entry signals from Linear Regression, RSI, MACD, Parabolic SAR, and Supertrend. Users can toggle individual technical filters on or off to drive trade entries or enable a c

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Mini-Project

This strategy trades the New York open on the price chart using an ICT workflow. It sets a higher-timeframe bias from an EMA, structure and session VWAP, requires SMT divergence against a correlated symbol, then waits for an inverse fair value gap and enters o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 11 days ago · MIT GitHub repository of NY Open ICT: HTF Bias + SMT + IFVG Retrace

More Pine Script Categories

Browse the whole Pine Library

Related on ForexR

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.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers