OPEN-SOURCE SCRIPT
已更新 Binance Pseudo Funding Fee

The indicator calculates the Funding Fee for Binance based on the Premium Index provided by TradingView. The calculation formula can be found here: Binance Funding Rate Introduction. This is NOT the official rate visible on binance.com and used for settlements, but rather an estimated rate, which is inherently INACCURATE. The accuracy of the calculation heavily depends on the timeframe, with almost perfect results on minute-based timeframes.
For the most accurate calculations, you need to visit Binance Funding History and fill in the corresponding Interval, Interest Rate, and Funding Cap/Floor settings for the specific symbol in the indicator's settings. I understand this is not convenient, but for now, this is how it works.
The blue bars indicate the settlement time. Funding can be smoothed using moving averages. Both the funding rate and the moving averages are displayed using plot and are labeled, so you can set alerts on them.
For the most accurate calculations, you need to visit Binance Funding History and fill in the corresponding Interval, Interest Rate, and Funding Cap/Floor settings for the specific symbol in the indicator's settings. I understand this is not convenient, but for now, this is how it works.
The blue bars indicate the settlement time. Funding can be smoothed using moving averages. Both the funding rate and the moving averages are displayed using plot and are labeled, so you can set alerts on them.
版本注释
1. Hardcoded default settings for a number of tokens (not all).** For the hardcoded settings to be applied, leave the settings as **0**.2. Added a label displaying the applied settings and the current value of the calculated funding rate.**
版本注释
Added functionality to display the time remaining until the next closest funding settlement time.And, most importantly, a chart of the time multiplied (optionally) by the current funding value or its moving average has been implemented. This chart allows setting an alert on it. For example, you can set an alert 2 minutes before funding settlement if the funding value at that moment is between -1% and -2%.
The alert chart display is disabled by default but is still calculated, visible in the Data Window, and can be used for setting alerts.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。