OPEN-SOURCE SCRIPT
업데이트됨 iFCPO MPOB Spike

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.
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.
릴리즈 노트
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).
릴리즈 노트
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.