TradingView
tradercgt
29 juil. 2020 04:33

Ampleforth Rebase Rate 

Ampleforth / TetherKuCoin

Description

Displays an approximation of the historical rebase rates of Ampleforth (AMPL).

- ⚠️ Use only on D1 charts. Currently it does not work on lower or higher timeframes.
- ⚠️ The rabase rates are an approximation and not the exact rates.

In the future it might be improved if possible and easy enough to code and maintain.

Feel free to share improvement and feature suggestions.

Notes de version

show the daily rebase also on lower timeframes (H4, H1, etc)

Notes de version

- The current rebase rates are calculated based on H1 VWAP values from the Kucoin exchange (similar to the official calculation but not exact).
- The rebase rate at 02:00 UTC (timeframe <= H1) is the closest to the actual rebase rate.
- D1 chart shows the rebase rate at 00:00 UTC which is 2 hour before the actual rebase.

Notes de version

rename VWAP to VWMA
Commentaires
tradercgt
improved the rebase calculation to be as close as possible to the official rebase rate. See the description.
jabbys
Very nice! When negative (red), it still stays above the 0.
tradercgt
@jabbys, correct, displayed in red. This saves space and you can more easily compare +2% and -2% because they will be at the same level.
tradercgt
The initial implementation works only on D1 chart and uses the close price (at 0:00 UTC) instead of the oracle price (at 2:00 UTC). it gives a "good enough" general overview of the rebases and equilibriums so far. Looking for official information how the oracle price is calculated.
Plus