I need an EA for MT4 based on MACD cross and Moving Averages.

MQL4 Experts

Job finished

Execution time 3 days
Feedback from customer
Nuri delivered exactly what I asked. worked perfect!

Specification

I need an EA for MT4 based on MACD cross and Moving Averages. Below is a detailed description of the proposed EA. There's also a BUY example attached for clarity.  This EA should work for for all time frames and symbols.


Global Variables

MacDFast    = Fast=12 //Fast EMA Period

MacDSlow    = Slow=26 //Slow EMA Period

MacDSource  = Close   // Applied Price

MacDSignal  = 9       //Signal Line Period

MacDRangeLong  = -4.5,-45.0 //MacD Range for BUY signal when macd cross signal line

MacDRangeShort =  4.5, 45.0 //Range for SELL signal when macd cross signal line

EMA1    = 100 //100 Exponential Moving Average

EMA2    = 125 //125 Exponential Moving Average

EMA3    = 200 //200 Exponential Moving Average

LotSize = 0.01 //Default lot size

AlertOnly  = 0 //When all conditions are met, trigger mt4 alert

TradeOnly  = 0 //When all conditions are met, trigger mt4 trade

TakeProfit = 0 //Take Profit variable is set when conditions are met

StopLoss   = 0 //Stop Loss variable is set when conditions are met

RiskReward = 1.5 //Default risk/reward ratio multiplier

Session    = 0 //0=All Sessions, 1=New York, 2=London, 3=Tokyo, 4=Sydney (User can select multiple sessions)

MutipleOrders = 0 //0=Open Order when conditions are met 1=Only open one order at a time, additional order cannot be opened

ATR = 14 //Average true range used in stop loss calculation


Long: At Candle open

    if (previous candle high and low > EMA1) && (previous candle high and low > EMA2) && (previous candle high and low > EMA3) 

      if (current candle open > EMA1) && (current candle open > EMA2) && (current candle open > EMA3) 

if (macd and signal line cross between MacDRangeLong)


        if(AlertOnly = 1 && TradeOnly  = 0)

(

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward

  Alert("Buy at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )

        )


if(AlertOnly = 0 && TradeOnly  = 1)

        (

  Buy Market Order

  LotSize = LotSize

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward


  when ( price = 50% of TakeProfit )

       StopLoss  = break even + 5 pips

  when ( price = TakeProfit )

     Trailing Stop Loss = calculated by subtracting the current ATR value from the lowest-low of the given lookback period 

       )


Short: At Candle open

    if (previous candle high and low < EMA1) && (previous candle high and low < EMA2) && (previous candle high and low < EMA3) 

      if (current candle open < EMA1) && (current candle open < EMA2) && (current candle open < EMA3) 

if (macd and signal line cross between MacDRangeShort)


        if(AlertOnly = 1 && TradeOnly  = 0)

(

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward

  Alert("Sell at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )

        )


if(AlertOnly = 0 && TradeOnly  = 1)

        (

  Sell Market Order

  LotSize = LotSize

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward


  when ( price = 50% of TakeProfit )

       StopLoss  = break even + 5 pips

  when ( price = TakeProfit )

     Trailing Stop Loss = calculated by adding the current ATR value to the highest-high of the given lookback period

       )


Responded

1
Developer 1
Rating
(414)
Projects
670
33%
Arbitration
60
17% / 32%
Overdue
113
17%
Working
2
Developer 2
Rating
(3)
Projects
5
0%
Arbitration
0
Overdue
3
60%
Free
3
Developer 3
Rating
(508)
Projects
764
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
4
Developer 4
Rating
(24)
Projects
28
32%
Arbitration
1
0% / 0%
Overdue
0
Free
5
Developer 5
Rating
(15)
Projects
17
6%
Arbitration
1
0% / 100%
Overdue
1
6%
Free
6
Developer 6
Rating
(236)
Projects
418
34%
Arbitration
52
37% / 40%
Overdue
153
37%
Busy
7
Developer 7
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
8
Developer 8
Rating
(126)
Projects
151
48%
Arbitration
6
83% / 17%
Overdue
2
1%
Free
9
Developer 9
Rating
(68)
Projects
72
21%
Arbitration
6
50% / 33%
Overdue
1
1%
Free
10
Developer 10
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
"I need an expert advisor (EA) based on stochastic divergence and candlestick formation. It should be able to identify both hidden and regular divergences. The EA should also include modified risk-reward ratios, modified timeframes, and a trailing stop loss. It is important that the EA is 100% accurate. Once an experienced developer applies, I will share the complete strategy."
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for
I need someone that can make expert advisor for backtesting purpose. The input file is History trade report export file from MQl5 the expert advisor should open position the exact time of open trade on the report. The same as the close time
So i have copier EA. The idea is the EA will triggered through manual OP by user via mobile or whatever platform. Let's say 0.01 lot to trigger it. After the EA takes master's position, the EA will be standby mode. If the master take more OP, the EA still not take the master's position (OP) until the user input manually once again via mobile for another 0.01 lot. Since this is a MT4 EA, Whenever user want to close
Hello, send robot models with a solid strategy (to trade forex), I want to use it to make money for the week. It is important that you present me with your profitability graph and a test. I also want to hire him for future jobs
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
Seeking an experienced MQL5 developer to create a sophisticated Expert Advisor focused on harmonic pattern trading . The EA will be designed to identify and trade based on popular harmonic patterns in the forex market. Entry and Exit Logic: Develop smart entry and exit rules based on pattern completions and price action confirmations. Risk Management: Incorporate adjustable risk-per-trade settings and position sizing
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Description - An expert advisor(s), placing sell trades in EUR/USD, based on the close price of the previous two candles, as shown in the figure below. The trades would be made in the 5 minute, 1 hour, and 1 day timeframes. In the 5 minute and 1 hour timeframes the market orders would be placed at the start of a new candle, at specific times EST. The order would be cancelled at the close of that candle, i.e after 5
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 5 day(s)