Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView (page 10)

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

ID50

by g-moe
3 stars

The ID50 indicator identifies pullback opportunities to the 50-period exponential moving average (EMA) within an established trend. It plots a fast EMA and a slow EMA with a color-coded cloud between them to define trend direction. When price touches the slow

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of ID50

NO.1 RR Mark

by vedkanani123
1 stars

A price-chart indicator for one- to five-minute charts that marks each accepted entry as a buy or sell label with boxes for the stop and for 1R, 2R and 3R levels. Entries need a Supertrend flip, agreement from a completed higher-timeframe Supertrend, the EMA s

Indicator v6 TrendScalping Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 RR Mark
7 stars

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]
106 stars

This strategy executes high-pyramiding trades using a combination of dynamic support and resistance breakout channels, the Supertrend indicator, and an array of predefined price levels. It tracks recent 100-bar extremes to permit buys on breakouts and manages

Strategy v5 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Test for More Freq

MSG Enhanced LEGO System

by alboogycOdR
6 stars

The MSG Enhanced LEGO System plots customizable time-based market structure gap ranges and trading sessions as colored boxes on the price chart. Users can configure independent session intervals, such as New York, London, and Asia, along with options to displa

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System

MSG Enhanced LEGO System

by alboogycOdR
6 stars

MSG Enhanced LEGO System is a session mapping indicator that overlays configurable time ranges and market sessions directly on the price chart. It tracks independent session ranges, including major trading periods such as New York, London, and Asia. The indica

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System
2 stars

This indicator builds a separate-pane dashboard for the United States and five other countries. It requests open, high, low, and close for each region's currency, two-year yield, and equity index on the chart timeframe. Default symbols cover the dollar index,

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Equity, Bond, Currency Dashboard
6 stars

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional

Indicator v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of MSG Enhanced Range Breakout System

MSNR [Optimized]

by alboogycOdR
6 stars

The MSNR Optimized indicator identifies key market structure support and resistance levels directly on the price chart, including Apex/Valley (A/V) swings, price gaps, and Quasimodo (QM) patterns. It uses configurable pivot lengths to detect structural pivots

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [Optimized]
1 stars

Pine v4 experiment that sketches a synthetic dollar index from weighted currency pairs, kept in comments, but the active code only plots the chart's close price. It also prints a label with the timeframe multiplier, period and high, and requests a 15-minute IB

Indicator v4
Updated 1 year ago · None stated GitHub repository of Bloomberg Dollar Spot Index

MSNR [OPTIMIZED]AI

by alboogycOdR
6 stars

This indicator detects and draws support and resistance structure levels directly on the price chart. It identifies Apex/Vortex (A/V) pivot levels, price gap levels, and Quasimodo (QM) pattern levels, tracking whether each level is fresh or previously tested.

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [OPTIMIZED]AI

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is an overlay indicator that visualizes Smart Money Concepts (SMC) and custom intraday trading sessions on the price chart. It detects and plots order blocks, fair value gaps, liquidity pools, market structure breaks (BOS and CHoCH), and chang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

NY SMC Suite Strategy

by alboogycOdR
6 stars

This Smart Money Concepts strategy identifies trading setups based on Order Blocks, Fair Value Gaps, market structure alignment, and defined session killzones directly on the price chart. It calculates a confluence score combining active killzones, order block

Strategy v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Strategy

M&M Trading

by g-moe
3 stars

M&M Trading is an overlay indicator that combines momentum calculations with moving averages and a visual dashboard. It calculates a modified Chande Momentum Oscillator with adjustable multipliers to identify bullish and bearish momentum triggers, optionally c

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of M&M Trading

ORION: Hybrid Strategy

by eddiebelaval
7 stars

This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up

Strategy v5 Volatility & bandsBreakout
Updated 3 months ago · None stated GitHub repository of ORION: Hybrid Strategy
6 stars

The ORB + Fib + MACD Indicator combines Opening Range Breakout mechanics with Fibonacci retracement levels and MACD momentum filtering. It determines the high and low bounds of a user-defined initial session window, projects Fibonacci entry zones, and calculat

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of ORB + Fib + MACD Indicator
1 stars

This strategy tracks the high and low price levels established during the Tokyo trading session (00:00–08:00 UTC) and seeks breakout entries during the London and New York sessions. Long trades trigger when price breaks above the Tokyo high, confirmed by price

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Tokyo Breakout Refined v6

ORB ON SLVRBL

by alboogycOdR
6 stars

ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 7 months ago · None stated GitHub repository of ORB ON SLVRBL
6 stars

This multi-timeframe indicator combines Smart Money Concepts (SMC) with customizable session killzones for London and New York trading. It identifies market structure points such as Break of Structure (BOS) and Change of Character (CHoCH), alongside Points of

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of SMC Killzone State Engine Enhanced

SMC Luxmod Nuburo4

by alboogycOdR
6 stars

This indicator identifies Smart Money Concepts (SMC) structure directly on the price chart. It detects and plots internal and swing market structures, including Break of Structure (BOS) and Change of Character (CHoCH). The script highlights order blocks, stron

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC Luxmod Nuburo4

SMC LuxMod Nuburo5

by alboogycOdR
6 stars

