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

MQL5 Dönüştürme Çeviri

İş Gereklilikleri

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



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(18)
Projeler
22
9%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
1
5%
Yüklendi
2
Geliştirici 2
Derecelendirme
(255)
Projeler
262
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
3
Geliştirici 3
Derecelendirme
(6)
Projeler
5
0%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
2
40%
Serbest
4
Geliştirici 4
Derecelendirme
(10)
Projeler
19
42%
Arabuluculuk
6
0% / 50%
Süresi dolmuş
3
16%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(25)
Projeler
33
24%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
4
12%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(144)
Projeler
186
41%
Arabuluculuk
24
58% / 21%
Süresi dolmuş
13
7%
Serbest
7
Geliştirici 7
Derecelendirme
(10)
Projeler
19
37%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
4
21%
Yüklendi
8
Geliştirici 8
Derecelendirme
(7)
Projeler
8
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
13%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(3)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 makale
10
Geliştirici 10
Derecelendirme
(187)
Projeler
243
20%
Arabuluculuk
22
50% / 18%
Süresi dolmuş
0
Çalışıyor
11
Geliştirici 11
Derecelendirme
(2)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(509)
Projeler
977
74%
Arabuluculuk
27
19% / 67%
Süresi dolmuş
101
10%
Serbest
Yayınlandı: 1 makale, 6 kod
15
Geliştirici 15
Derecelendirme
(4)
Projeler
8
0%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
4
50%
Serbest
16
Geliştirici 16
Derecelendirme
(40)
Projeler
47
28%
Arabuluculuk
14
21% / 64%
Süresi dolmuş
1
2%
Meşgul
17
Geliştirici 17
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(4)
Projeler
3
33%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest
20
Geliştirici 20
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
21
Geliştirici 21
Derecelendirme
(162)
Projeler
287
34%
Arabuluculuk
18
22% / 61%
Süresi dolmuş
42
15%
Çalışıyor
22
Geliştirici 22
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
Projeler
2
0%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
1
50%
Serbest
24
Geliştirici 24
Derecelendirme
(296)
Projeler
475
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
80
17%
Meşgul
Yayınlandı: 2 kod
25
Geliştirici 25
Derecelendirme
(3)
Projeler
1
100%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
0
Serbest

Proje bilgisi

Bütçe
30+ USD