D1 ATR for daily SL placement. M5 ATR for trailing stops in PM. Both shown in points AND RM (RM25/pt × contracts).
Computes ATR(14) on both M5 and D1 via request.security(). Converts each to RM using FCPO contract spec (1 point = RM25 × contract count). Also derives 1R/2R/3R levels from D1 ATR. **Workflow guidance:** - **Use D1 ATR for initial SL placement.** If today's D1 ATR = 80pts, a 1R SL = 80pts × RM25 = RM2,000/contract. iFCPO research benchmark is SL=15pts (W21-O default), but D1 ATR tells you whether 15pt is unusually tight or normal for current vol. - **Use M5 ATR for tightening trailing stops** as the position runs. Once you're +50pts in profit, trail = M5 ATR × 1.5 keeps you in the trend without giving back too much. - **1R/2R/3R levels** mark where to scale out partial size in MYR terms. **Pair with:** rm-position-sizer (sizes the contracts based on your account); contract-spec-calc (rollover-week awareness).
Amaran Risiko: Dagangan niaga hadapan (futures) melibatkan risiko kerugian yang tinggi dan tidak sesuai untuk semua pelabur. Kerugian boleh melebihi deposit margin asal anda. Prestasi lampau bukan jaminan prestasi masa hadapan. Kandungan di laman ini adalah untuk tujuan pendidikan dan maklumat sahaja, dan bukan nasihat pelaburan. Pastikan anda memahami sepenuhnya risiko yang terlibat sebelum berdagang, dan dapatkan nasihat profesional jika perlu.