Skip to content

Instantly share code, notes, and snippets.

@dao
Created August 23, 2017 23:49
Show Gist options
  • Select an option

  • Save dao/bd800ccdbb3bff1e4bc58849e5d9ab18 to your computer and use it in GitHub Desktop.

Select an option

Save dao/bd800ccdbb3bff1e4bc58849e5d9ab18 to your computer and use it in GitHub Desktop.
compare bitfinex actual and calculated omgeth prices
//@version=3
study("OMGETH")
omgusd = security("BITFINEX:OMGUSD", period, close)
ethusd = security("BITFINEX:ETHUSD", period, close)
omgethbf = security("BITFINEX:OMGETH", period, close)
plot(omgethbf, "BITFINEX:OMGETH", green)
omgeth = omgusd/ethusd
plot(omgeth, "OMGETH (calculated)", red)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment