Pine Library · 483 open-source scripts

Free Forex Pine Scripts for TradingView (page 6)

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

Day Trading Booster

by iamc1oud
56 stars

Day Trading Booster plots session highlights for Sydney, Tokyo, Frankfurt, London and New York sessions on the price chart. It shows opening ranges for selected sessions and day open reference levels derived from ATR. A tabular view displays global forex marke

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Day Trading Booster
53 stars

This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of EUR/USD EMA9-21 + RSI Scalping Strategy

Time and schedule

by JoelPasapera
11 stars

This strategy opens a long or short position on a chosen weekday when the chart hour falls inside a user-defined start and end window. With the buy toggle on, it enters long near the window start and short near the window end; turning the toggle off reverses t

Strategy v6 Sessions & time Repaints
Updated 5 months ago · Apache-2.0 GitHub repository of Time and schedule

Golden Pocket Zones

by MeridianAlgo
9 stars

Golden Pocket Zones draws fixed-height Fibonacci zones on the price chart. It reads daily highs, lows, and a 10-day average range, then centers a band on the midpoint of the 50 percent and 61.8 percent retracement of each qualifying daily candle. Lookback leng

Indicator v6 Support & resistance
Updated 4 months ago · MIT GitHub repository of Golden Pocket Zones
8 stars

This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions. Bar colors can be customized using a 3-

Strategy v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of Pullback Trading Tool ALT

FX Market Sessions

by itmakesyousick
7 stars

This overlay indicator draws up to four Forex trading sessions on the price chart, defaulting to London, New York, Tokyo, and Sydney. Each session uses a chosen timezone and clock range and can show a colored session range, an optional extension, Fibonacci lev

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

Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

This indicator overlays a visual order-flow dashboard on the price chart using left-aligned labels. It shows a buyer-versus-seller percentage gauge, a signed delta reading, a cumulative volume delta value, and an eight-direction momentum compass colored by bul

Indicator v5 Screeners & dashboardsVolume
Updated 2 weeks ago · MIT GitHub repository of GHOST OrderFlow Dashboard — DerivEAPro
4 stars

This indicator identifies liquidity sweeps and stop hunts on price charts by detecting candles that breach recent high or low levels before closing back inside the previous range. Users can filter signals using lookback windows, minimum wick size relative to c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Liquidity Sweep Detector [Lab]

BTMM Foundation

by jcortes254
3 stars

BTMM Foundation is a Pine Script library providing core utility functions for Beat The Market Maker methodology scripts. It includes exportable functions for session detection across Asian, London, and New York sessions, tracking a three-day market cycle, time

Library v5
Updated 1 year ago · None stated GitHub repository of BTMM Foundation

Currency Strength Chart

by itmakesyousick
3 stars

This indicator measures and compares the relative strength of major forex currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It plots individual currency strength as lines or histograms alongside a currency pair strength table.

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

This indicator detects trend-following pullback entries using the Rank Correlation Index (RCI) and a triple Exponential Moving Average (EMA) ribbon. It identifies bullish setups when price maintains an upward EMA alignment while RCI reverses from oversold leve

Indicator v5 Oscillators & momentumMoving averages
Updated 2 weeks ago · None stated GitHub repository of Ver16-19 5M Entry Signal

This indicator plots a short and a long simple moving average on the price chart and marks buy and sell labels when they cross, but only inside a user-set clock window. The short and long periods and the start and end times, entered as HHMM integers, control t

Indicator v5 Moving averagesSessions & time
1 stars

A strategy for range box breakouts whose header comments describe changes from an earlier version: a tighter ATR stop, a trailing profit exit that triggers later, an EMA 50 direction filter, a stricter volume filter and a higher box quality score. Orders are f

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Energy Block V12 Optimized

A large overlay indicator that merges several tools from the same repository: forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI

Indicator v5 Sessions & timeSMC / ICT / price action

This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa

Indicator v4 AI / machine learningOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (update)

