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

MQL5 Converting Translation

Specification

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



Responded

1
Developer 1
Rating
(18)
Projects
22
9%
Arbitration
6
33% / 50%
Overdue
1
5%
Loaded
2
Developer 2
Rating
(255)
Projects
262
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
3
Developer 3
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
4
Developer 4
Rating
(10)
Projects
19
42%
Arbitration
6
0% / 50%
Overdue
3
16%
Working
5
Developer 5
Rating
(25)
Projects
33
24%
Arbitration
3
33% / 33%
Overdue
4
12%
Working
6
Developer 6
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
7
Developer 7
Rating
(10)
Projects
19
37%
Arbitration
2
0% / 100%
Overdue
4
21%
Loaded
8
Developer 8
Rating
(7)
Projects
8
0%
Arbitration
2
0% / 50%
Overdue
1
13%
Working
9
Developer 9
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Free
Published: 2 articles
10
Developer 10
Rating
(187)
Projects
243
20%
Arbitration
22
50% / 18%
Overdue
0
Free
11
Developer 11
Rating
(2)
Projects
3
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
(509)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
101
10%
Free
Published: 1 article, 6 codes
15
Developer 15
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
16
Developer 16
Rating
(40)
Projects
47
28%
Arbitration
14
21% / 64%
Overdue
1
2%
Busy
17
Developer 17
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
18
Developer 18
Rating
Projects
1
100%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(4)
Projects
3
33%
Arbitration
2
0% / 100%
Overdue
0
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
(162)
Projects
287
34%
Arbitration
18
22% / 61%
Overdue
42
15%
Working
22
Developer 22
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
24
Developer 24
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
25
Developer 25
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free

Project information

Budget
30+ USD