Indicator · Pine Script v5 · On the chart

External Data Reader Extended

by majixai

An indicator that reads a user-supplied CSV or data file published through Pine Seeds, using column index and delimiter settings, and overlays the external close, high and low on the current chart.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code365
Settings23inputs
LicenceNone stated
Last updateyesterday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Extras include an OLS regression channel, a z-score channel, a close deviation percentage, a summary table and divergence signals when the chart and external data differ by set thresholds. The data URL is a placeholder the user must replace, and it does not trade.

Details

Published by

majixai on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Divergence, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Seed Data URLstringhttps://raw.githubusercontent.com/your-username/your-repositdataUrl
Date Column Index (0-based)int0dateCol
Close Column Index (0-based)int4closeCol
Open Column Index (0-based)int1openCol
High Column Index (0-based)int2highCol
Low Column Index (0-based)int3lowCol
Volume Column Index (0-based)int5volCol
First Row is HeaderbooltruehasHeader
Delimiterstring,delimiter
Show External ClosebooltrueshowExtClose
Show External High/LowbooltrueshowExtHL
Show Close Deviation %booltrueshowDeviation
Show all 23 settings
SettingTypeDefaultVariable
Show OLS Regression ChannelbooltrueshowRegCh
Show Z-Score ChannelbooltrueshowZChannel
Show Summary TablebooltrueshowSummary
Show Divergence SignalsbooltrueshowSignals
Line Colourcolorcolor.new(color.blue, 0)lineCol
OLS Lookback Lengthint20regLen
Band Multiplierfloat2.0regBandMult
Buy Divergence Threshold %float-3.0devBuyThr
Sell Divergence Threshold %float3.0devSellThr
RSI Proxy Oversoldfloat30.0rsiOversold
RSI Proxy Overboughtfloat70.0rsiOverbought
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

8 stars

This indicator detects contrarian inflection points and potential market reversals by combining sentiment, volume, and price action metrics directly on the price chart. It evaluates overbought and oversold conditions with the RSI and Stochastic oscillators, hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of GCR Inflection Point Scanner
1 stars

A counter-trend indicator that complements a trend-following sibling. It looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset ca

Indicator v5 Mean reversionDivergence
Updated 7 months ago · None stated GitHub repository of V16 Trend Exhaustion Catcher
1 stars

The Detrending Net Distance Ratio indicator computes the difference between current close and close prices at ten different lookback periods ranging from seven to three hundred sixty bars. It sums the positive differences to create a net value and sums their a

Indicator v5 DivergenceMean reversion
Updated 3 years ago · None stated GitHub repository of Detrending Net Distance Ratio

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]
285 stars

Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a

Indicator v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Study
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers