OPEN-SOURCE SCRIPT
Atualizado iFCPO MPOB Cycle Clock

MPOB Cycle Clock — countdown to next Malaysian Palm Oil Board stockpiles release with post-release ATR multiplier context.
iFCPO Free-Tier CONTEXT layer. Use as size/SL adjustment cue, not as entry trigger.
MPOB releases monthly stockpiles ~10th of each month. Post-release window (10th-12th) historically shows 1.4-1.8x the 20-day baseline ATR. The status table shows: days to next release, current phase (NOW / close / soon / far), live ATR vs 40-bar baseline, and a trade-adjustment cue (Widen SL 15->25 inside MPOB window).
Pair with: iFCPO MPOB Spike (event flag), iFCPO Wick Hunter (entry trigger), iFCPO Session Law (PM window).
iFCPO Free Hero Stack designed for Bursa Malaysia FCPO traders.
iFCPO Free-Tier CONTEXT layer. Use as size/SL adjustment cue, not as entry trigger.
MPOB releases monthly stockpiles ~10th of each month. Post-release window (10th-12th) historically shows 1.4-1.8x the 20-day baseline ATR. The status table shows: days to next release, current phase (NOW / close / soon / far), live ATR vs 40-bar baseline, and a trade-adjustment cue (Widen SL 15->25 inside MPOB window).
Pair with: iFCPO MPOB Spike (event flag), iFCPO Wick Hunter (entry trigger), iFCPO Session Law (PM window).
iFCPO Free Hero Stack designed for Bursa Malaysia FCPO traders.
Notas de Lançamento
v2.0 Polish — Three improvements:1. Calendar fix: Replaced `days_in_month = 30` hardcode with proper days-in-current-month math (handles 28/29/30/31 day months + leap years). Plus weekend shift logic — if MPOB's calendar 10th lands Sat/Sun, effective release shifts to next Monday.
2. Replaced decorative ATR claim with measured rolling average: previous "Post-MPOB stat: 1.4-1.8× normal ATR" was hardcoded text not measured from data. Now the table shows a real `Post-MPOB ATR avg` row that accumulates the live ATR multiplier across the LAST 60 confirmed post-MPOB bars (rolling) and reports the actual average. Honest, measured, updates over time.
3. Repositioned to differentiate from mpob-volume-spike: Cycle Clock = PLANNING/seasonality view (countdown, what to expect, ATR drift). Spike = LIVE event detector (3× volume firing on the day). Header + Pair-with row updated to make the split clear.
Part of the v3.0 free-tier polish wave.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.