Fix A Few Bugs In EA

MQL4 专家

指定

This is a sort of martingale kind of EA with ~2700 lines of code.
1) Baskets lose count of trades when stoploss is hit
     - eg if max trades is set at 3, when 3 trades are open and first trade hits its stoploss a fourth trade is opened.
This shouldn't happen as it keeps repeating i.e. a fifth, sixth, seventh etc etc trade is opened and keeps multiplying up the lot size.
Max trades should be for that whole basket, not just currently open trades.
2) With an FXCM account I still get trades being placed with no TP or SL as the modifyorder fails due to multiple attempts overlapping.
fyi FXCM price feed sends approximately 4 times as many ticks as other brokers and I am running VPS on a multi core processor.
There needs to be tighter control in the code to ensure trade commands are only sent once as multiple ticks could be processed by separate cores.
MT4 doesn't wait for one tick to finish processing before starting the next, it runs as multithread. Suggest using global variables to ensure trade commands
are sent one at a time, ideally with time gap between to cover execution delay.
And code should check for any missing TP or SLs and add them, or close trades if they are already hit.

      

反馈

1
开发者 1
等级
(320)
项目
521
66%
仲裁
52
21% / 38%
逾期
165
32%
工作中
2
开发者 2
等级
(107)
项目
149
36%
仲裁
29
3% / 55%
逾期
35
23%
空闲
3
开发者 3
等级
(49)
项目
134
27%
仲裁
62
13% / 53%
逾期
58
43%
空闲
4
开发者 4
等级
(103)
项目
205
41%
仲裁
17
29% / 71%
逾期
45
22%
空闲
5
开发者 5
等级
(2)
项目
2
0%
仲裁
13
8% / 92%
逾期
1
50%
空闲
6
开发者 6
等级
(2422)
项目
3042
66%
仲裁
77
48% / 14%
逾期
340
11%
工作中
7
开发者 7
等级
(34)
项目
80
34%
仲裁
13
31% / 54%
逾期
19
24%
空闲
8
开发者 8
等级
(91)
项目
144
38%
仲裁
67
15% / 48%
逾期
55
38%
空闲
9
开发者 9
等级
(121)
项目
134
66%
仲裁
36
25% / 56%
逾期
22
16%
空闲
10
开发者 10
等级
(272)
项目
394
63%
仲裁
70
53% / 26%
逾期
198
50%
空闲
11
开发者 11
等级
(59)
项目
182
55%
仲裁
31
45% / 16%
逾期
103
57%
空闲
12
开发者 12
等级
(264)
项目
538
50%
仲裁
55
40% / 36%
逾期
224
42%
工作中
13
开发者 13
等级
(586)
项目
1047
49%
仲裁
39
28% / 41%
逾期
49
5%
空闲
14
开发者 14
等级
项目
0
0%
仲裁
0
逾期
0
空闲
15
开发者 15
等级
(1)
项目
4
25%
仲裁
1
0% / 100%
逾期
1
25%
空闲
相似订单
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it

项目信息

预算
60 - 150 USD
开发人员
54 - 135 USD
截止日期
 2  5 天