Arbitrage v1.0
This is a simple tool to indicate arbitrage opportunities between TWO markets. Base currency must be the same for both markets. Arbitrage signal and minimum market spread uses percentage, base currency or both. Spread input accepts increments as small as 0.00000001. Works best with smaller time frames.

I will develop this further if enough people show an interest.
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
 
// This is a simple tool to indicate arbitrage opportunities between two markets. 
// Base currency must be the same for both markets. 
// Arbitrage signal and minimum market spread uses percentage, base currency or both. 
// Spread input accepts increments as small as 0.00000001. Works best with smaller time frames.

study(title="Arbitrage", shorttitle="Arb1.0", overlay=false)
spread = input(10,step=0.00000001,title="Spread $")
spreadpct = input(5,step=0.00000001,title="Spread %")/100
sym1 = input("BTCUSDT",title= "Symbol 1")
sym2 = input("COINBASE:BTCUSD",title= "Symbol 2")
source = close
sym11 = sym1, res11 = period
sym22 = sym2, res22 = period 

s1 = security(sym11, res11, source)
s2 = security(sym22, res22, source)

sym33 = s2-s1
aaa=(s2/s1)-1
bbb = aaa*100
plot(sym33, color=sym33>0?green:red, linewidth=2,style = columns,title="$",transp=60)
plot(bbb, color=bbb>0?teal:orange, linewidth=2,style = columns,title="%",transp=100)

bgcolor(abs(sym33)>=spread?purple : na, transp=40,title = "Spread $")
bgcolor(aaa>=spreadpct?yellow : na, transp=100,title = "Spread %",transp=100)