Two Frame Momentum Trend
- Experts
-
Chawada Krunal Pratapbhai
I design rule-based trading systems focused on market behavior,
risk control, and execution discipline.
My work is not about predictions or daily profits.
It is about how systems behave under real market conditions.
I specialize in MT4/MT5 Expert Advisors, prop-firm–safe risk management, - Versione: 1.0
- Attivazioni: 5
Two Frame Momentum Trend is a rule-based Expert Advisor for MetaTrader 5. It combines a momentum trigger on the chart timeframe with a trend filter from a higher timeframe, and manages every trade with a fixed stop-loss and take-profit.
How it works
1. Momentum trigger: on each new bar, the EA checks whether RSI crossed the 50 level on the last closed candle.
2. Chart trend confirmation: the closed candle must be on the same side of the chart EMA as the trade direction.
3. Higher-timeframe filter: the closed candle must also be on the same side of an EMA calculated on the higher timeframe (H1 by default). The value is taken from the last fully closed higher-timeframe bar.
4. Optional support/resistance filter: when the higher timeframe is above the chart timeframe, the EA identifies confirmed swing highs and lows on the higher timeframe and skips new entries that would open just below resistance (buy) or just above support (sell). This filter only blocks entries; it never opens trades by itself.
5. Exits: stop-loss is based on ATR, take-profit is a fixed multiple of the stop-loss distance. When price moves 1R in profit, the stop-loss is moved to the entry price.
Main features
- One position at a time per symbol and magic number
- Every trade is sent with a stop-loss and take-profit
- Breakeven at 1R
- Optional maximum-spread filter (disabled by default)
- Pre-trade checks for free margin, volume limits, stop levels and freeze levels
- Works on hedging and netting accounts
- No martingale, no grid, no averaging, no arbitrage, no news trading
Recommended settings
- Symbol: XAUUSD
- Chart timeframe: M5
- Higher timeframe: H1
- Take-profit ratio: 2.0 (risk:reward 1:2)
- Other inputs: default values
- The EA can run on other symbols and timeframes; test them on your own broker before use.
Strategy Tester results (XAUUSD M5, approx. 20 months, every tick, 0.01 lot, 10,000 USD demo deposit)
- Total trades: 4583
- Profit factor: 1.08
- Win rate: 33% (risk:reward 1:2, so most trades are losses and profitability depends on the larger winners)
- Maximum equity drawdown: 3.29%
- Longest losing streak: 17 trades
These are historical tester results on one broker's data. The edge per trade is small, so higher spreads or commissions can reduce or remove profitability. Test with your broker's conditions before trading live.
Input parameters
Trade Settings
- InpLots: fixed lot size (default 0.01)
- InpMagic: magic number used to identify the EA's trades (default 8001)
- InpDeviationPoints: maximum slippage in points (default 10)
- InpMaxSpreadPoints: maximum spread in points for new entries; 0 disables the filter (default 0)
Signal Settings
- InpEMA_Period: chart EMA period (default 21)
- InpRSI_Period: RSI period; entries use the 50-level cross (default 14)
Higher Timeframe Filter
- InpHTF_Timeframe: higher timeframe used for the trend EMA and support/resistance (default H1)
- InpHTF_EMA_Period: higher-timeframe EMA period (default 50)
- InpUseSRFilter: enable the support/resistance entry filter (default true; active only when the higher timeframe is above the chart timeframe)
- InpSwingLeftBars / InpSwingRightBars: bars required on each side to confirm a swing (default 3 / 3)
- InpSwingLookback: number of closed higher-timeframe bars scanned for swings (default 100)
- InpSRBufferATR: size of the blocking zone around a level, in multiples of chart ATR (default 0.5)
Risk / Exit Settings
- InpATR_Period: ATR period (default 14)
- InpATR_Multiplier: stop-loss distance in multiples of ATR (default 2.0)
- InpTP_Ratio: take-profit distance as a multiple of the stop-loss distance (default 2.0)
- InpUseBreakeven: move stop-loss to entry at the trigger level (default true)
- InpBE_TriggerR: breakeven trigger in multiples of the initial risk (default 1.0)
Important notes
- The lot size is fixed. Risk per trade in money changes with volatility and with the symbol, because the stop-loss is ATR-based. Choose a lot size suitable for your account.
- On a netting account, a manual position on the same symbol will be merged with the EA's position.
- Results depend on the broker, spread, commission and execution. Past test results do not guarantee future results. Always test on a demo account first.
- Trading involves risk. This product does not promise any profit.
