Premium/Discount (Input)

Used to show Contango or Backwardation in futures contracts vs spot price. You can input your own tickers so can technically can be used to compare anything.

* In this example I'm showing Okex Quarterly contract vs Okex spot index price because it showcases it better.

* If you are using this after 2019 the default setting will not work because I set it to Bitmex which does not currently have a "current contract in front" ticker available.

It should be fairly self explanatory, but just ask below if you have any questions.
Release Notes: Added percentage Delta as a checkbox option. Just ensure "numeric value" is un-ticked.

Updated default tickers to okex spot and futures.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?