EMA Mr
- Experts
-
Bhavdip R Mangukiya -
8 years of experience in Personal trading and 4 years of experience in Coding.
So I can read your strategy understand it and develop it. Trading is really very hard thing.
some times some minor parameters can boost the result of the EA trading. I m able to find out those minor parameters. - 버전: 1.4
Overview
EMAMr is an advanced, fully automated Expert Advisor designed specifically for MetaTrader 5 (MT5). It utilizes a robust trend-following strategy based on Exponential Moving Average (EMA) crossovers combined with intelligent pyramiding and dynamic Take Profit management. Built with strict compliance to modern algorithmic trading standards, EMAMr is optimized to perform efficiently across multiple currency pairs and timeframes.
Whether you are trading on Hedging or Netting accounts, EMAMr adapts seamlessly, ensuring precise execution, automated volume management, and robust built-in risk protection.
Key Features & Advantages
-
Smart Trend Detection: Uses a dual EMA crossover system (Fast and Slow EMAs) to capture high-probability market momentum and avoid whipsaws.
-
Intelligent Pyramiding (Hedging Mode): Dynamically scales into profitable trends based on custom price steps, maximizing returns during strong market runs while securing earlier positions to cost-to-cost stop losses.
-
Dynamic Take Profit Calculation: Automatically recalculates Take Profit levels based on accumulated lot sizes and target profit percentages, ensuring consistent reward targets.
-
Built-in Drawdown Protector: Features an integrated account equity guard that automatically closes all active positions if the drawdown crosses your defined safety threshold, protecting your capital from extreme market events.
-
Broker Compliance & Safety: Fully compatible with broker rules, featuring built-in validations for minimum volume steps ( SYMBOL_VOLUME_STEP ), allowed trade volumes ( SYMBOL_VOLUME_MIN/MAX ), and stop levels ( SYMBOL_TRADE_STOPS_LEVEL ).
-
Free Margin Verification: Performs real-time margin checks using OrderCalcMargin() prior to placing any trade to prevent [No money] or margin call failures.
Trading Strategy & Logic
-
Entry Signal: The EA evaluates market conditions upon the close of each candle ( SERIES_LASTBAR_DATE ). A Buy signal triggers when the Fast EMA crosses above the Slow EMA, and a Sell signal triggers on a bearish crossover.
-
Reversal Management: If an active position exists and an opposite market signal occurs, the EA automatically closes existing positions and opens a fresh trade in the direction of the new signal.
-
Pyramiding & Cost-to-Cost Management: In Hedging accounts, as the price moves favorably by a user-defined percentage ( PriceStepPercent ), additional lots are added, and previous trades have their stop losses moved to break-even.
Input Parameters
-
FastEMAPeriod (Default = 9) – Period for the fast Exponential Moving Average.
-
SlowEMAPeriod (Default = 20) – Period for the slow Exponential Moving Average.
-
InitialBalance (Default = 1000.0) – Reference starting balance used for profit target calculations.
-
BaseLotSize (Default = 0.01) – Initial volume size for new trades.
-
ProfitPercent (Default = 5.0) – Target profit percentage relative to the initial balance.
-
PriceStepPercent (Default = 0.10) – Price movement percentage required to trigger pyramiding additions.
-
MaxDrawdownLimit (Default = 40.0) – Maximum allowed equity drawdown percentage before emergency position closure.
-
MagicNumber (Default = 123456) – Unique identifier for orders placed by this EA to avoid conflict with other strategies.
Recommendations for Live Trading
-
Account Type: Compatible with both Hedging and Netting accounts (Pyramiding features activate on Hedging accounts).
-
Timeframe: Optimized for H1 and M30 timeframes, though it can be tested across M1 to D1.
-
Spread & Commission: For best results, use a low-spread ECN broker with fast execution speeds and minimal slippage.
-
Minimum Capital: Recommended starting balance of $1,000 (or equivalent cent/micro account) when using 0.01 base lots.
Risk Disclaimer
Trading foreign exchange, precious metals, and financial derivatives carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. Always test this Expert Advisor on a demo account before deploying real capital.
