OPEN-SOURCE SCRIPT
已更新 Futures Gann Month

Builds a a continuous chart of the same month for a futures contract (e.g. ZSH2026).
This means such a chart consists of March '22, March '23, March '24, March '25, March '26...
The script goes back 20 years at most (depending on the current ticker selected in TradingView).
This means such a chart consists of March '22, March '23, March '24, March '25, March '26...
The script goes back 20 years at most (depending on the current ticker selected in TradingView).
發行說明
Builds a a continuous chart of the same month for a futures contract (e.g. ZSH2026).This means such a chart consists of March '22, March '23, March '24, March '25, March '26...
The script goes back 20 years at most (depending on the current ticker selected in TradingView).
發行說明
“Futures Gann Month” Update (clean & fast)We’ve updated the indicator to be easier to use, faster, and cleaner.
It now auto-detects the symbol and contract month, preserves the exchange prefix (CBOT:, NYMEX:, etc.), and only loads the data needed for each bar. Result: less lag and more reliable charts.
How to use it (practically)
1. Paste the new script and add the indicator to your chart.
2. Keep Auto-detect root & month ON (default). If your symbol is ZCH2026, the indicator will automatically show the March (H) Gann across years—no manual setup needed.
Useful settings
1. Force month (for continuous)
If you use continuous symbols like ZS1! or CL1! (no month letter), enter the month letter you want:
F=Jan, G=Feb, H=Mar, J=Apr, K=May, M=Jun, N=Jul, Q=Aug, U=Sep, V=Oct, X=Nov, Z=Dec.
2. Years of history
How many years back to display (20 by default). If things feel heavy, drop to 10–15.
3. Rollover month
Leave 0 (Auto) to use the detected month letter. Change only if your market uses a different rule.
4. Rollover day
The annual switch day (default 14). If you see a 1–2 day misalignment, tweak this.
5. Edge tolerance days
Extra ± days around the rollover window. Set 1 if time zone/session edges cause off-by-one issues.
6. Barmerge gaps on/off
OFF (recommended) smooths gaps when stitching contracts. ON preserves gaps for inspection.
7. Bar color
Pick the bar color for the Gann series.
Quick notes
1. If the symbol includes a month letter (e.g., ZCK2025), you don’t need to touch anything.
2. If the symbol doesn’t include a month (continuous), use Force month.
3. The UI is now cleaner—no debug panels by default.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。