An EA based on MACD DIVERGENCE

MQL4 Asesores Expertos

Tarea técnica

The idea of the trading system is as follows:

1.market entries are performed when MACD's main and signal lines intersect in the current trend direction.

2. Trend is determined based on the EMA with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is below the previous one, the trend is considered to be falling (ema_current< ema_previous).

3. Trading Signals:

  • Buy signal: the main MACD line crosses the signal line upwards (macd_current>signal_current && macd_previous<signal_previous).
  • Sell signal: the main MACD line crosses the signal line downwards (macd_current<signal_current && macd_previous>signal_previous). The below figure shows Buy and Sell cases.

4. I should be able to toggle all the parameters of Macd

5.Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.

6.Positions are opened at once the criteria is met and the candle is closed.

7. Additional filters for opening a position:

The absolute value of MACD's main line will be used to filter out weak signals: the signal is only confirmed if this value is greater than open_level (in points). Signal confirmation conditions are as follows:

  • Confirmation of a buy signal: Abs(macd_current)>open_level
  • Confirmation of a sell signal: macd_current>open_level

8. Additional filters for closing a position:

The absolute value of MACD's main line will also be used to confirm position closure: the signal is confirmed if this value is greater than close_level (in points). Close signal confirmation conditions are as follows:

  • Confirmation to close Buy positions — macd_current>close_level
  • Confirmation to close Sell positions — Abs(macd_current)>close_level

trailing stop is used to protect profit. 

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(9)
Proyectos
13
15%
Arbitraje
4
25% / 75%
Caducado
2
15%
Libre
2
Desarrollador 2
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
3
Desarrollador 3
Evaluación
(339)
Proyectos
809
73%
Arbitraje
30
33% / 37%
Caducado
194
24%
Libre
4
Desarrollador 4
Evaluación
(19)
Proyectos
35
26%
Arbitraje
10
30% / 70%
Caducado
5
14%
Libre
5
Desarrollador 5
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
6
Desarrollador 6
Evaluación
(5)
Proyectos
9
11%
Arbitraje
5
40% / 60%
Caducado
1
11%
Libre
7
Desarrollador 7
Evaluación
(236)
Proyectos
418
34%
Arbitraje
53
36% / 40%
Caducado
153
37%
Ocupado
8
Desarrollador 8
Evaluación
(126)
Proyectos
160
36%
Arbitraje
4
25% / 50%
Caducado
13
8%
Libre
9
Desarrollador 9
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(126)
Proyectos
151
48%
Arbitraje
6
83% / 17%
Caducado
2
1%
Libre
11
Desarrollador 11
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
12
Desarrollador 12
Evaluación
(66)
Proyectos
143
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
13
Desarrollador 13
Evaluación
(264)
Proyectos
538
50%
Arbitraje
55
40% / 36%
Caducado
224
42%
Trabaja
14
Desarrollador 14
Evaluación
(87)
Proyectos
114
26%
Arbitraje
7
29% / 57%
Caducado
5
4%
Libre
15
Desarrollador 15
Evaluación
(70)
Proyectos
86
31%
Arbitraje
1
100% / 0%
Caducado
1
1%
Libre
16
Desarrollador 16
Evaluación
(96)
Proyectos
143
76%
Arbitraje
0
Caducado
2
1%
Libre
Solicitudes similares
1) the EA can compound the lot size from 0.01 to 0.02 so on 2) the EA must able to trade different kind of pair 3) the EA will have stoploss or take profit 4) long term profit 5) for equiry will be 100 for every 0.01 lot Developer will have that kind of EA may apply and introduce any investor account! this EA must have mql4 file
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
Please watch the video on this youtube channel and download the Indicator from there. https://www.youtube.com/watch?v=ldTomLu8DxE&amp ;t=32s Rules are explained on the video and the download of the indicator is on the same video
I would like an EA that follows exactly this steps to trade de daily candle. Watch the video and then see if you can do the task. https://www.youtube.com/watch?v=g3oDYq4P9ZE Document is one this link https://cdn.discordapp.com/attachments/1135977927469703230/1135978751461695598/Daily_Bias-TTrades_edu.pdf?ex=669a9a27&amp ;is=669948a7&hm=96de195f7e695a381c1261b065f67b94fae319d02a0c88641b146f8b2978320c& Should have
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA

Información sobre el proyecto

Presupuesto
40+ USD
Para el ejecutor
36 USD