OPEN-SOURCE SCRIPT
Updated Miyuki BTC Perp Spot Delta

This is a simple indicator to display the difference between the mean BTC spot price and the mean BTC perp price.
There are options to choose which spot and perp exchanges should be included in the mean calculations. It also includes the following options -
- FLIP: flip the display
- DOLLARS/PERCENT: show the difference in dollar terms or percentage terms
- MOVING AVERAGE: show an adjustable length simple moving average based on the difference
- HORIZONTAL LINES: show up to 3 horizonal lines to indicate the extent of the spread
I find its best used on the lowest timeframes.
There are options to choose which spot and perp exchanges should be included in the mean calculations. It also includes the following options -
- FLIP: flip the display
- DOLLARS/PERCENT: show the difference in dollar terms or percentage terms
- MOVING AVERAGE: show an adjustable length simple moving average based on the difference
- HORIZONTAL LINES: show up to 3 horizonal lines to indicate the extent of the spread
I find its best used on the lowest timeframes.
Release Notes
Fixed the FTX perp ticker to be the correct market.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.