MQL5 Algo Trading
579K subscribers
4.63K photos
7 videos
4.64K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Heikin-Ashi smoothing remains a practical way to reduce candle noise, but standalone HA signals can fail when isolated strong bars appear inside a broader countertrend move.

A stricter filter is added with EMA50 slope on close as the directional gate, plus EMA20 on high/low as short-term boundaries. Signals are accepted only when HA direction, EMA50 slope, and HA close breaking the EMA20 envelope all agree, with a prior-bar cross check around EMA50 to reduce repeats.

Implementation in MQL5 uses EMA indicator handles, tester-safe HA calculation fallback, strict object naming, and timestamp de-duplication. Cleanup releases handles and removes prefixed objects to avoid chart clutter and resource leaks.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #Strategy
❤31👌5🤣4🎉1
Educational-only material; not trading advice. EURUSD backtests under the stated constraints were unprofitable.

Method: the high/low of the first 4H candle is captured using New York local time. After that 4H bar closes, the system waits for a 5-minute close outside the range, then a subsequent 5-minute close back inside. Close above high then back inside triggers a sell signal; close below low then back inside triggers a buy signal.

A time filter invalidates signals if price remains above the high or below the low for more than 75 minutes, reducing entries after extended moves. Correct server time handling is critical: broker GMT offsets and DST switch dates must be configured accurately or the New York 4H window shifts and invalidates results.

Inputs: ServerGMTOffsetWinter, ServerGMTOffsetSummer, ServerSwitchToSummerMonth/Day, ServerSwitchToWinterMo...

👉 Read | Quotes | @mql5dev

#MQL4 #MT4 #Strategy
❤32✍3👍2👌2