MA Crossover Averaging (DCA) Forex Robot (code GD-5002) is an EA for MetaTrader 4 and MetaTrader 5. The first order opens when two moving averages cross on a closed candle: when the fast MA (default EMA 10) crosses above the slow MA (default EMA 50) a BUY basket opens, and a cross below opens a SELL basket. After that the EA manages the order chain with DCA.
Basket management is the same as RSI and MA Averaging (DCA) Forex Robot (GD-5001); only the first-order signal differs. The MA crossover signal is the same as MA Crossover Forex Robot (GD-1002).
All of the EA's orders in the same direction form one basket. When price moves 5 dollars against the farthest order of the basket, the EA opens another order in the same direction with a bigger lot, pulling the basket's average price closer to the current price. When price comes back to 2.5 dollars from the average price, the whole basket takes profit at once. The BUY and SELL baskets run independently and can both be open at the same time.
Default settings are made for gold XAUUSD. On brokers that quote gold with 3 decimals (for example 2650.125), 1 gold dollar = 1000 points: a 5000-point distance is 5 dollars and a 2500-point take profit is 2.5 dollars. On brokers that quote gold with 2 decimals, 1 dollar = 100 points, so divide the point settings by 10. For other symbols, adjust the distance, take profit and maximum spread.
Example BUY basket with arithmetic lots: order 1 buys 0.01 lot at 2650, price drops to 2645 and it buys 0.02 more, 0.03 at 2640, 0.04 at 2635. Total 0.10 lot, average price 2640, the whole basket takes profit at 2642.5 for about 25 USD, even though price has not returned to the first order. You can try your own order chain with the Gold DCA calculator.
DCA risk. If price keeps running against you, the basket grows and the loss rises fast. With the defaults (0.01 lot, arithmetic), a full basket of 10 orders is 0.55 lot with an average price 30 dollars from the first order; every further dollar adds about 55 USD of loss. Test on a demo account, size the lot to your capital and keep the basket loss cut on.
The EA does not use a Trailing Stop. The take profit is set on every order, so it still closes when your computer is off. One file gives a 7-day trial on a demo account and runs live once licensed. Every order carries the comment "www.HoangTrong.com" and the product's own magic number.