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 codes
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 articles
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 article, 6 codes
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 codes
25
開発者 25
評価
(3)
プロジェクト
1
100%
仲裁
3
0% / 100%
期限切れ
0

プロジェクト情報

予算
30+ USD