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
등급
(15)
프로젝트
18
11%
중재
4
25% / 50%
기한 초과
1
6%
작업중
2
개발자 2
등급
(246)
프로젝트
253
30%
중재
0
기한 초과
3
1%
무료
게재됨: 2 코드
3
개발자 3
등급
(5)
프로젝트
4
0%
중재
2
50% / 50%
기한 초과
2
50%
무료
4
개발자 4
등급
(9)
프로젝트
18
39%
중재
6
0% / 33%
기한 초과
3
17%
로드됨
5
개발자 5
등급
(25)
프로젝트
33
24%
중재
3
33% / 33%
기한 초과
4
12%
무료
6
개발자 6
등급
(143)
프로젝트
184
42%
중재
24
58% / 17%
기한 초과
12
7%
작업중
7
개발자 7
등급
(4)
프로젝트
8
25%
중재
1
0% / 100%
기한 초과
2
25%
작업중
8
개발자 8
등급
프로젝트
1
0%
중재
0
기한 초과
0
무료
9
개발자 9
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
게재됨: 2 기고글
10
개발자 10
등급
(175)
프로젝트
225
20%
중재
19
42% / 16%
기한 초과
0
로드됨
11
개발자 11
등급
(2)
프로젝트
3
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
14
개발자 14
등급
(485)
프로젝트
943
75%
중재
25
16% / 68%
기한 초과
100
11%
로드됨
게재됨: 1 기고글, 6 코드
15
개발자 15
등급
(4)
프로젝트
5
0%
중재
1
100% / 0%
기한 초과
1
20%
작업중
16
개발자 16
등급
(25)
프로젝트
27
4%
중재
11
9% / 73%
기한 초과
0
바쁜
17
개발자 17
등급
프로젝트
0
0%
중재
1
0% / 0%
기한 초과
0
작업중
18
개발자 18
등급
프로젝트
1
100%
중재
0
기한 초과
0
무료
19
개발자 19
등급
(2)
프로젝트
2
0%
중재
0
기한 초과
0
무료
20
개발자 20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
개발자 21
등급
(159)
프로젝트
284
35%
중재
17
24% / 59%
기한 초과
42
15%
로드됨
22
개발자 22
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
23
개발자 23
등급
프로젝트
2
0%
중재
4
25% / 50%
기한 초과
1
50%
무료
24
개발자 24
등급
(291)
프로젝트
468
39%
중재
101
41% / 23%
기한 초과
76
16%
바쁜
게재됨: 2 코드

프로젝트 정보

예산
30+ USD
VAT (25%): 7.5 USD
총: 38 USD
개발자에게
27 USD

고객

(4)
넣은 주문6
중재 수0