This overlay strategy combines a Nadaraya-Watson envelope, an RSI calculation, and an ATR stop-loss finder. With repainting off, it plots yellow upper and lower bands from a Gaussian endpoint estimate; with repainting on, it redraws the envelope on the last ba

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 3 years ago · MIT GitHub repository of Nadaraya-Watson Envelope, RSI, and ATR Stop Loss Finder
56 stars

This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading Booster by DGT

TPCharts ADR

by TPCharts
10 stars

TPCharts ADR calculates average daily, weekly, monthly and yearly ranges from a simple moving average of prior high-minus-low ranges. It projects each range into high and low levels, draws those levels as lines on the price chart, and labels the pip or tick di

Indicator v4 Volatility & bandsSupport & resistance Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts ADR

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws up to three named forex sessions on the price chart, defaulting to London, New York and Tokyo in a chosen timezone. Each session can show a shaded history box, dashed borders, optional Fibonacci levels and an opening range. Users set sessi

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

This indicator draws a two-column dashboard table on the price chart for up to three user-selected symbols, defaulting to EURUSD, GBPUSD, and USDJPY. For each symbol it requests four-hour highs, lows, and closes from the two prior candles and classifies a high

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

BTMM HTF Bias System

by jcortes254
3 stars

BTMM HTF Bias System analyzes trend alignment and higher-timeframe directional bias using exponential moving averages across multiple timeframes, such as 1-hour, 4-hour, daily, and weekly charts. Based on Steve Mauro's Beat The Market Maker methodology, it cal

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BTMM HTF Bias System

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and displays the relative currency strength of major currencies, including EUR, USD, JPY, GBP, CHF, AUD, and CAD. It plots strength lines and optional histograms in a separate pane to highlight directional momentum across Forex pairs. Users can adju

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

Ver16-19 RCI Panel

by Pesci1134
2 stars

This indicator calculates the Rank Correlation Index over a customizable period and plots the oscillator in a separate pane. It identifies overbought and oversold market conditions relative to user-defined thresholds. Bullish signals occur when the oscillator

Indicator v5 Oscillators & momentumMean reversion
Updated 2 weeks ago · None stated GitHub repository of Ver16-19 RCI Panel

Custom Ichimoku Alerts [UT]

by theupslidedown
2 stars

This custom Ichimoku indicator plots Tenkan-Sen, Kijun-Sen, Chikou-Span, Senkou-Span A, Senkou-Span B and the cloud fill on the price chart. It generates bullish signals when Tenkan crosses Kijun upward, Chikou is positive, price is above the cloud, and option

Indicator v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of Custom Ichimoku Alerts [UT]

Order strgy SA SOT

by DaniilOkrug
2 stars

This strategy identifies SA signals for long entries and SOT signals for short entries. It places pending orders with stop loss and take profit. The take profit distance equals tp_count multiplied by the distance from entry to stop loss. The difference input s

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 years ago · MIT GitHub repository of Order strgy SA SOT

An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an

Indicator v6 SMC / ICT / price actionSupport & resistance

Energy Block V13

by shawnwong84
1 stars

A box breakout strategy whose header comments describe a focus on cutting losing trades. It uses a wider ATR stop, an extra early exit when floating loss exceeds a multiple of the box height, a strict EMA 50 trend filter, a volume filter and a trailing profit

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Energy Block V13

A variant of a large overlay indicator that merges forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI and multi-timeframe panels

Indicator v5 Sessions & timeSMC / ICT / price action
104 stars

The ABC and Parabolic SAR Strategy calculates ABC chart patterns using a ZigZag structure alongside Fibonacci retracement levels and a trend cloud formed by six moving averages. It visualizes trend direction and pattern signals directly on the main price chart

Strategy v4 TrendSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of ABC and Parabolic SAR Strategy
7 stars

