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

MQL5 In conversione Traduzione

Specifiche

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



Con risposta

1
Sviluppatore 1
Valutazioni
(18)
Progetti
22
9%
Arbitraggio
6
33% / 50%
In ritardo
1
5%
Caricato
2
Sviluppatore 2
Valutazioni
(255)
Progetti
262
30%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
3
Sviluppatore 3
Valutazioni
(6)
Progetti
5
0%
Arbitraggio
2
50% / 50%
In ritardo
2
40%
Gratuito
4
Sviluppatore 4
Valutazioni
(10)
Progetti
19
42%
Arbitraggio
6
0% / 50%
In ritardo
3
16%
In elaborazione
5
Sviluppatore 5
Valutazioni
(25)
Progetti
33
24%
Arbitraggio
3
33% / 33%
In ritardo
4
12%
In elaborazione
6
Sviluppatore 6
Valutazioni
(144)
Progetti
186
41%
Arbitraggio
24
58% / 21%
In ritardo
13
7%
Gratuito
7
Sviluppatore 7
Valutazioni
(10)
Progetti
19
37%
Arbitraggio
2
0% / 100%
In ritardo
4
21%
Caricato
8
Sviluppatore 8
Valutazioni
(7)
Progetti
8
0%
Arbitraggio
2
0% / 50%
In ritardo
1
13%
In elaborazione
9
Sviluppatore 9
Valutazioni
(3)
Progetti
3
33%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 2 articoli
10
Sviluppatore 10
Valutazioni
(187)
Progetti
243
20%
Arbitraggio
22
50% / 18%
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(509)
Progetti
977
74%
Arbitraggio
27
19% / 67%
In ritardo
101
10%
Gratuito
Pubblicati: 1 articolo, 6 codici
15
Sviluppatore 15
Valutazioni
(4)
Progetti
8
0%
Arbitraggio
3
33% / 67%
In ritardo
4
50%
Gratuito
16
Sviluppatore 16
Valutazioni
(40)
Progetti
47
28%
Arbitraggio
14
21% / 64%
In ritardo
1
2%
Occupato
17
Sviluppatore 17
Valutazioni
Progetti
0
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
18
Sviluppatore 18
Valutazioni
Progetti
1
100%
Arbitraggio
0
In ritardo
0
Gratuito
19
Sviluppatore 19
Valutazioni
(4)
Progetti
3
33%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
20
Sviluppatore 20
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
21
Sviluppatore 21
Valutazioni
(162)
Progetti
287
34%
Arbitraggio
18
22% / 61%
In ritardo
42
15%
In elaborazione
22
Sviluppatore 22
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
23
Sviluppatore 23
Valutazioni
Progetti
2
0%
Arbitraggio
4
25% / 50%
In ritardo
1
50%
Gratuito
24
Sviluppatore 24
Valutazioni
(296)
Progetti
475
40%
Arbitraggio
105
40% / 24%
In ritardo
80
17%
Occupato
Pubblicati: 2 codici
25
Sviluppatore 25
Valutazioni
(3)
Progetti
1
100%
Arbitraggio
3
0% / 100%
In ritardo
0
Gratuito

Informazioni sul progetto

Budget
30+ USD