perfectly suited for prop firms and their challengers
**God of Trends** is an automated trading robot for MetaTrader 5 designed to detect breakouts of local highs or lows. It determines market direction using fast and slow EMAs, checks the RSI, and—if necessary—evaluates the higher timeframe trend, ADX, and trading volume. In aggressive mode, the bot places pending orders near breakout levels in advance. The level detection period is reduced to 15 candles, and the entry buffer to 0.08 ATR, allowing the robot to react faster to new movements and potentially open more trades.
Key product features include automatic trading volume calculation based on risk, protection against daily and total drawdown, market direction filtering, and protection against duplicate orders. The bot maintains no more than one open position per symbol. Once a trade is opened, the Take Profit level remains fixed, while the Stop Loss cannot be moved back to increase the initial risk; the trailing mechanism moves the stop only to reduce risk and lock in profit.
Input parameters:
* `InpLookback` — number of candles for breakout level detection, **15**.
* `InpBufferAtrFrac` — offset from the level as a fraction of ATR, **0.08**.
* `InpUseDateFilter` — enable testing period restriction.
* `InpDaysBack` — number of days for testing.
* `InpRiskPerTrade` — base risk per trade.
* `InpAtrLength` — ATR period.
* `InpStopAtrMult` — ATR multiplier for the initial Stop Loss. * `InpRrRatio` — Profit-to-risk ratio for Take Profit.
* `InpTrailAfterBars` — Number of bars before trailing activates.
* `InpTrailAtrMult` — Trailing distance in ATR.
* `InpEmaFastLen` — Fast EMA period.
* `InpEmaSlowLen` — Slow EMA period.
* `InpUseHTF` — Enable higher timeframe filter.
* `InpUseAutoHTF` — Automatic higher timeframe selection.
* `InpHTFManual` — Manual higher timeframe selection.
* `InpHTFEmaLen` — Higher timeframe EMA period.
* `InpUseADX` — Enable ADX filter.
* `InpAdxLen` — DMI period.
* `InpAdxSmoothing` — ADX smoothing.
* `InpAdxMin` — Minimum ADX value.
* `InpRsiLen` — RSI period.
* `InpEntryMode` — Aggressive or conservative entry mode.
* `InpUseBuffer` — Enable breakout buffer.
* `InpUseVolFilter` — Enable volume filter.
* `InpVolLen` — Average trading volume period.
* `InpVolMult` — Required volume multiplier.
* `InpUseDDGuards` — Enable drawdown protection.
* `InpMaxDailyDDPct` — Maximum daily drawdown.
* `InpMaxTotalDDPct` — Maximum total drawdown from peak equity.
* `InpCloseOnLimit` — Close positions and delete orders upon reaching the limit. * `InpCapRiskToDaily` — risk limitation based on the daily budget.
* `InpMinEntriesPerDay` — the number of trades over which the daily risk budget is distributed.
* `InpDailyRiskBuffer` — the portion of the daily limit available for trading.
* `InpDebug` — detailed logging of diagnostic information to the MT5 journal.