This indicator plots raw volume or dollar volume on a logarithmic or linear scale in a separate pane below the main chart. It calculates Bollinger Bands around the chosen volume series using standard deviation and selectable moving average smoothing types, inc

Indicator v5 VolumeVolatility & bands
Updated 4 months ago · None stated GitHub repository of Log Volume + Bollinger Band

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws up to three named market-session boxes on the price chart, defaulting to London, New York, and Tokyo. Each session has its own time window, label, color, optional extension of the box and end line, experimental Fibonacci lines, and an open

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

This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p

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

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart plots the relative strength of major currencies including EUR, USD, JPY, GBP, CHF, AUD and CAD on a separate pane. It calculates values from price or oscillator sources such as RSI, CCI or Stochastics then smooths the result. Users choo

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

This indicator plots a multi-asset correlation heatmap in a separate pane to measure statistical relationships between assets. It calculates Pearson correlation coefficients over a user-specified lookback period between a chosen primary symbol and up to twenty

Indicator v6 Screeners & dashboardsSessions & time
Updated 8 months ago · None stated GitHub repository of Correlation HeatMap Sessions Data Science Stats

No Wick + TQ Strategy

by riegodavid-git
1 stars

A strategy that places limit orders at the midpoint of a candle with no wick on the entry side, when a trend quality measure is above a bull threshold or below a bear threshold. Further filters cover close position within the candle, minimum body size relative

Strategy v6 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of No Wick + TQ Strategy

This strategy identifies bullish and bearish Three Line Strike candlestick patterns combined with a dual moving average cloud and Volume Spread Analysis (VSA). It triggers long or short entries when a strike formation confirms in alignment with the moving aver

Strategy v5 Candlestick patternsTrend Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3LS 3 Line Strike Strategy [Kintsugi Trading]

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength for major forex currencies in a separate pane. It calculates each currency with RSI, CCI, or stochastics over a chosen resolution, using automatic, custom, or lookback period modes. Users can show or hide individual curre

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

This indicator plots net positions for Commercial and Non-Commercial (Large Speculators) traders using Commitment of Traders (COT) legacy report data. It automatically converts root symbols to their corresponding CFTC codes to fetch daily long and short positi

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of COT Net Commercial vs Net Non-Commercial Positions
10 stars

TPCharts Asia Extensions calculates and identifies horizontal price extension levels based on the high and low range of the Asian trading session defined in GMT hours. It projects session levels and extended target lines directly onto the main price chart alon

Indicator v4 Sessions & timeSupport & resistance
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts Asia Extensions
7 stars

This indicator calculates and displays the aggregated profit and loss (PnL) for manual positions in EUR/USD, USD/JPY, and BTC/USDT. It requests hourly market close prices for each asset and computes individual and total returns based on user-entered entry pric

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of My Position and PnL

BTMM Master Dashboard

by jcortes254
3 stars

BTMM Master Dashboard displays a comprehensive monitoring interface on the main price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It aggregates system status, a market clock, key price levels, and signal fusion confluence metrics int

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

Currency Strength Chart

by itmakesyousick
3 stars

The script calculates and plots relative currency strengths for major pairs including EUR, USD, JPY, GBP, CHF, AUD, CAD and NZD in a separate pane. Strength is derived from RSI, CCI, Stochastics or raw Price source, optionally smoothed and filtered by length.

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

22-MA Strategy

by capissimo
114 stars

22-MA Strategy plots a selectable center moving average on the price chart and marks upper and lower levels a fixed pip distance from that average. It supports twenty-two average types, from SMA, EMA, and HMA variants through filters such as Kalman and JMA-sty

Indicator v4 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of 22-MA Strategy

TPCharts COT

by TPCharts
10 stars

TPCharts COT fetches and displays Commitment of Traders (COT) report data from Quandl CFTC in a separate pane. It automatically maps the current symbol's root to CFTC dataset codes for futures, commodities, forex pairs, and stock indices. The script calculates

Indicator v4 Screeners & dashboards Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of TPCharts COT

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