This Smart Money Concepts indicator highlights market structure and institutional levels on the main price chart. It detects internal and swing structure breaks (BOS) and character changes (CHoCH), along with strong or weak high and low points. The script iden

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of SMC LuxMod Nuburo5

DMX plots the Jurik Directional Movement Index in a separate pane. The indicator computes a smoothed version of the directional movement index using Jurik smoothing applied to the ADX components derived from true range, up and down directional moves. It applie

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Directional Movement Index (DMX)
2 stars

Market Sessions by Leviathan highlights key global trading sessions including Tokyo, London, New York, and Sydney directly on the main price chart. It renders customizable colored boxes for each session based on UTC times. Additional visual features include se

Indicator v5 Sessions & time
Updated 8 months ago · None stated GitHub repository of Market Sessions - By Leviathan
6 stars

Time-Filtered MTF CRT Detector identifies multi-timeframe Candle Range Theory (CRT) patterns based on specific time-filtered H4 candles such as 1AM, 5AM, or 9AM models. It plots horizontal high and low range lines directly on the main price chart, complete wit

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Time-Filtered MTF CRT Detector

This indicator overlays volume profiles and session ranges directly onto the price chart for specified periods, including Tokyo, London, New York, Daily, Weekly, Monthly, Quarterly, and Yearly sessions. It calculates and plots Point of Control (POC), Value Are

Indicator v5 VolumeSessions & time
Updated 8 months ago · None stated GitHub repository of Market Sessions and Volume Profile - By Leviathan

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

Calculates and plots horizontal support and resistance levels based on weekly Wednesday price action and daily midnight opening candles. It accounts for Daylight Saving Time adjustments to capture monthly Wednesday high, low, and open levels along with daily U

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

WED & MIDNIGHT DST System is a time-based levels indicator that identifies and visualizes key support and resistance zones directly on the price chart. It plots the high and low ranges from the first five Wednesdays of each month with automatic Daylight Saving

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

ABU Euroramp

by hasnocool
106 stars

This strategy executes a time-based long entry at 02:00 exchange time, targeted around the European market open. It opens a position of two units and applies fixed-point profit and risk management. If price drops five points below the entry, a full stop loss t

Strategy v4 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of ABU Euroramp

Mrhyh21 Levels

by g-moe
3 stars

This indicator plots horizontal lines on the price chart for pre-market high and low, prior-day high and low, prior-week high and low, and prior-month high and low. It customizes pre-market session start in EST with options for line colors, labels, and styles.

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Levels

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

Plots key price levels directly on the main chart using time-based reference points. It tracks the high, low, and open prices for each Wednesday of the month while automatically adjusting for US Daylight Saving Time shifts. The indicator also identifies daily

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System
106 stars

This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced OutSide Forex strategy

This overlay strategy enters only after a buy-side or sell-side liquidity sweep confirms a displaced fair value gap. It sizes the position from a fixed fraction of equity, uses a dynamic stop based on that risk, and sets the target from a reward-to-risk multip

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereignIctSniperV6 [TeleNexus]

Mxwll Sessions

by regalouisei
2 stars

This indicator draws session boxes and labels for New York, London, and Asia markets on the price chart. It supports projection options of Bars, Line, or None, profile types of Letters, Bars, or None, and shows pre-market and post-market sessions optionally. V

Indicator v5 Sessions & time
Updated 8 months ago · None stated GitHub repository of Mxwll Sessions
3 stars

This strategy detects Opening Range Breakouts in a specified session. It calculates the high and low of the opening range bar then plots these levels on the price chart and fills the area between them. Candles are colored based on their relation to the ORB hig

Strategy v5 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of ORB Hooplah Strategy
2 stars

This indicator renders an analog and digital world clock in a separate pane. It calculates local time across global cities based on UTC offsets and configurable daylight saving time options. Users can choose specific time zones, adjust text sizes, and toggle d

Indicator v5 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Analog/Digital World Clock by DGT
2 stars

Live Economic Calendar by toodegrees overlays scheduled macroeconomic news events directly onto the price chart and displays an on-screen summary table. It retrieves economic release data across major global currencies, allowing traders to filter events by imp

Indicator v5 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Live Economic Calendar by toodegrees

Bulle de bollinger

by hasnocool
106 stars

Bulle de bollinger is a price-chart strategy that plots a 20-period simple moving average and two-standard-deviation Bollinger bands, with a fill between the bands. It enters long when the prior bar's open and close are below the lower band, and short when the

Strategy v4 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of Bulle de bollinger
1 stars

This strategy uses RSI with bull and bear threshold crossovers to trade opposite market pairs. It enters long when RSI crosses above 58 and short when below 42, automatically closing the opposite position first. Entry size is 8 percent of equity with 0.05 perc

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Crosscurrent Market Pair
106 stars

This strategy plots an Ichimoku cloud on the price chart and opens long or short trades from a selectable crossover. Signal choices cover Tenkan and Kijun, price against those lines or the cloud, and cloud color, with optional confirmation that price is beyond

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BV's ICHIMOKU CLOUD SIGNAL TESTER
106 stars

This strategy evaluates multiple MACD entry techniques on the price chart. It calculates standard or SMA-based MACD line, signal line, and histogram values, offering selectable trigger models including continuation crosses, reversal crosses, histogram zero cro

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BV's MACD SIGNAL TESTER

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