Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView (page 7)

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

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots relative strength lines for major currencies in a separate pane. It compares EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD using logarithmic price ratios, with optional histogram bars and a currency-pair strength table. Users choose r

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

Grid Bot [psyll]

by cullyk
2 stars

Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use

Strategy v5 Mean reversionSupport & resistance
Updated 8 months ago · MIT GitHub repository of Grid Bot [psyll]

Yield Lag Forecast

by rellis3
1 stars

Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre

Indicator v6 Oscillators & momentumDivergence
Updated yesterday · None stated GitHub repository of Yield Lag Forecast
1 stars

This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Señales Intradía EMA + MACD v3
9 stars

This indicator draws a currency-strength view in a separate pane. It requests the current close and the previous daily close for major forex pairs plus gold crosses, using a broker prefix of OANDA, FX, or FOREXCOM. The pair-set input switches between an overal

Indicator v4 Screeners & dashboardsOscillators & momentum
Updated 5 years ago · None stated GitHub repository of |AG| 4th Dimension Currency Strength

Institutional CRT State Engine is an overlay indicator that combines Direction of Liquidity (DOL) bias detection with Candle Range Theory (CRT) pattern recognition. It monitors key institutional session windows—including CBDR, Asia, London, London Lunch, and N

Indicator v6 SMC / ICT / price actionSessions & time

Elton's Screener

by eltonaguiar
4 stars

Elton's Screener is an indicator that runs in a separate pane and scores one of twenty selectable strategies, or auto-selects a route from the symbol type. It filters signals by a minimum confidence level and a higher-timeframe EMA trend alignment. ATR multipl

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints
Updated yesterday · None stated GitHub repository of Elton's Screener
3 stars

ICT + Kill Zone + Silver Bullet is an overlay indicator that highlights key Inner Circle Trader (ICT) session timeframes on the price chart. It draws colored background boxes and labels for trading sessions including Asia, London, NY AM, NY Lunch, and NY PM. U

Indicator v5 Sessions & timeSMC / ICT / price action
Updated 12 months ago · None stated GitHub repository of ICT + Kill Zone + Silver Bullet

BTMM OTE Zones

by jcortes254
3 stars

BTMM OTE Zones automatically identifies swing points to project key Fibonacci retracement levels and Optimal Trade Entry (OTE) areas such as 61.8%, 70.5%, and 78.6%. It plots these levels along with Premium and Discount valuation zones directly on the main pri

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM OTE Zones

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots the comparative relative strength of major currencies in a separate pane below the price chart. It calculates strength metrics based on raw price or momentum oscillators including RSI, CCI, and Stochastics, smoothed using various moving av

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

MACD Cross Strategy

by Web3Degenerate
2 stars

This strategy generates buy and sell signals on the price chart using MACD crossovers. It applies an EMA 200 filter requiring price to trade above or below the EMA. Only the first MACD crossover is used after the filter condition is met. Stop loss is calculate

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD Cross Strategy
1 stars

Strong Trending - Momentum Rider is a trend-following strategy designed for intraday and swing trading. It evaluates market strength using a composite momentum score based on exponential moving averages, the Directional Movement Index (DMI/ADX), candle body ra

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Strong Trending - Momentum Rider

TPCharts Figures

by TPCharts
10 stars

TPCharts Figures draws horizontal grid lines and round number key levels directly on the price chart relative to the current price. It calculates auto-detected interval steps for Forex and Bitcoin symbols or accepts a custom interval value. The script projects

Indicator v4 Support & resistance Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Figures
9 stars

This indicator builds a currency-strength view in a separate pane from major FX pairs and gold crosses. It requests current-period and prior daily closes for EUR, USD, JPY, CHF, GBP, AUD, CAD, NZD and XAU symbols through a selected broker prefix. The pair-set

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

Currency Strength Chart

by itmakesyousick
3 stars

This indicator calculates and visualizes the relative strength of major forex currencies in a separate pane. It evaluates cross pairs from selected brokers using price action or oscillators like RSI, CCI, and Stochastics, smoothed by various moving average typ

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

