Contrarian Investor
- Experts
-
Leyian Brian
About me - Version: 1.0
- Activations: 5
Contrarian AllMarket EA is a multi-symbol trend-following Expert Advisor designed for MetaTrader 5. It operates across a wide range of instruments, supporting trading on a single symbol, a predefined list of major pairs, or an extended list covering forex, metals, indices, commodities, cryptocurrencies, and select stocks — up to 60+ symbols depending on broker availability.
Key features:
- Trend-based entry and exit logic
- ATR-based stop loss and take profit (configurable multiples)
- Position sizing: percentage of balance (compounding) or fixed dollar risk
- Special low-balance protection (< $500): switches to fixed lot size with $1 risk per trade
- Optional trailing stop loss and breakeven functionality
- On-screen alerts for trade signals
- Single position per symbol (no grid/martingale)
- Pure MQL5 code (no DLLs)
Risk Management
The EA includes built-in risk controls:
- Compounding mode: risks a user-defined percentage of current balance per trade
- Fixed mode: risks a set dollar amount
- For accounts ≤ $500: automatically uses a safe fixed lot size with $1 maximum risk
- All stops and lots respect broker symbol properties (min lot, lot step, stop levels)
Trading is inherently risky. Past performance does not guarantee future results. Use appropriate position sizing and test thoroughly in the Strategy Tester and on a demo account before live trading.
Parameters
Expert Setup
- InputMultiSymbol: Choose trading mode (Current symbol / Major symbols / All tradable symbols)
Risk Inputs
- MagicNumber: Unique identifier for EA trades
- InputRiskMethod: Compounding (percentage) or Fixed (dollar amount)
- RiskPercentOrDollar: Value for selected risk method (e.g., 2.0 = 2% or $150)
- FixedLotSize: Safe lot size for balances ≤ $500
- TakeProfitAtrMultiple: TP distance in ATR multiples (default 3.0)
- StopLossAtrMultiple: SL distance in ATR multiples (default 1.5)
- IsTsl: Enable trailing stop loss
- IsBreakeven: Enable breakeven stop loss
- BreakevenTriggerAtrMultiple: Distance in ATR to move SL to breakeven
- EnableAlerts: Show on-screen alerts for signals
Recommendations
- Timeframe: Any (tested on H1–D1)
- Symbols: Works on all listed in Major/All modes (verify availability with your broker)
- Minimum deposit: $500 recommended for percentage risk mode
- Always backtest on your broker's data and symbols before use
Support
For questions or feedback, contact via MQL5 profile comments.
Version 1.00 – February 2026
