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

MQL5 전환 번역

명시

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



응답함

1
개발자 1
등급
(18)
프로젝트
22
9%
중재
6
33% / 50%
기한 초과
1
5%
로드됨
2
개발자 2
등급
(255)
프로젝트
262
30%
중재
0
기한 초과
3
1%
무료
게재됨: 2 코드
3
개발자 3
등급
(6)
프로젝트
5
0%
중재
2
50% / 50%
기한 초과
2
40%
무료
4
개발자 4
등급
(10)
프로젝트
19
42%
중재
6
0% / 50%
기한 초과
3
16%
작업중
5
개발자 5
등급
(25)
프로젝트
33
24%
중재
3
33% / 33%
기한 초과
4
12%
작업중
6
개발자 6
등급
(144)
프로젝트
186
41%
중재
24
58% / 21%
기한 초과
13
7%
무료
7
개발자 7
등급
(10)
프로젝트
19
37%
중재
2
0% / 100%
기한 초과
4
21%
로드됨
8
개발자 8
등급
(7)
프로젝트
8
0%
중재
2
0% / 50%
기한 초과
1
13%
작업중
9
개발자 9
등급
(3)
프로젝트
3
33%
중재
0
기한 초과
0
무료
게재됨: 2 기고글
10
개발자 10
등급
(187)
프로젝트
243
20%
중재
22
50% / 18%
기한 초과
0
작업중
11
개발자 11
등급
(2)
프로젝트
3
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
14
개발자 14
등급
(509)
프로젝트
977
74%
중재
27
19% / 67%
기한 초과
101
10%
무료
게재됨: 1 기고글, 6 코드
15
개발자 15
등급
(4)
프로젝트
8
0%
중재
3
33% / 67%
기한 초과
4
50%
무료
16
개발자 16
등급
(40)
프로젝트
47
28%
중재
14
21% / 64%
기한 초과
1
2%
바쁜
17
개발자 17
등급
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
18
개발자 18
등급
프로젝트
1
100%
중재
0
기한 초과
0
무료
19
개발자 19
등급
(4)
프로젝트
3
33%
중재
2
0% / 100%
기한 초과
0
무료
20
개발자 20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
개발자 21
등급
(162)
프로젝트
287
34%
중재
18
22% / 61%
기한 초과
42
15%
작업중
22
개발자 22
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
23
개발자 23
등급
프로젝트
2
0%
중재
4
25% / 50%
기한 초과
1
50%
무료
24
개발자 24
등급
(296)
프로젝트
475
40%
중재
105
40% / 24%
기한 초과
80
17%
바쁜
게재됨: 2 코드
25
개발자 25
등급
(3)
프로젝트
1
100%
중재
3
0% / 100%
기한 초과
0
무료

프로젝트 정보

예산
30+ USD