The Expert Advisor opens trades by MACD indicator signals on M5 timeframe.
- Sell signal: the MACD histogram crosses the signal line from top to bottom.
- Buy signal: the MACD histogram crosses the signal line from bottom to top.
The EA can work on any currency pair, while you can properly adjust it.
- Test the EA thoroughly to better understand its work.
- Reliable computer, uninterrupted Internet or VPS.
- Use 5-digit quotes.
- Use a dedicated low-spread ECN account.
- If you want to change a trading lot, re-launch the EA on a chart.
- LotMultiplier - lot multiplier (Martingale), 1 - disabled.
- Lots - initial deal volume.
- MaxLots - maximum deal volume.
- StopLoss - when a stop loss is triggered, a deal multiplied by LotMultiplier is opened.
- TakeProfit - profit in points.
- Magic - each chart has its own index number for deals.
- Slippage - allowed slippage.
- TrailingStop - fixed trailing stop; 0 - disabled, move a stop loss.
- TrailingStep - trailing stop step.
- UseCommissionCorrection - ECN commission: true/false.
- DefaultCommission - return commission for 1 lot (100 000): increase TakeProfit, reduce StopLoss by the commission size.
- CloseTradesOnFriday - close deals on Friday by GMT, start trading on Monday: true/false.
- FridayCloseGMTHour - close hour on Friday (GMT).
- FridayCloseGMTMinute - close minute on Friday (GMT).
- MondayStartGMTHour - open hour on Monday (GMT).
- MondayStartGMTMinute - open minute on Monday (GMT).
- FastEMA - fast EMA period.
- SlowEMA - slow EMA period.
- MacdSMA - signal line.
版本 2.0 - 2016.06.21
Updated the code and added new functions.