I need help with translating 2 strategies from ProRealCode (ProRealTime) to MT5, it's very simple strategies.

MQL5 Conversão Tradução

Termos de Referência

I need two simple trading strategies translated into MQL5.
Both systems already work in ProRealTime; I only need them rebuilt exactly the same in MT5.


When accepted you will see the exact parameters.

Please follow these rules:

  • No discretionary logic

  • No optimization

  • Clean, readable MQL5 code

  • Both strategies must run on Daily timeframe

  • Position sizing should follow the formulas I provide 

  • Long-only

  • One position at a time

  • Market orders only

  • No trailing stop, take profit, or stop loss

  • Code must compile with zero warnings or errors


📌 Strategy 1 – Mean Reversion with MA Envelope (Daily, Long-Only)

Implement the following:

Indicators

  • A moving-average envelope with upper and lower bands

  • A 200-day trend filter

  • ATR-based position size calculation

Entry

  • Only take long trades

  • Price must be above the long-term trend filter

  • Price must close below the lower envelope band

Exit

  • Close the long position when price closes above the upper envelope band

Position Sizing

  • Dynamic ATR-based sizing:
    Uses portfolio equity, a risk percentage, and ATR.
    I will provide the formula (implement exactly, no parameter inputs).


📌 Strategy 2 – Donchian Breakout (Daily, Long-Only)

Indicators

  • Donchian breakout channel (Entry based on X-day high, Exit based on Y-day low)

  • ATR-based position size calculation following my formula

  • Uses previous bar values for breakout levels

Entry

  • Enter long when:
    Close > previous bar's Donchian high

Exit

  • Exit long when:
    Close < previous bar’s Donchian low

Position Sizing

  • ATR-based sizing using portfolio size × risk percentage

  • No external parameters shown to user


📌 General Requirements
  • Build both strategies as two separate EA files

  • Should run on Daily-chart symbol

  • One position at a time

  • Clean code

  • Must work live and in backtesting

  • I provide logic → you translate exactly, MQL5-standard code quality expected

  • Deliver full MQ5 source code



Respondido

1
Desenvolvedor 1
Classificação
(18)
Projetos
22
9%
Arbitragem
6
33% / 50%
Expirado
1
5%
Carregado
2
Desenvolvedor 2
Classificação
(255)
Projetos
262
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
3
Desenvolvedor 3
Classificação
(6)
Projetos
5
0%
Arbitragem
2
50% / 50%
Expirado
2
40%
Livre
4
Desenvolvedor 4
Classificação
(10)
Projetos
19
42%
Arbitragem
6
0% / 50%
Expirado
3
16%
Trabalhando
5
Desenvolvedor 5
Classificação
(25)
Projetos
33
24%
Arbitragem
3
33% / 33%
Expirado
4
12%
Trabalhando
6
Desenvolvedor 6
Classificação
(144)
Projetos
186
41%
Arbitragem
24
58% / 21%
Expirado
13
7%
Livre
7
Desenvolvedor 7
Classificação
(10)
Projetos
19
37%
Arbitragem
2
0% / 100%
Expirado
4
21%
Carregado
8
Desenvolvedor 8
Classificação
(7)
Projetos
8
0%
Arbitragem
2
0% / 50%
Expirado
1
13%
Trabalhando
9
Desenvolvedor 9
Classificação
(3)
Projetos
3
33%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 artigos
10
Desenvolvedor 10
Classificação
(187)
Projetos
243
20%
Arbitragem
22
50% / 18%
Expirado
0
Trabalhando
11
Desenvolvedor 11
Classificação
(2)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(509)
Projetos
977
74%
Arbitragem
27
19% / 67%
Expirado
101
10%
Livre
Publicou: 1 artigo, 6 códigos
15
Desenvolvedor 15
Classificação
(4)
Projetos
8
0%
Arbitragem
3
33% / 67%
Expirado
4
50%
Livre
16
Desenvolvedor 16
Classificação
(40)
Projetos
47
28%
Arbitragem
14
21% / 64%
Expirado
1
2%
Ocupado
17
Desenvolvedor 17
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
18
Desenvolvedor 18
Classificação
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
19
Desenvolvedor 19
Classificação
(4)
Projetos
3
33%
Arbitragem
2
0% / 100%
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
(162)
Projetos
287
34%
Arbitragem
18
22% / 61%
Expirado
42
15%
Trabalhando
22
Desenvolvedor 22
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
Projetos
2
0%
Arbitragem
4
25% / 50%
Expirado
1
50%
Livre
24
Desenvolvedor 24
Classificação
(296)
Projetos
475
40%
Arbitragem
105
40% / 24%
Expirado
80
17%
Ocupado
Publicou: 2 códigos
25
Desenvolvedor 25
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30+ USD