OPEN-SOURCE SCRIPT
Arbitrage Scanner Pro [Multi-Asset Dashboard]

โก Arbitrage Scanner Pro [Multi-Asset Dashboard]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ OVERVIEW
Arbitrage Scanner Pro is a multi-asset monitoring and arbitrage detection system that displays 3 assets simultaneously on one chart. It detects trend divergences between correlated assets, identifies arbitrage opportunities in real-time, and uses speed simulation to make indicators react as if running on sub-minute timeframes (10s, 15s, 30s).
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง HOW IT WORKS
๐น Speed Simulation Engine
TradingView's minimum timeframe is 1 minute. This indicator mathematically scales indicator parameters to simulate faster reactions:
โข Normal (1m) โ Standard indicator behavior
โข Simulate 30s โ Parameters divided by 2 (2x faster reactions)
โข Simulate 15s โ Parameters divided by 4 (4x faster reactions)
โข Simulate 10s โ Parameters divided by 6 (6x faster reactions)
Example in 15s mode: EMA 20 becomes EMA 5, RSI 14 becomes RSI 4, Supertrend Length 5 becomes 1.
๐น Signal Logic
Each asset runs the same strategy independently using its own price data:
LONG conditions (all must be true):
โ Supertrend = Bullish (green)
โ Close > EMA of Highs (breakout above channel)
โ RSI > 60 (strong momentum)
โ RSI > RSI Moving Average (momentum accelerating)
โ Supertrend outside EMA channel (trending, not choppy)
SHORT conditions (all must be true):
โ Supertrend = Bearish (red)
โ Close < EMA of Lows (breakdown below channel)
โ Supertrend outside EMA channel (trending, not choppy)
The "Supertrend outside EMA channel" filter is the key innovation โ it eliminates false signals during sideways consolidation by only allowing signals when the market shows a clean directional trend.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ MULTI-ASSET DISPLAY
The indicator creates a stacked 3-panel layout in a single pane:
โข Asset A (Main) โ Your chart's symbol with overlay indicators
โข Asset B (Secondary) โ Normalized candles in 0-100 range with full OHLC
โข Asset C (Third) โ Normalized candles shifted below with adjustable gap
Each secondary asset displays:
๐ Ticker name (e.g., ETHUSDT)
๐๏ธ Exchange/broker name (e.g., BINANCE) โ auto-parsed from symbol
๐ฒ Live price with up to 4 decimal precision
๐ Bar-to-bar percentage change with color coding
Price normalization formula:
Normalized = (Price - 200-bar Low) รท (200-bar High - 200-bar Low) ร 100
All indicators (EMA channels, Supertrend) are also normalized to the same scale.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ARBITRAGE DETECTION
The core feature โ compares trend directions and signal timing across all 3 assets.
๐น Signal Divergence (strongest signal):
Fires when two assets generate OPPOSITE signals on the same bar.
Example: Asset A = LONG while Asset B = SHORT โ โ ๏ธ Arbitrage Opportunity
๐น Trend Divergence (ongoing):
Tracks when assets have different Supertrend directions.
Measured as a Divergence Score from 0/3 (all aligned) to 3/3 (all different).
๐น Convergence Detection:
Fires when ALL 3 assets trigger the same signal simultaneously.
All LONG โ Maximum bullish confirmation.
All SHORT โ Maximum bearish confirmation.
๐น Visual Feedback:
โข Yellow background flash โ Signal divergence detected
โข Green background flash โ All assets triggered LONG
โข Pink background flash โ All assets triggered SHORT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ DASHBOARD
The professional dashboard table shows real-time data for all assets:
โข ASSET โ Parsed ticker name with emoji identifier
โข EXCHANGE โ Auto-detected exchange/broker (BINANCE, COINBASE, FX, etc.)
โข PRICE โ Live close price
โข CHANGE โ Bar-to-bar % change (green/red)
โข TREND โ Supertrend direction (โฒ BULL / โผ BEAR)
โข SIGNAL โ Current state (๐ LONG! / ๐ป SHORT! / ๐ข Long / ๐ด Short / โช Neutral)
Arbitrage Status Section:
โข Overall divergence assessment with descriptive message
โข Pair-by-pair comparison (AโB, AโC, BโC) โ DIVERGED or ALIGNED
โข RSI values for all 3 assets side-by-side
โข Divergence score (0/3 to 3/3)
Dashboard size, position, and label sizes are all adjustable.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ SETTINGS
๐น Speed Mode:
Scan Speed โ Normal (1m) / Simulate 30s / Simulate 15s / Simulate 10s
๐น Detection Settings:
Trend Detection Length โ Supertrend ATR lookback (default: 5)
Sensitivity Factor โ Supertrend ATR multiplier (default: 1.0)
Channel Length โ EMA lookback for high/low channel (default: 20)
Momentum Length โ RSI period (default: 14)
๐น Asset Configuration:
Asset B and Asset C can be independently enabled/disabled with custom symbols and candle colors.
๐น Display Settings:
Show Trend Overlays โ Toggle EMA and Supertrend on secondary charts
Signal Style โ Labels / Arrows / Both
Gap Between Charts โ 80 to 500 (vertical spacing)
Signal Label Offset โ Distance of signal labels from candles
๐น Size Settings:
Dashboard Text Size โ Tiny / Small / Normal / Large
Chart Label Size โ Tiny / Small / Normal / Large / Huge
Signal Label Size โ Tiny / Small / Normal / Large / Huge
Dashboard Position โ 9 positions (Top/Mid/Bottom ร Left/Center/Right)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ALERTS (12 Total)
Individual (6):
โข Asset A LONG / SHORT
โข Asset B LONG / SHORT
โข Asset C LONG / SHORT
Combined (2):
โข ANY asset LONG
โข ANY asset SHORT
Arbitrage-Specific (4):
โข โ ๏ธ Signal Divergence detected (opposite signals on same bar)
โข ๐ข All 3 assets LONG convergence
โข ๐ด All 3 assets SHORT convergence
โข ๐ถ High divergence score (2+/3)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ USE CASES
๐น Cross-Exchange Arbitrage:
Monitor BTC on BINANCE, COINBASE, and BYBIT simultaneously. When one exchange shows LONG while another shows SHORT, a price discrepancy exists.
๐น Crypto Correlation Trading:
Watch BTC, ETH, and SOL together. BTC often leads โ when BTC triggers LONG first, altcoins typically follow. Enter altcoins on confirmation.
๐น Forex Multi-Pair Scanning:
Monitor EURUSD, GBPUSD, and USDJPY. When EUR and GBP both show LONG while JPY shows SHORT, it confirms broad USD weakness.
๐น Index + Sector Rotation:
Track S&P 500 futures alongside QQQ (tech) and XLF (financials). Divergences between sectors reveal which is driving the market.
๐น News Event Reaction:
Monitor Gold, Dollar Index, and 10-Year Yields during economic releases. The 10s simulation catches reactions within the first minute candle.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โข This uses 1-minute OHLC data โ it does NOT create actual sub-minute candles
โข Signals fire at bar close, not mid-candle
โข The 0-100 normalization can make small moves appear larger
โข This is a detection tool โ trade execution requires separate infrastructure
โข Best used on 1-minute charts where the speed simulation is calibrated
โข Always combine with proper risk management
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง RECOMMENDED SETTINGS
Crypto (High Volatility): Sim 15s, Length 5, Factor 1.0, Channel 20
Crypto (Low Volatility): Sim 30s, Length 7, Factor 1.5, Channel 25
Forex Majors: Sim 30s, Length 5, Factor 1.5, Channel 20
Stock Indices: Sim 30s, Length 5, Factor 1.0, Channel 15
News Events: Sim 10s, Length 3, Factor 0.5, Channel 10
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ OVERVIEW
Arbitrage Scanner Pro is a multi-asset monitoring and arbitrage detection system that displays 3 assets simultaneously on one chart. It detects trend divergences between correlated assets, identifies arbitrage opportunities in real-time, and uses speed simulation to make indicators react as if running on sub-minute timeframes (10s, 15s, 30s).
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง HOW IT WORKS
๐น Speed Simulation Engine
TradingView's minimum timeframe is 1 minute. This indicator mathematically scales indicator parameters to simulate faster reactions:
โข Normal (1m) โ Standard indicator behavior
โข Simulate 30s โ Parameters divided by 2 (2x faster reactions)
โข Simulate 15s โ Parameters divided by 4 (4x faster reactions)
โข Simulate 10s โ Parameters divided by 6 (6x faster reactions)
Example in 15s mode: EMA 20 becomes EMA 5, RSI 14 becomes RSI 4, Supertrend Length 5 becomes 1.
๐น Signal Logic
Each asset runs the same strategy independently using its own price data:
LONG conditions (all must be true):
โ Supertrend = Bullish (green)
โ Close > EMA of Highs (breakout above channel)
โ RSI > 60 (strong momentum)
โ RSI > RSI Moving Average (momentum accelerating)
โ Supertrend outside EMA channel (trending, not choppy)
SHORT conditions (all must be true):
โ Supertrend = Bearish (red)
โ Close < EMA of Lows (breakdown below channel)
โ Supertrend outside EMA channel (trending, not choppy)
The "Supertrend outside EMA channel" filter is the key innovation โ it eliminates false signals during sideways consolidation by only allowing signals when the market shows a clean directional trend.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ MULTI-ASSET DISPLAY
The indicator creates a stacked 3-panel layout in a single pane:
โข Asset A (Main) โ Your chart's symbol with overlay indicators
โข Asset B (Secondary) โ Normalized candles in 0-100 range with full OHLC
โข Asset C (Third) โ Normalized candles shifted below with adjustable gap
Each secondary asset displays:
๐ Ticker name (e.g., ETHUSDT)
๐๏ธ Exchange/broker name (e.g., BINANCE) โ auto-parsed from symbol
๐ฒ Live price with up to 4 decimal precision
๐ Bar-to-bar percentage change with color coding
Price normalization formula:
Normalized = (Price - 200-bar Low) รท (200-bar High - 200-bar Low) ร 100
All indicators (EMA channels, Supertrend) are also normalized to the same scale.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ARBITRAGE DETECTION
The core feature โ compares trend directions and signal timing across all 3 assets.
๐น Signal Divergence (strongest signal):
Fires when two assets generate OPPOSITE signals on the same bar.
Example: Asset A = LONG while Asset B = SHORT โ โ ๏ธ Arbitrage Opportunity
๐น Trend Divergence (ongoing):
Tracks when assets have different Supertrend directions.
Measured as a Divergence Score from 0/3 (all aligned) to 3/3 (all different).
๐น Convergence Detection:
Fires when ALL 3 assets trigger the same signal simultaneously.
All LONG โ Maximum bullish confirmation.
All SHORT โ Maximum bearish confirmation.
๐น Visual Feedback:
โข Yellow background flash โ Signal divergence detected
โข Green background flash โ All assets triggered LONG
โข Pink background flash โ All assets triggered SHORT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ DASHBOARD
The professional dashboard table shows real-time data for all assets:
โข ASSET โ Parsed ticker name with emoji identifier
โข EXCHANGE โ Auto-detected exchange/broker (BINANCE, COINBASE, FX, etc.)
โข PRICE โ Live close price
โข CHANGE โ Bar-to-bar % change (green/red)
โข TREND โ Supertrend direction (โฒ BULL / โผ BEAR)
โข SIGNAL โ Current state (๐ LONG! / ๐ป SHORT! / ๐ข Long / ๐ด Short / โช Neutral)
Arbitrage Status Section:
โข Overall divergence assessment with descriptive message
โข Pair-by-pair comparison (AโB, AโC, BโC) โ DIVERGED or ALIGNED
โข RSI values for all 3 assets side-by-side
โข Divergence score (0/3 to 3/3)
Dashboard size, position, and label sizes are all adjustable.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ SETTINGS
๐น Speed Mode:
Scan Speed โ Normal (1m) / Simulate 30s / Simulate 15s / Simulate 10s
๐น Detection Settings:
Trend Detection Length โ Supertrend ATR lookback (default: 5)
Sensitivity Factor โ Supertrend ATR multiplier (default: 1.0)
Channel Length โ EMA lookback for high/low channel (default: 20)
Momentum Length โ RSI period (default: 14)
๐น Asset Configuration:
Asset B and Asset C can be independently enabled/disabled with custom symbols and candle colors.
๐น Display Settings:
Show Trend Overlays โ Toggle EMA and Supertrend on secondary charts
Signal Style โ Labels / Arrows / Both
Gap Between Charts โ 80 to 500 (vertical spacing)
Signal Label Offset โ Distance of signal labels from candles
๐น Size Settings:
Dashboard Text Size โ Tiny / Small / Normal / Large
Chart Label Size โ Tiny / Small / Normal / Large / Huge
Signal Label Size โ Tiny / Small / Normal / Large / Huge
Dashboard Position โ 9 positions (Top/Mid/Bottom ร Left/Center/Right)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ALERTS (12 Total)
Individual (6):
โข Asset A LONG / SHORT
โข Asset B LONG / SHORT
โข Asset C LONG / SHORT
Combined (2):
โข ANY asset LONG
โข ANY asset SHORT
Arbitrage-Specific (4):
โข โ ๏ธ Signal Divergence detected (opposite signals on same bar)
โข ๐ข All 3 assets LONG convergence
โข ๐ด All 3 assets SHORT convergence
โข ๐ถ High divergence score (2+/3)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ USE CASES
๐น Cross-Exchange Arbitrage:
Monitor BTC on BINANCE, COINBASE, and BYBIT simultaneously. When one exchange shows LONG while another shows SHORT, a price discrepancy exists.
๐น Crypto Correlation Trading:
Watch BTC, ETH, and SOL together. BTC often leads โ when BTC triggers LONG first, altcoins typically follow. Enter altcoins on confirmation.
๐น Forex Multi-Pair Scanning:
Monitor EURUSD, GBPUSD, and USDJPY. When EUR and GBP both show LONG while JPY shows SHORT, it confirms broad USD weakness.
๐น Index + Sector Rotation:
Track S&P 500 futures alongside QQQ (tech) and XLF (financials). Divergences between sectors reveal which is driving the market.
๐น News Event Reaction:
Monitor Gold, Dollar Index, and 10-Year Yields during economic releases. The 10s simulation catches reactions within the first minute candle.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ IMPORTANT NOTES
โข This uses 1-minute OHLC data โ it does NOT create actual sub-minute candles
โข Signals fire at bar close, not mid-candle
โข The 0-100 normalization can make small moves appear larger
โข This is a detection tool โ trade execution requires separate infrastructure
โข Best used on 1-minute charts where the speed simulation is calibrated
โข Always combine with proper risk management
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง RECOMMENDED SETTINGS
Crypto (High Volatility): Sim 15s, Length 5, Factor 1.0, Channel 20
Crypto (Low Volatility): Sim 30s, Length 7, Factor 1.5, Channel 25
Forex Majors: Sim 30s, Length 5, Factor 1.5, Channel 20
Stock Indices: Sim 30s, Length 5, Factor 1.0, Channel 15
News Events: Sim 10s, Length 3, Factor 0.5, Channel 10
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.