MACD Cross Strategy

by Web3Degenerate
2 stars

This strategy executes trades based on the initial MACD line crossover in the direction of the long-term trend defined by a 200 EMA filter. Position risk is calculated using a lookback swing high or low padded by an ATR multiple. The trade features a dual take

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MACD Cross Strategy

LotSize Calculator

by riegodavid-git
1 stars

An overlay tool that works out position size from account size, a risk percentage, the entry price and the distance to a stop loss. It draws entry, take profit and stop loss lines and shows a table with entry price, lots or quantity, take profit, stop loss, ri

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of LotSize Calculator
106 stars

This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi

Strategy v5 Sessions & timeBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 50 Pips A Day Strategy - Kaspricci
9 stars

This separate-pane indicator compares selected forex and gold pairs. It requests the current close and the previous daily close from a chosen broker feed and maps numeric values onto a blue-to-red gradient. The pair-set input switches between overall currency

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

USDKRW Table

by suyons
7 stars

This indicator draws a one-cell table at the bottom left of the price chart. It requests the close of FX_IDC:USDKRW on the one-minute timeframe and formats that value with a Korean won symbol. Text is green when the chart bar open is at or below its close, and

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of USDKRW Table

BTMM Performance Tracker

by jcortes254
3 stars

BTMM Performance Tracker is a trade analytics indicator designed for Steve Mauro's Beat The Market Maker methodology. It tracks simulated trade executions driven by automated, manual, or external signal inputs to compute account performance, win rates, and ris

Indicator v5 Screeners & dashboardsSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of BTMM Performance Tracker

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of selected major currencies on a separate pane. Users choose currencies to display along with their colors and line widths. The script calculates strength based on price, RSI, CCI, or Stochastics with adjust

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

NEODCA

by wynnforthework
2 stars

NEODCA is a Dollar Cost Averaging (DCA) strategy that combines MACD oscillators with volume-weighted moving average (VWMA) filters to execute trades. It supports long and short modes, placing base orders followed by up to eight safety orders scaled by multipli

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

This indicator calculates the distance in ATR units to the nearest higher timeframe OHLC level from the current close price. It identifies the closest level above or below the price and computes the average of near and big levels distances. The script plots we

Indicator v6 Support & resistanceVolatility & bands
Updated 12 days ago · None stated GitHub repository of DEPV2 C1b · HEDEF MESAFESİ
9 stars

4th Dimension Currency Strength is a multi-currency indicator that calculates and displays relative currency strength across major Forex pairs and Gold. It uses security calls to fetch multi-symbol prices from selected brokers like OANDA or FOREXCOM, comparing

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 5 years ago · None stated GitHub repository of |AG| 4th Dimension Currency Strength
3 stars

Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 1 year ago · None stated GitHub repository of BTMM Second Leg Confirmation

Currency Strength Chart

by itmakesyousick
3 stars

The Currency Strength Chart calculates and plots relative currency strength values for major forex currencies in a separate pane. Calculations can be based on raw price action, RSI, CCI, or Stochastic oscillators, smoothed with various moving average types. Us

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

Smart Levels Pro

by Focal-QuantAI
1 stars

An indicator on the price chart that draws previous day, previous week and previous month highs and lows as extended horizontal lines, with choices for colour, style and width. Optional equilibrium lines mark the midpoint of each high and low pair. It also sho

Indicator v6 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Smart Levels Pro

Market Sessions

by benso87
24 stars

This indicator highlights major regional trading sessions directly on the price chart, including Asia, Europe, and America. Users can customize the exact start and stop times in UTC for each region, as well as the background fill colors. Additional settings al

Indicator v5 Sessions & time
Updated 4 years ago · MPL-2.0 GitHub repository of Market Sessions

|AG| Project

by Anderson-ALGO
9 stars

|AG| Project is a Pine Script v4 indicator that draws four mini charts in a separate pane. It requests open, high, low, and close for user-selected symbols, rescales those values with a stochastic calculation, and plots an exponential moving average of each sc

Indicator v4 Screeners & dashboardsCandlestick patterns
Updated 5 years ago · None stated GitHub repository of |AG| Project

BTMM Stop Hunt Detection

by jcortes254
3 stars

The BTMM Stop Hunt Detection indicator identifies liquidity sweeps, stop hunts, and market maker manipulation zones directly on the main price chart. It tracks key liquidity levels, Optimal Trade Entry (OTE) zones, and premium or discount areas based on swing

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Stop Hunt Detection

Currency Strength Chart

by itmakesyousick
3 stars

This indicator calculates and plots the relative strength of major forex currencies and optional commodities in a separate pane. It fetches price data across configurable broker feeds to calculate relative performance over a selected resolution or lookback per

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

Pinbar Strategy

by Web3Degenerate
2 stars

This strategy identifies pin bar candlestick patterns, specifically hammer and shooting star candles, to trigger trade entries. It detects candle shapes based on a customizable Fibonacci threshold. Signals can be filtered using minimum and maximum ATR candle s

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · None stated GitHub repository of Pinbar Strategy

RussiaFX Strategy

by DaniilOkrug
2 stars

This indicator plots green arrow up shapes on the price chart when the close exceeds the close one bar ago, high one bar ago, and high two bars ago. It plots red arrow down shapes when the close is lower than the close one bar ago, low one bar ago, and low two

Indicator v4 TrendBreakout
Updated 4 years ago · MIT GitHub repository of RussiaFX Strategy

Asian Session Range

by Ahmed1926
1 stars

A Pine v4 overlay that draws the Asian session range as a box with high, low and midline levels that extend to a chosen time, using Eastern time hours. It can also show a London session box with its range in pips. Start and end hours, line extension time, colo

Indicator v4 Sessions & timeSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of Asian Session Range

EMA Strategy

by capissimo
114 stars

Calculates a central Exponential Moving Average with upper and lower channel bands offset by a fixed pip distance, inspired by LazyBear's Pip Collector script. Generates buy and sell signals when price interacts with the envelope bands, with an optional ATR vo

Indicator v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of EMA Strategy
7 stars

This indicator combines a fast and slow exponential moving average crossover, an RSI filter, and a volume flow indicator into a weighted directional score. It draws an on-chart dashboard for those components and can plot buy or sell arrows when the score meets

Indicator v6 Screeners & dashboardsMoving averages
Updated 3 months ago · None stated GitHub repository of Scalping 3-Signal Dashboard v2
6 stars

Calculates and plots support and resistance zones based on candle wick rejections and liquidity sweeps directly on the price chart. The indicator scans historical price action using a configurable lookback period and wick threshold percentage, merging close le

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy
6 stars

Wick Rejection S/R Strategy identifies key support and resistance zones based on candlestick wick rejections and liquidity sweeps directly on the price chart. It calculates potential reversal and breakout retest zones using configurable wick thresholds, level

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy

Heikin Ashi Trend

by Basant1Saini
1 stars

Heikin Ashi Trend is a trend-following strategy that calculates Heikin Ashi candle values and moving averages directly on the main price chart. It generates long and short entry signals when a user-defined number of consecutive Heikin Ashi bars align with fast

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Heikin Ashi Trend
6 stars

This trading strategy detects key support and resistance zones on the price chart by identifying candle rejection wicks over a customizable lookback period. It filters potential trades using an Exponential Moving Average (EMA), Change in Status/Direction (CISD

Strategy v5 Support & resistanceTrend
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy
4 stars

This strategy trades on the price chart using a fast and slow exponential moving average crossover. It enters long when the fast EMA crosses above the slow EMA and short when it crosses below, but only during the London or New York session in GMT. Each entry s

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · MIT GitHub repository of EUR/USD Forex Strategy [trugurpala]
4 stars

This indicator tracks the high and low of a user-defined intraday session and plots them as broken horizontal lines on the price chart. It can also show the previous session extremes and places a label at each session start. The session window, previous-level

Indicator v5 Sessions & timeSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Session High/Low Indicator [Lab]

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