An Expert Advisor opens position using two MACD indicators. It reverts the position in the case of loss. It uses a martingale with the limited number of doublings. The doublings can be disabled.
Input parameters:
- DML- amount of money, used for 1 lot;
- Ud – number of doublings. It starts from 0 – no doublings;
- Stop – stop loss in points;
- Tp – take profit in points;
- Slipage – slippage in points;
- MACD1Fast – Fast ЕМА of MACD, used for the entry;
- MACD1Slow – Slow ЕМА;
- MACD2Fast – Fast ЕМА of MACD, used to determine the trend;
- MACD2Slow – Slow ЕМА.