**Implied Leverage Ratio Between Current Symbol and BTC**
This script calculates and visualizes the **implied leverage ratio** between the current symbol and Bitcoin (BTC). The ratio compares the cumulative price changes of the two symbols over a defined number of candles, providing insights into the relative strength of the current symbol in bullish and bearish movements.
---
### Features
1. **Cumulative Up and Down Ratios**:
- Calculates cumulative price increases (up) and decreases (down) for both the current symbol and BTC, based on percentage changes relative to each candle's opening price.
2. **Implied Leverage Ratio**:
- For bullish movements: the current symbol's cumulative up ratio divided by BTC's cumulative up ratio.
- For bearish movements: the current symbol's cumulative down ratio divided by BTC's cumulative