Specification
Please create an expert advisor for mt4 using FXDREEMA.
ea using 2 ema's and an HMA indicator- only enters long trades. Only allow one trade at a time and one trade per candlestick.
When the Fast ema is above the slow ema
Entry #1 - enter any trade when a candle closes as bull candle above the fast ema
Entry #2 - enter any trade when a live candle crosses above either ema or hma by "n" pips
When the slow ema is above the HMA by "n" pips and the fast ema has been below the HMA at any point in the last "n" bars
Entry #3 - enter when a live candle crosses above HMA by "n"pips
Trades close 1 of 3 ways
Set stop loss based off ATR with a multiplier (ATR multiplier should allow decimals) Once the trade opens the atr sets the stop and it doesn't change for the rest of that trade, each new trade will have a
different SL based off the current ATR Multiplier). There should also be a mimum stop loss in the case that the atr value is really small. The minimum stop loss shouldn't prevent a trade from entering if the sl
is too small, but instead move a really small sl to the new minimum and allow the trade to happen.
1. Trade stops out
2. Profit reaches a multiple (or percentage) of the stop loss determined by the ATR multiple and then moves SL to a positive value (like a breakeven) that is a percentage of the stop loss
Example. If the stop loss is 20 pips and our profit multiple of the stop loss is 1.5 (or 150%), we have to first reach a profit of 30 pips, then the stop loss moves to a percentage of the original
profit multiple. So if we have the percentage as 30 percent of the stop loss multiple the new SL(or breakeven) well be 9 pips
3. If at any point during the trade we reach our profit multiple, close trade when candle crosses "n" pips below the HMA. Doesn't matter if the profit
is now below the original target price
EA should include the following adjustable parameters
1. Fast ema value
2. Slow ema value
3. HMA value
4. ATR period
5. ATR multiple value
6. Profit target (as a percentage or multiple of SL)
7. Breakeven (as a percentage of the profit target)
8. Pips needed to cross below HMA after reaching profit target to close trade
9. Pips needed to cross above ema's or hma to enter a trade
10. pips slow ema must be above HMA for entry #3
11. number of bars to look back at for fast ema below HMA for entry #3
12. Minimum Stop loss