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
(22)
Projets
28
7%
Arbitrage
9
33% / 33%
En retard
1
4%
Travail
2
Développeur 2
Évaluation
(258)
Projets
269
29%
Arbitrage
2
50% / 0%
En retard
3
1%
Travail
Publié : 2 codes
3
Développeur 3
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
4
Développeur 4
Évaluation
(13)
Projets
23
39%
Arbitrage
8
0% / 50%
En retard
4
17%
Gratuit
5
Développeur 5
Évaluation
(25)
Projets
34
26%
Arbitrage
4
50% / 25%
En retard
4
12%
Gratuit
6
Développeur 6
Évaluation
(144)
Projets
186
41%
Arbitrage
24
58% / 21%
En retard
13
7%
Gratuit
7
Développeur 7
Évaluation
(16)
Projets
30
40%
Arbitrage
3
33% / 67%
En retard
7
23%
Travail
8
Développeur 8
Évaluation
(10)
Projets
12
0%
Arbitrage
3
33% / 33%
En retard
0
Gratuit
9
Développeur 9
Évaluation
(4)
Projets
4
25%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Publié : 2 articles
10
Développeur 10
Évaluation
(216)
Projets
283
20%
Arbitrage
28
57% / 14%
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
(511)
Projets
978
74%
Arbitrage
27
19% / 67%
En retard
100
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
(55)
Projets
68
43%
Arbitrage
16
25% / 56%
En retard
1
1%
Travail
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
289
35%
Arbitrage
18
22% / 61%
En retard
43
15%
Gratuit
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
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
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