OPEN-SOURCE SCRIPT
已更新 ES Magic Levels

This indicator projects key SPX price levels onto the ES or MES futures chart, automatically calculating the real-time basis offset between SPX and ES so that every level is drawn at the exact corresponding ES price.
Levels included:
Each level is drawn as a horizontal line extending to the left with a label showing the original SPX value it corresponds to. Colors are fully customizable per level type. A small table in the bottom-right corner displays the current ES−SPX basis in real time.
How to use:
Apply to any ES or MES chart on any timeframe. All levels update automatically at each tick. The dynamic offset ensures that even during roll periods the levels remain accurate.
Levels included:
- Round numbers every 50 points (100pt levels are thicker and more prominent)
- Previous Day High / Low
- Previous Week High / Low
- Previous Month High / Low
- Previous Year High / Low
Each level is drawn as a horizontal line extending to the left with a label showing the original SPX value it corresponds to. Colors are fully customizable per level type. A small table in the bottom-right corner displays the current ES−SPX basis in real time.
How to use:
Apply to any ES or MES chart on any timeframe. All levels update automatically at each tick. The dynamic offset ensures that even during roll periods the levels remain accurate.
版本注释
This indicator projects key SPX price levels onto the ES or MES futures chart, automatically calculating the real-time basis offset between SPX and ES so that every level is drawn at the exact corresponding ES price.Levels included:
- Round numbers every 50 points (100pt levels are thicker and more prominent)
- Previous Day High / Low
- Previous Week High / Low
- Previous Month High / Low
- Previous Year High / Low
Each level is drawn as a horizontal line extending to the left with a label showing the original SPX value it corresponds to. Colors are fully customizable per level type. A small table in the bottom-right corner displays the current ES−SPX basis in real time.
How to use:
Apply to any ES or MES chart on any timeframe. All levels update automatically at each tick. The dynamic offset ensures that even during roll periods the levels remain accurate.
版本注释
- minor fix版本注释
+ minor fix版本注释
+ chart update版本注释
+ Fix non RH time版本注释
+ add PDO e PDC版本注释
+ fix out RH 版本注释
+ out rth fix版本注释
ML MH e WL WH added版本注释
+ multiple fix版本注释
+ update graph版本注释
- fix rolling contract开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。