OPEN-SOURCE SCRIPT
Telah dikemas kini 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).
Nota Keluaran
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).
Nota Keluaran
“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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.