OPEN-SOURCE SCRIPT
Aggiornato

iFCPO MPOB Spike

201
iFCPO MPOB Volume Spike — flags 3x average volume on/near MPOB release day (10th of month).

MPOB releases monthly palm oil supply/demand data on/around the 10th of each month. Volume spikes around release windows often mark institutional positioning.

Detection: volume > 3x SMA(20) AND within +/-2 days of the 10th. Gold flag above bar + bg highlight. Outputs mpob_spike + near_mpob booleans.

FREE indicator from iFCPO — Malaysia palm-oil futures trading platform.
Note di rilascio
v2.0 — Polished release.

WHAT'S NEW
- 8-row research stats table: days-to-next MPOB countdown, current vol ratio vs 20-bar avg, configurable spike threshold, last-spike timestamp + ratio, state badge (★ MPOB SPIKE NOW / Window armed / Off-window), and an SL trade-adjustment hint (15→25 pts during the window).
- Spike labels stamped above the bar with the actual ratio (e.g. "3.4× vol").
- MPOB window background tint (amber) with a darker tint on the spike bar itself.
- Adjustable table position (4 corners).
- Two alerts: spike fires + window opens (the day the ±2-day MPOB window first turns on).
- Six chainable boolean outputs in the data window for combining with iFCPO Wick Hunter / Regime Meter.

PURPOSE
The Malaysian Palm Oil Board releases monthly stockpiles ≈ 10th of each month. Range expansion historically clusters in the ±2 day window. This indicator flags volume spikes during that window — a regime-change tell, not a directional signal. Use it to widen SL and stay on the sidelines during the imbalance, or to size up after the regime resolves.

PAIRS WITH
iFCPO Regime Meter (gate), iFCPO Wick Hunter (entry), iFCPO Session Law (timing), iFCPO MPOB Cycle Clock (countdown).
Note di rilascio
v3.0 Polish — Calendar bug fixes:

1. Replaced `days_in_month = 30` hardcode with proper days-in-current-month math (handles 28/29/30/31 day months + leap years). Previous version produced wrong "days to next MPOB" countdowns 4 months/year (Feb + 31-day months).

2. Added weekend shift logic: if MPOB's calendar 10th falls on Saturday/Sunday, the effective release day shifts to next Monday (11th or 12th). Previous version flagged the wrong window when the 10th was on a weekend.

Ecosystem updates: "Pair with" expanded to include mpob-cycle-clock — Spike is the LIVE event detector, Cycle Clock is the PLANNING/seasonality view (clear differentiation).

Part of the v3.0 free-tier polish wave.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.