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
(513)
Projects
775
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
(219)
Projects
405
60%
Arbitration
13
38% / 23%
Overdue
160
40%
Working
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
1048
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
algo trading application want to developed Prerequisites for ordering a trading robot Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading
I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
Only for developers with experience in debugging, and array-out-of-range issues. A custom indicator seems to work on a static chart, but 1 buffer still has mistakes in it, resulting in a value of 1 for every bar: the code needs to be reviewed and modified, resulting in a working indicator for every symbol, for every timeframe: sometimes when the timeframe is switched, the chart closes automatically, but all the time
Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
Hello! I am looking for an experienced Pine Script coder to create a custom indicator for mapping market structure based on fractals. The developer must be skilled in Pine Script and have a solid understanding of how to code market structure indicators. Looking forward to working with a talented developer
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
I want a program that automatically disables manual trade execution once a specified number of trades have already been placed. ie. After a total of 3 trades have been placed on that day, manual trade execution should be disabled. I want the program to also limit the amount of lots that can be traded in any given day. ie. Maximum of 15 standard lots in any given day. The program should disable manual trade execution
Greetings to all developers that see this post, I have a task, I would like to work with an expert. I have an indicator that is written in the Pine script (TradingView) language; I would like it converted to MQL5, which will then lead to the creation of a trading bot based on the circumstances. I'll give you access to the indicator file
I am looking for a highly sample and ready and tested profitable EA to purchase.if it meets my requirements i will order same one.EA must be low drawdown high profit on any timeframe
i have a ready made SMC EA and looking for optimizing and debugging and also adding back the missing things in the requirement file. Basically work with the current code and refine it to fit the requirement file. Most indicator is already in the EA and the requirement file below are mostly finish. here are the things need to add back and debug based on the requirement file 1. TP from the filter and need to check

Project information

Budget
30+ USD
For the developer
27 USD