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)