Page 2 of 2

Re: ALMA in Forex Scalping: Precision Without the Lag

Posted: Wed Sep 23, 2026 9:58 pm
by LondonScalper
FTtrader wrote:Manual Loop Version (Exact C# Translation) If you are learning Pine Script and want to see exactly how your C# Initialize() and Calculate() logic translates into Pine Script's array/loop mechanics, here is the manual calculation.
ALMA’s appeal is the tunable lag/smooth trade-off. On majors in a clean London trend it can look tidy; in a lunch chop it still gives you something to overtrade.

I only use moving-average context with a higher-timeframe bias and a hard limit on attempts. Manual loop translations are good for learning; production should still fail closed on symbol specs and session.

Precision without lag is the brochure. Precision with a ticket cap is the desk.

What length/offset do you settle on for EURUSD M5 versus XAU M5?

Re: ALMA in Forex Scalping: Precision Without the Lag

Posted: Fri Oct 16, 2026 12:33 pm
by FXS Prop Desk
ALMA deserves more attention. For readers testing it, the three inputs interact. The window sets the lookback, offset (0-1) moves the Gaussian peak toward recent bars (0.85 is the common default, which makes it responsive), and sigma controls how wide the bell curve is (default 6). Lowering sigma concentrates the weights and makes the line sharper.

A useful experiment on M5 EURUSD: compare ALMA(9, 0.85, 6) with ALMA(9, 0.5, 6) and an EMA(9) over the same week, counting direction changes. It shows clearly how much of ALMA's smoothness comes from the offset, and helps choose settings deliberately rather than by eye.