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.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
 
// 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)