Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. study(title="zzz Coinbase XBTUSD Premium", overlay=false)
  2.  
  3. cb=security("COINBASE:BTCUSD", period, close)
  4.  
  5. mex=security("BITMEX:XBTUSD", period, close)
  6.  
  7.  
  8. futs = cb-mex
  9. cClr = futs>0 ? green : red
  10. hline(10, linestyle=dotted)
  11. hline(-10, linestyle=dotted)
  12.  
  13. hline(25, linestyle=dashed)
  14. hline(-25, linestyle=dashed)
  15.  
  16. plot(futs, title="Futures", color=cClr, style=columns, transp= 40, linewidth=3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement