Mtf Middle Expert Advisor
- Uzmanlar
-
Dragan Joksimovic
MQL4 / MQL5 Expert Advisor and Indicator Developer
I develop and test Expert Advisors, indicators and trading utilities for MetaTrader 4 and MetaTrader 5 based on clearly defined trading rules.
My work includes:
• Expert Advisors for MT4 and MT5
• Custom indicators - Sürüm: 3.20
- Etkinleştirmeler: 10
Mtf Middle Expert Advisor is a MetaTrader 4 trading robot based on a multi-timeframe middle-of-candle model.
The higher timeframe defines the allowed direction. By default, the EA reads the middle of the last closed M30 candles and confirms direction with both slope and price position. The lower timeframe then waits for an entry signal, by default an M5 close crossing the middle of its own candle.
All signal decisions are made from closed candles only. The EA does not use the current forming candle for entries, which helps keep live signals consistent with Strategy Tester behavior.
Main features:
- Multi-timeframe direction and trigger logic.
- Direction modes: slope, price side, or both combined.
- Trigger modes: close cross, trigger slope, or trigger-to-direction middle cross.
- One position per symbol and Magic Number.
- Optional stop loss and take profit.
- Optional trailing stop with step control.
- Optional spread filter.
- Optional exit when the higher-timeframe direction becomes unclear.
- Diagnostic and debug logging.
Main inputs:
- DirectionTF: higher timeframe used for trade direction. Default M30.
- TriggerTF: lower timeframe used for entry timing. Default M5.
- DirectionMode: chooses how direction is confirmed.
- TriggerMode: chooses how entries are triggered.
- ExitOnOppositeTrigger: optionally closes a trade on opposite trigger.
- ExitOnDirectionUnclear: closes a trade when direction no longer agrees.
- Lots: fixed lot size.
- MagicNumber: separates this EA's trades from other systems.
- SlippagePips: accepted slippage in pips.
- MaxSpreadPips: optional spread filter, 0 means disabled.
- UseStopLoss / StopLossPips: optional stop loss.
- UseTakeProfit / TakeProfitPips: optional take profit.
- UseTrailingStop / TrailingStopPips / TrailingStepPips: optional trailing stop.
Suggested use:
Attach the EA to one MT4 chart and choose explicit DirectionTF and TriggerTF values. TriggerTF should be lower than DirectionTF. Test and optimize settings for the symbol, timeframe and broker conditions you trade.
This product is an automated trading tool. It does not guarantee profit, and historical testing does not guarantee future results. Use appropriate risk control and test on a demo account first.
