OPEN-SOURCE SCRIPT
Aktualisiert iFCPO Holiday Skip

iFCPO Holiday Skip — Bursa Malaysia public-holiday calendar overlay for FCPO traders.
Grey-washes holiday bars + prints holiday name label. Covers all Bursa public holidays for 2024-2026: New Year, Thaipusam, CNY, Hari Raya Aidilfitri/Haji, Wesak, Labour Day, Agong Birthday, Awal Muharram, National Day, Malaysia Day, Maulidur Rasul, Deepavali, Christmas + Federal Territory Day.
Outputs in_Holiday boolean (chainable from other indicators).
FREE indicator from iFCPO — Malaysia palm-oil futures trading platform.
Grey-washes holiday bars + prints holiday name label. Covers all Bursa public holidays for 2024-2026: New Year, Thaipusam, CNY, Hari Raya Aidilfitri/Haji, Wesak, Labour Day, Agong Birthday, Awal Muharram, National Day, Malaysia Day, Maulidur Rasul, Deepavali, Christmas + Federal Territory Day.
Outputs in_Holiday boolean (chainable from other indicators).
FREE indicator from iFCPO — Malaysia palm-oil futures trading platform.
Versionshinweise
v2.0 — Polished release.WHAT'S NEW
- 6-row research stats table: today's status (★ HOLIDAY / ⚠ Tomorrow holiday / Trading day), name of the next Bursa public holiday, days-to-next countdown (auto-computed across 47 hardcoded dates), calendar coverage badge, and pair-with hint.
- Computed NEXT-HOLIDAY name via chained pick() lookup over the 47 dates — no longer just a flag.
- Two background tints: grey wash on holiday bars + amber tint on T-1 (gap-down risk warning).
- Holiday name labels stamped on the open of each holiday day ("🚫 Hari Raya Aidilfitri — Bursa CLOSED").
- Adjustable table position (4 corners).
- Two alerts: tomorrow-is-a-holiday + holiday-today.
- Three chainable boolean outputs in the data window.
PURPOSE
Bursa Malaysia closes for 18–19 public holidays per year. FCPO halts during Bursa closures, and the day before / after often gaps. This indicator gives you the full 2024–2026 calendar baked in, plus a one-day-ahead warning so you can size down or close before the gap.
PAIRS WITH
iFCPO Session Law (PM window), iFCPO Regime Meter (gate), iFCPO Wick Hunter (entry), iFCPO Festive Calendar (CNY / Aidilfitri seasonal bias).
Versionshinweise
v3.0 Polish — Bug fix: Replaced 360/30-days approximation in days-to-next-holiday with exact timestamp-diff calculation. Previous formula drifted ~5-6 days near year boundaries (Dec→Jan), causing the "Tomorrow holiday" alert to mis-fire. Now uses timestamp(yr, mo, dy) subtraction for an exact day count.Also part of the v3.0 free-tier polish wave (recommend re-applying these scripts):
• Wick Hunter — fixed late_pm minute-arithmetic bug (was muting only :30-:59 of hour 16, missing 17:00-17:29).
• Regime Meter — fixed D1 EMA200 intraday repaint via [1] inside request.security().
• MYR Context + Soyoil Spread — same daily-close repaint fix; Soyoil now uses log-ratio z-score (scale-neutral).
• MPOB Spike + Cycle Clock — proper days-in-month math + weekend shift for the 10th; Cycle Clock now reports a measured rolling 60-bar post-window ATR multiplier instead of a hardcoded "1.4-1.8×" claim.
Cross-references: Pair-with rows updated across the 8-script free tier — Wick Hunter, Regime Meter, MYR Context and Soyoil Spread now reference each other so the suite cross-sells correctly.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.