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

MQL5 Convertir Traduction

Spécifications

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



Répondu

1
Développeur 1
Évaluation
(18)
Projets
22
9%
Arbitrage
6
33% / 50%
En retard
1
5%
Chargé
2
Développeur 2
Évaluation
(255)
Projets
262
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
3
Développeur 3
Évaluation
(6)
Projets
5
0%
Arbitrage
2
50% / 50%
En retard
2
40%
Gratuit
4
Développeur 4
Évaluation
(10)
Projets
19
42%
Arbitrage
6
0% / 50%
En retard
3
16%
Travail
5
Développeur 5
Évaluation
(25)
Projets
33
24%
Arbitrage
3
33% / 33%
En retard
4
12%
Travail
6
Développeur 6
Évaluation
(144)
Projets
186
41%
Arbitrage
24
58% / 21%
En retard
13
7%
Gratuit
7
Développeur 7
Évaluation
(10)
Projets
19
37%
Arbitrage
2
0% / 100%
En retard
4
21%
Chargé
8
Développeur 8
Évaluation
(7)
Projets
8
0%
Arbitrage
2
0% / 50%
En retard
1
13%
Travail
9
Développeur 9
Évaluation
(3)
Projets
3
33%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 articles
10
Développeur 10
Évaluation
(187)
Projets
243
20%
Arbitrage
22
50% / 18%
En retard
0
Travail
11
Développeur 11
Évaluation
(2)
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
(509)
Projets
977
74%
Arbitrage
27
19% / 67%
En retard
101
10%
Gratuit
Publié : 1 article, 6 codes
15
Développeur 15
Évaluation
(4)
Projets
8
0%
Arbitrage
3
33% / 67%
En retard
4
50%
Gratuit
16
Développeur 16
Évaluation
(40)
Projets
47
28%
Arbitrage
14
21% / 64%
En retard
1
2%
Occupé
17
Développeur 17
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
18
Développeur 18
Évaluation
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
19
Développeur 19
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
20
Développeur 20
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
21
Développeur 21
Évaluation
(162)
Projets
287
34%
Arbitrage
18
22% / 61%
En retard
42
15%
Travail
22
Développeur 22
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
Projets
2
0%
Arbitrage
4
25% / 50%
En retard
1
50%
Gratuit
24
Développeur 24
Évaluation
(296)
Projets
475
40%
Arbitrage
105
40% / 24%
En retard
80
17%
Occupé
Publié : 2 codes
25
Développeur 25
Évaluation
(3)
Projets
1
100%
Arbitrage
3
0% / 100%
En retard
0
Gratuit

Informations sur le projet

Budget
30+ USD