Author of the concept: Alexander, creator of the mq5 code: barabashkakvn.
The Dealers Trade v 7.74 EA leverages the iMACD (Moving Average Convergence/Divergence) indicator to make trading decisions. As your positions increase, the lot size will scale up following a Martingale strategy, which can amplify both your potential profits and risks.
This Expert Advisor is tailored for use on H4 and D1 timeframes, making it a solid choice for those who prefer swing trading.
Managing Your Position Volume:
- You can set the initial lot size manually;
- Alternatively, it can be auto-calculated based on a percentage of your free margin.
You also have the option to cap:
- The maximum number of open positions;
- The maximum lot size.
Profit Protection: If enabled, the EA will safeguard your profits. If your total profit exceeds a specified threshold and you have at least as many positions as your protected amount, the EA will close the most profitable position. For instance, if your overall profit is $52 with four open positions and you've set a protected amount of "3," one position will be closed to maintain a minimum of three open trades.
Input Parameters
- Lots (if <= "0" -> use "Risk") - Position volume (if <= "0.0", the lot will be computed using the "Risk" parameter);
- Stop Loss (in pips) - The Stop Loss value;
- Take Profit (in pips) - The Take Profit value;
- Trailing Stop (in pips) - The trailing stop value;
- Trailing Step (min value == 1)(in pips) - The trailing step value;
- Risk in percent for a deal from free margin - Risk percentage per trade based on free margin;
- Max open positions - The maximum number of concurrent open positions;
- Interval between positions - The spacing between positions;
- Min profit. Close max profit position - Minimum profit threshold to close the most profitable position;
- Account protection. If "true" -> close max profit position - Enables profit protection, closing the most profitable position;
- Number of open items if "Account protection" = "true" - Defines the number of positions to keep protected;
- Reverse condition - Reversing trade signals;
- MACD: fast ema period - Fast EMA period for MACD;
- MACD: slow ema period - Slow EMA period for MACD;
- Max volume of position - Sets the maximum allowed position size;
- Lot coefficient - Multiplier for the lot size; as more positions are opened, the lot size increases.
Comments 0