MACD Sample Expert Advisor

MQL5 Experts

Termos de Referência

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.




Respondido

1
Desenvolvedor 1
Classificação
(340)
Projetos
535
32%
Arbitragem
23
65% / 9%
Expirado
15
3%
Trabalhando
2
Desenvolvedor 2
Classificação
(143)
Projetos
202
21%
Arbitragem
13
62% / 23%
Expirado
1
0%
Ocupado
3
Desenvolvedor 3
Classificação
(10)
Projetos
10
0%
Arbitragem
1
0% / 0%
Expirado
1
10%
Livre
4
Desenvolvedor 4
Classificação
(4)
Projetos
2
0%
Arbitragem
2
50% / 0%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(7)
Projetos
10
30%
Arbitragem
0
Expirado
1
10%
Livre
6
Desenvolvedor 6
Classificação
(319)
Projetos
518
66%
Arbitragem
52
21% / 38%
Expirado
164
32%
Trabalhando
7
Desenvolvedor 7
Classificação
(15)
Projetos
19
42%
Arbitragem
0
Expirado
0
Carregado
8
Desenvolvedor 8
Classificação
(45)
Projetos
61
15%
Arbitragem
1
0% / 0%
Expirado
6
10%
Carregado
9
Desenvolvedor 9
Classificação
(236)
Projetos
440
26%
Arbitragem
125
21% / 56%
Expirado
96
22%
Trabalhando
10
Desenvolvedor 10
Classificação
(129)
Projetos
167
17%
Arbitragem
17
47% / 18%
Expirado
0
Trabalhando
11
Desenvolvedor 11
Classificação
(54)
Projetos
162
69%
Arbitragem
4
100% / 0%
Expirado
1
1%
Trabalhando
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(362)
Projetos
502
40%
Arbitragem
145
17% / 73%
Expirado
98
20%
Ocupado
14
Desenvolvedor 14
Classificação
(20)
Projetos
24
8%
Arbitragem
6
17% / 17%
Expirado
3
13%
Carregado
15
Desenvolvedor 15
Classificação
(5)
Projetos
6
17%
Arbitragem
0
Expirado
0
Trabalhando
16
Desenvolvedor 16
Classificação
(6)
Projetos
7
43%
Arbitragem
2
0% / 0%
Expirado
2
29%
Ocupado
17
Desenvolvedor 17
Classificação
(41)
Projetos
87
13%
Arbitragem
29
31% / 48%
Expirado
35
40%
Ocupado
18
Desenvolvedor 18
Classificação
(9)
Projetos
13
8%
Arbitragem
1
0% / 100%
Expirado
0
Trabalhando
19
Desenvolvedor 19
Classificação
(192)
Projetos
196
27%
Arbitragem
0
Expirado
3
2%
Livre
20
Desenvolvedor 20
Classificação
(468)
Projetos
497
53%
Arbitragem
10
60% / 20%
Expirado
3
1%
Livre
21
Desenvolvedor 21
Classificação
(40)
Projetos
76
39%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(433)
Projetos
491
33%
Arbitragem
25
40% / 48%
Expirado
7
1%
Carregado
23
Desenvolvedor 23
Classificação
(562)
Projetos
929
48%
Arbitragem
301
59% / 25%
Expirado
123
13%
Carregado
24
Desenvolvedor 24
Classificação
(67)
Projetos
74
7%
Arbitragem
32
9% / 56%
Expirado
6
8%
Trabalhando
25
Desenvolvedor 25
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
26
Desenvolvedor 26
Classificação
(251)
Projetos
402
38%
Arbitragem
82
41% / 20%
Expirado
70
17%
Carregado
27
Desenvolvedor 27
Classificação
(167)
Projetos
191
10%
Arbitragem
37
38% / 35%
Expirado
5
3%
Trabalhando
28
Desenvolvedor 28
Classificação
(66)
Projetos
143
34%
Arbitragem
11
9% / 55%
Expirado
26
18%
Trabalhando
29
Desenvolvedor 29
Classificação
(96)
Projetos
143
76%
Arbitragem
0
Expirado
2
1%
Livre
30
Desenvolvedor 30
Classificação
(547)
Projetos
824
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Trabalhando
Pedidos semelhantes
Bom dia, O filtro de notícias do meu EA deixou de funcionar. Algum especialista para trabalhar no filtro de notícias? A ideia é apenas eliminar ordens pendentes ou abertas alguns minutos antes da divulgação de notícias e voltar a abrir alguns minutos depois da divulgação das notícias. Obrigado e cumprimentos, Nelson Dias
Trend follower 30 - 70 USD
Hey design for me an EA by the name of the trend follower on MT5 The EA will work on all timeframe, detect signals, trade and send them on telegram. The EA will have to detect the general trend first, then detect the signal that will follow the trend. After trend detection, EA will generate signals will be detected will be generated and send on telegram as trading zone. 1 Trend detection EA has to detect general
I need an Expert Advisor that can read trade signals from a Telegram Channel and then execute those trades. My telegram bot has admin access to the Telegram Channel The EA needs the following functionality: Position Size: Auto: + Have fixed lot size set in settings. + Have lot size by % of account (set in settings) Manual: + From lot size set in trade signals message. + From lot size by % of account from trade
Before you apply please read my terms This Job has been handle by two different coder and i have a copy of the code they provided right now on my vps The Job was cancel because it doesn't work as specify As a result of this i will require you provide a code that open and close before we lock the entire fund Let assume your fees is $40 or $60 or etc i will first upload requirement with $30 for you to start coding you
Hedging strategy with Moving Average along with other parameters and Conditions Expert Adviser (EA) – MQL 5 Main Parameters – Moving Average trend order, Hedging opposite order, Average and double average loss order, Stop Loss Strategy, No. of Open Buy and Sell Orders and another important 2 things are .. Exit Strategy & Pip gap between order Please note this EA .. it is a combination of new orders along with
Good day, I´m looking for an EA to execute outputs/signals from an Indicator. The options/settings should be like : open trades for TP1 / TP2 / TP3 ( incl SL ) TrailingStop by reaching certain TP´s option for closing trades by opposite signal (true/false) Money management: Fixed lot Risk by % Autlot and maybe some other ideas from your side to make it easier and more safe
The ZONE RECOVERY/HEDGING STRATEGY will be on a timeframe where each strategy is independent and pending orders should be placed at the high and low of the candlestick. If it is a buy, then the pending order at the high of the candlestick will be triggered, and if it is a sell, then the pending order at the low of the candlestick will be triggered. If the market breaks the high of the candlestick, then the pending
I NEED AN EXPERT ADVISOR BASED ON DIVERGENCE INDICATOR AND ORDER BLOCK INDICATOR.IT WILL USE ORDER BLOCK INDICATOR MAIN,SIGNAL AND CONFIRMATION CANDLES TO OPEN POSITIONS.IT WILL USE SOME DIFFERENT SETTINGS.TIME CONDITIONS,MULTIPLY SETTINGS,TRAILING STOP LOSS BREAKEVEN SETTING E.T.C.I WILL GIVE INDICATORS
Using a tradingview indicator Trend Indicator A (v2.3) to convert it into a Robot. Conditions as follows : Buy when the trend color is green, sell when trend color is red, set stop loss and take profits, risk to reward ratio 1:3 or when the trend color changes, whichever is best based on backtesting. You can add anything that will make the robot works better
hi I have a script in Tradingview that looks good which shows the buy and sell automation. I wanted to see if that can be used in ninja Trader so I converted it for Ninja Trader. But it is not triggering the buy or sell trade like it shows in the tradingview script. Please let me know if you can help me with the script that will work in Ninja Trader just like the one in Trading View. I have the buy and sell signals

Informações sobre o projeto

Orçamento
50 - 250 USD
Desenvolvedor
45 - 225 USD
Prazo
para 30 dias