Corrections to EA

Job finished

Execution time 1 day

Specification

I made a very simple EA but I get error "OrderSend error 130" in all backtests done in MetaTrader 4. I don't understand why the EA opens succesfully some trades (it is a long only EA) but it returns this error for some other trades. I think a checked correctly this error is not due to any of the next reasons:

  • stop loss and take profit are set as prices, and they are well established for a buy stop order, which is the way I'm trying to open each position.
  • it is said on some webs that ECN brokers (I am doing the backtest with Admiral Markets UK, which is a ECN borker) don't allow to use non-zero TP and SL when using OrderSend command. Instead, 0 must be used for these values and then replaced with OrderModify. I don't think this is the problem because, if this were the problem, why some trades are succesfully placed doing exactly the same?
  • stop levels are not enough close to open prices for the broker to give an error. Typically SL is placed about 50 pips (in 4 digit broker, 500 in 5 digit broker). I am using a 5 digit broker, since the command Digits returns a value of 5.
  • ope price, SL and TP are normalized double to Digits, so I don't expect to have any error for this reason.

I can not find any other reason for this error and that is why I would like someone to correct this EA.

I will consider this work is done when:

  • I run five backtest in Metatrader 4, each one in different timeframes and different dates, and none of them gives this "OrderSend error 130".
  • A clear explanation on how the error was corrected is given.
  • Some debug lines for assuring this error is not appearing anymore are added to the original source code.

Responded

1
Developer 1
Rating
(253)
Projects
358
49%
Arbitration
24
25% / 50%
Overdue
80
22%
Free
2
Developer 2
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(508)
Projects
764
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
5
Developer 5
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
6
Developer 6
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
7
Developer 7
Rating
(218)
Projects
404
60%
Arbitration
13
38% / 23%
Overdue
160
40%
Free
8
Developer 8
Rating
(16)
Projects
21
19%
Arbitration
7
0% / 71%
Overdue
14
67%
Free
9
Developer 9
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
10
Developer 10
Rating
(251)
Projects
400
54%
Arbitration
9
67% / 22%
Overdue
36
9%
Free
11
Developer 11
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
12
Developer 12
Rating
(586)
Projects
1047
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
13
Developer 13
Rating
(43)
Projects
72
49%
Arbitration
4
0% / 50%
Overdue
19
26%
Free
Similar orders
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
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
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
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
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

Project information

Budget
30+ USD
For the developer
27 USD