Hedge EA with Martingale

MQL5 专家

指定

Let's develop an EA for MT5.


Indicators:

Bollinger Bands with customizable period and deviation.

Moving Average with customizable period.


Financial Manager:

Customizable initial lot size

Customizable Martingale multiplier (with decimals)

Customizable Take Profit (TP)

Customizable Stop Loss (SL)


Trading Logic:

if no open orders and the last trade hit TP:

Use the initial lot size.

If the moving average is above the middle band of the Bollinger Bands: open a buy order.

If the moving average is below the middle band of the Bollinger Bands: open a sell order.


if no open orders and the last trade hit SL:

Apply the Martingale multiplier to the last lot size.

Open a trade in the opposite direction of the last trade.


Please provide the complete MQL5 code for this EA.

反馈

1
开发者 1
等级
(16)
项目
23
26%
仲裁
1
0% / 0%
逾期
2
9%
空闲
2
开发者 2
等级
(2350)
项目
2956
63%
仲裁
125
44% / 26%
逾期
429
15%
工作中
3
开发者 3
等级
(634)
项目
741
34%
仲裁
49
53% / 39%
逾期
14
2%
工作中
4
开发者 4
等级
(298)
项目
478
40%
仲裁
105
40% / 24%
逾期
82
17%
已载入
发布者: 2 代码
5
开发者 5
等级
(328)
项目
333
71%
仲裁
2
100% / 0%
逾期
0
空闲
发布者: 1 代码
6
开发者 6
等级
(2677)
项目
3420
68%
仲裁
77
48% / 14%
逾期
343
10%
工作中
发布者: 1 代码
7
开发者 7
等级
(50)
项目
51
8%
仲裁
0
逾期
0
空闲
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
9
开发者 9
等级
(11)
项目
17
59%
仲裁
2
0% / 100%
逾期
2
12%
空闲
10
开发者 10
等级
(45)
项目
91
13%
仲裁
34
26% / 59%
逾期
37
41%
空闲
11
开发者 11
等级
项目
0
0%
仲裁
0
逾期
0
空闲

项目信息

预算
30 - 50 USD
截止日期
到 1 天