AAD Reseach

Bybit Funding Rate and Premium Index Indicator

Overview

The "Bybit Funding Rate and Premium Index" indicator is a comprehensive tool designed for traders using perpetual contracts on Bybit and other exchanges. It provides real-time visualization of funding rates, premium index, and average premium, along with multiple moving averages and trading signals.

Key Features

Indicator Components

1. Funding Rate Calculation

The indicator calculates the funding rate using the formula:
funding_rate = avg_premium + clamp(0.01 - avg_premium, -0.05, 0.05)
where avg_premium is the 8-hour moving average of the premium index.

2. Premium Index Calculation

The premium index is calculated as:
premium_index = (perp_close - spot_close) / spot_close * 100
This shows the percentage difference between the perpetual contract price and the spot price.

3. Moving Averages

The indicator includes 5 configurable moving averages (SMA or EMA) with default lengths:

4. Trading Signals

The indicator generates several types of trading signals:

Input Parameters

The indicator offers numerous customization options:

Display Options

Moving Average Settings

Threshold Levels

Usage Tips

Note: This indicator works best with Bybit perpetual contracts (symbols ending with .P).

Code

//@version=5
indicator("Bybit Funding Rate and Premium Index", precision = 4, format = format.percent, overlay=false)

[Rest of the indicator code...]

Disclaimer

This indicator is for educational purposes only and should not be considered as financial advice. Always conduct your own research and backtesting before making any trading decisions.