MACD Sample Expert Advisor

MQL5 Asesores Expertos

Tarea técnica

1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction.

2. Trend is determined based on the Exponential Moving Average 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. Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.

    5. Positions are opened at the market price, when a new bar emerges. The Expert Advisor is to be tested using Open prices, so there is no need to add functions for disabling operations inside the bar.

    6. 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

    7. 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

    8. Close by Take Profit — during position opening, a Take Profit level is set at a fixed distance from the open price, specified in points. The value is set in the InpTakeProfit input parameter.

    9. Position management

    TrailngStop is used to protect profit. Stop Loss is set if profit in points exceeds the value specified in the InpTrailingStop parameter. If the price continues to move in the profit direction, Stop Loss should be trailed at the given distance. Stop Loss cannot be moved towards the loss direction, i.e. the Stop Loss value cannot be increased. If none of protective orders (Take Profit or Stop Loss) triggers, the position should be closed by an opposite signal. No other position exit methods are available.




Han respondido

1
Desarrollador 1
Evaluación
(338)
Proyectos
531
32%
Arbitraje
23
65% / 9%
Caducado
15
3%
Libre
2
Desarrollador 2
Evaluación
(139)
Proyectos
195
21%
Arbitraje
13
54% / 23%
Caducado
1
1%
Ocupado
3
Desarrollador 3
Evaluación
(10)
Proyectos
10
0%
Arbitraje
1
0% / 0%
Caducado
1
10%
Libre
4
Desarrollador 4
Evaluación
(4)
Proyectos
2
0%
Arbitraje
2
50% / 0%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(7)
Proyectos
8
38%
Arbitraje
0
Caducado
0
Trabaja
6
Desarrollador 6
Evaluación
(319)
Proyectos
518
66%
Arbitraje
52
21% / 38%
Caducado
164
32%
Trabaja
7
Desarrollador 7
Evaluación
(14)
Proyectos
18
39%
Arbitraje
0
Caducado
0
Trabajando
8
Desarrollador 8
Evaluación
(43)
Proyectos
58
16%
Arbitraje
1
0% / 0%
Caducado
6
10%
Trabajando
9
Desarrollador 9
Evaluación
(236)
Proyectos
440
26%
Arbitraje
125
21% / 56%
Caducado
96
22%
Trabaja
10
Desarrollador 10
Evaluación
(129)
Proyectos
165
17%
Arbitraje
17
47% / 18%
Caducado
0
Trabaja
11
Desarrollador 11
Evaluación
(54)
Proyectos
159
69%
Arbitraje
4
100% / 0%
Caducado
1
1%
Libre
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(362)
Proyectos
502
40%
Arbitraje
145
17% / 73%
Caducado
98
20%
Ocupado
14
Desarrollador 14
Evaluación
(18)
Proyectos
22
5%
Arbitraje
6
17% / 17%
Caducado
3
14%
Trabajando
15
Desarrollador 15
Evaluación
(5)
Proyectos
6
17%
Arbitraje
0
Caducado
0
Trabaja
16
Desarrollador 16
Evaluación
(5)
Proyectos
6
33%
Arbitraje
1
0% / 0%
Caducado
2
33%
Trabajando
17
Desarrollador 17
Evaluación
(41)
Proyectos
87
13%
Arbitraje
30
30% / 47%
Caducado
35
40%
Ocupado
18
Desarrollador 18
Evaluación
(9)
Proyectos
13
8%
Arbitraje
1
0% / 100%
Caducado
0
Trabaja
19
Desarrollador 19
Evaluación
(189)
Proyectos
193
27%
Arbitraje
0
Caducado
3
2%
Libre
20
Desarrollador 20
Evaluación
(467)
Proyectos
496
53%
Arbitraje
10
60% / 20%
Caducado
3
1%
Trabaja
21
Desarrollador 21
Evaluación
(40)
Proyectos
76
39%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(430)
Proyectos
488
33%
Arbitraje
25
40% / 44%
Caducado
7
1%
Trabajando
23
Desarrollador 23
Evaluación
(560)
Proyectos
927
48%
Arbitraje
301
59% / 25%
Caducado
123
13%
Trabajando
24
Desarrollador 24
Evaluación
(67)
Proyectos
74
7%
Arbitraje
32
9% / 56%
Caducado
6
8%
Trabaja
25
Desarrollador 25
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
26
Desarrollador 26
Evaluación
(251)
Proyectos
402
38%
Arbitraje
82
41% / 20%
Caducado
70
17%
Trabaja
27
Desarrollador 27
Evaluación
(167)
Proyectos
191
10%
Arbitraje
37
38% / 35%
Caducado
5
3%
Trabaja
28
Desarrollador 28
Evaluación
(66)
Proyectos
143
34%
Arbitraje
11
9% / 55%
Caducado
26
18%
Trabaja
29
Desarrollador 29
Evaluación
(96)
Proyectos
143
76%
Arbitraje
0
Caducado
2
1%
Libre
30
Desarrollador 30
Evaluación
(547)
Proyectos
824
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Trabaja
Solicitudes similares
Develope Martingale Averaging Grid EA with my own logic. Create 2 Engine for two Setting parameter with same grid logic Add Simple Indicator RSI for Buy sell first Trade Order. Rsi entry logic is simple 30 for Buy and 70 for Sell
We are seeking an experienced MQL5 developer to create a custom trading bot for automated trading in the financial markets. The primary responsibilities include: Developing a robust MQL5 script to execute trades on shares and indexes (indices) based on predefined rules and inputs. Implementing logic for opening one initial order per market working day, timed at the market's opening moment. Incorporating user-defined
### Detailed ICT Fair Value Gap Strategy for Developer **Objective**: Develop a profitable Inner Circle Trader (ICT) Fair Value Gap (FVG) strategy for the 1-minute and 5-minute time frames focused on four key ICT kill zones per day. ### Components: #### 1. Market Structure Identification: - **Swing Highs and Lows**: Automatically detect and plot swing highs and lows to understand market structure and trends. -
Persian 50+ USD
Hello, I want to trade on the gold chart using the trader robot in Metatrader 4 between 50 and 100 dollars in a week to check the result. I want a free robot to test
Strategy To Be Used 1. Order Blocks (4HR, Daily And Weekly) 2. FVG (For Entry) 3. Fibonacci Levels (TP) 4. HH/LL ( SL) Works in 1HR & 4HR (TF) Risk to reward minimum 2:1 (Default) Winrate 53.21% (Accuracy) tested on Live account of 1000$ May 14th to May 31st You can change the risk per trade percent Per day DD Limit *it should takes multiple entries at the same price point when the price touches weekly/ daily
i need to add some functions to existing indicator, so i need to create a new one with a panel, fixing repaint and i would see some informations on chart
I want to develop a NinjaTrader automated strategy that has a high win rate for trading futures. So the strategy will automatically enter and exit for an account. Do you have any experience with this? If so, can you please share some past results? I want to develop the ICT Silver Bullet strategy to trade futures with Ninjascript. Please reference the attached document for a briefing. Let me know if this is something
Find a good Indicator 30 - 100 USD
As the title says, I need to find an Indicator with the function of scanning Accurate SMC signals on backtest with a nice control panel and can report signals to phone/email. Includes source code and export license for business. Please send Demo or pictures
Our current EA .ex4 file was earlier compatible with all mt4 updates, however in the recent 1420 update it’s not running, we need to make the same EA compatible with the current mt4 version, we only have the .ex4 file, no mql4 file
HI i am looking for any EA which can get me 10 to 15 trades Daily With $1 to $3 SL with 1: 2 Profit Ratio. Any Strategy will do. Say if if are getting 3USD SL and 5USD Profit with 50 % Winning Ration or $2 SL and 3$ Profit With 50% Winning Ratio. or 2$ SL and 10$ Profit 30% Wining Ration

Información sobre el proyecto

Presupuesto
50 - 250 USD
Para el ejecutor
45 - 225 USD
Plazo límite de ejecución
a 30 día(s)