EA opening opposite pending orders

MQL4

Job finished

Execution time 27 minutes

Specification

I need an EA for currencies on MT4, which upon activation (without any further signals) opens a pair of pending orders: A buy stop a specific distance (in %) above the current bid price and a sell stop the same distance (in %) below the current ask price. For both of these stop loss and take profit orders are placed.
Once one of the orders is opened, the other one is deleted. The whole process starts again from the beginning, as soon as the open position is closed or if neither the level for the buy stop nor the sell stop has been reached after a certain period of time.
New orders should only be opened in a defined timeframe (for example from 9 am to 9 pm). The lot size is to be set automatically to a value, so that upon opening of one of the orders a given percentage of the available capital equals the margin.  (10000 € available capital, percentage=40%, margin=4000 €, margin rate = 3,33%, current price(EURUSD)=1,085 => lot size=1,11)

For example:
EURUSD is currently trading at 1,0841/1,0850. Distance for the order levels is 0.001%, Distance for take profit is 0,0008%, for stop loss 0,0004 points.
=> Order level for the buy stop/long order is at 1.08609 with take profit/stop loss at 1,08696/1,08569.
=> Order level for the sell stop/short order is at 1,08302 with take profit/stop loss at 1,08216/1,08342.
• If after the waiting period of 90 minutes neither a price of 1.08609 nor 1,08302 has been reached, the orders ar canceled and a new pair of orders is created according to then current prizes.
• If a price of 1.08609 (for the buy stop/long order) is reached and the position is opened, the sell stop/short order is immediatley deleted. ...and the other way round, if the short position is opened.
• As soon as the opened position is closed by reaching the take profit or stop loss level, a new pair of orders is created according to then current prizes.

The variables needed are:
- distance of the order leverls above and below the current prices. Input of the variable should be in percent. (for example 0.00085%)
- distance of take profit above or below the order levels. Input of the variable should again be in percent.
- distance of stop loss above or below the order levels. Input of the variable should bei in points. (for example 0.00055)
- the waiting period, after which unopened orders are deleted (in minutes)
- percentage of available capital, that is to be put up as margin. ( e.g. 45 %)
- (mr: margin rate - if MT cant't automatcally determine the margin rate, so that the lot size can be calculated, e.g. 3,33% for most forex)
- earliest hour for opening trades
- latest hour for opening trades (both hours in 24h-format)

Responded

1
Developer 1
Rating
5
(10)
Projects
13
46%
Arbitration
1
100% / 0%
Overdue
0
Free
2
Developer 2
Rating
4.74
(66)
Projects
79
11%
Arbitration
12
67% / 25%
Overdue
5
6%
Free
3
Developer 3
Rating
4.65
(65)
Projects
97
9%
Arbitration
10
40% / 20%
Overdue
7
7%
4
Developer 4
Rating
4.47
(15)
Projects
16
19%
Arbitration
3
0% / 67%
Overdue
2
13%
Working
5
Developer 5
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
4.86
(65)
Projects
101
43%
Arbitration
11
27% / 55%
Overdue
13
13%
7
Developer 7
Rating
4.5
(2)
Projects
2
0%
Arbitration
2
0% / 0%
Overdue
0
Working
8
Developer 8
Rating
5
(11)
Projects
19
32%
Arbitration
0
Overdue
1
5%
9
Developer 9
Rating
5
(5)
Projects
5
40%
Arbitration
0
Overdue
0
Working
10
Developer 10
Rating
4.97
(419)
Projects
517
25%
Arbitration
20
40% / 40%
Overdue
80
15%
Working
11
Developer 11
Rating
5
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
4.97
(156)
Projects
197
52%
Arbitration
3
0% / 0%
Overdue
3
2%
Working
13
Developer 13
Rating
4.87
(367)
Projects
419
40%
Arbitration
15
40% / 40%
Overdue
26
6%
Busy
14
Developer 14
Rating
4.97
(471)
Projects
1204
60%
Arbitration
24
79% / 0%
Overdue
10
1%
Free
15
Developer 15
Rating
4.99
(382)
Projects
399
51%
Arbitration
8
50% / 25%
Overdue
3
1%
Working
16
Developer 16
Rating
1
(1)
Projects
2
0%
Arbitration
2
50% / 50%
Overdue
0
Working
17
Developer 17
Rating
4.86
(298)
Projects
375
41%
Arbitration
67
36% / 37%
Overdue
9
2%
Busy
18
Developer 18
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
4.71
(34)
Projects
38
5%
Arbitration
14
7% / 71%
Overdue
5
13%
20
Developer 20
Rating
5
(87)
Projects
125
41%
Arbitration
6
67% / 17%
Overdue
11
9%
Working
21
Developer 21
Rating
4.83
(513)
Projects
875
49%
Arbitration
295
59% / 25%
Overdue
122
14%
22
Developer 22
Rating
4.97
(2203)
Projects
2760
64%
Arbitration
75
47% / 15%
Overdue
339
12%
Working
23
Developer 23
Rating
5
(192)
Projects
202
69%
Arbitration
1
100% / 0%
Overdue
0
Similar orders
I need an upgraded accurate binary bot that can work on deriv platform and can trade any of the volatility market. The bot should be able to buy and sell with a good profit multiplier and daily income with a higher winning rate. I will provide more details on video. I will also provide more details once you are selected
Hi dear coders, i have a trading utility that is in mt4, and i made an mt5 version of it, but unfortunately i can not convert a few functions from mt4 to mt5. The job would consist of converting only a few functions from mql4 to mql5 to an already existing mql5 program. I will handle the files in private discussion and i will also let you know in private what functions to convert . My budget is fixed ! Thank you
Hello i've a mt4 trading dashboard that i wanna convert to be mt5/mql5 language . its just simple one and i wanna be exactly same as mt4 with all features
Hi, I am keen to engage you for a job. I actually already have a EA ready but I will like to optimise and more importantly have a discussion on how to improve the strategy to obtain a lower drawdown % with optimal profits. Hence, the key steps are to discuss (1) possible improvements to the EA strategy and (2) finding the best parameters to finalise the EA for use in a live account. For that, you need to be highly
I have used the ea builder to build and it works fine on my mt5 platform apart from showing errors in the journal when trying set SL or TP. -I am looking to hire a developer from here to append the two EAs I created I would be trying to achieve the following precisely: -Merge the formulas in 1 ea with conditional logic to scan markets or loop over various currencies pairs and only open a trade if conditions are met
I am interested in an EA which uses a simple triple EMA for spread betting GBP to USD, although theoretically this could work on other currency pairs and commodities etc. I am very much a beginner and this would be a good place to start for me so that I can learn the MQL5 language. This should function in MT5. The method I have in mind is as follows: Plot three exponential moving averages—a five-period EMA, a
I have 4 different indicators i need to make into an EA with ATR stop loss and risk reward as take profit. I would also like to add some extra simple optional indicators like Moving average and stoch rsi if possible. There should also be possible to choose time off the day for the bot to be active. The different indicators are a Fractal breakout indicator, TSV indicator, and RSI MA indicator (I have the source code
Developers I'm looking for a Scalper that will take small profits 5 to 10 pips, must be able to open hundreds of trades per day and work on all time frames. Able to trade Forex pairs as well as Indices. I am also open to any advice you may have.. Rules for Buy trade Robot open buy trade on close of bullish candle. Rules to exit Buy trade The close of the next bearish candle, exit or close the buy trade. Rules for
I need a very simple EA which: 1- Should work on Top Bottom (Resistance/ Support) and trend follow approach based on two Moving Averages i.e.; Large MA, Short MA . 2- If the price is above Large Moving average, it’s an uptrend and if it’s below Large MA, it’s a downtrend. All kinds of Moving average should be available (SMA, EMA, WMA etc.) in EA and the trader should be able to select the type of moving
Hope you're doing well out here. My request is a simple automation of a hedging strategy I discovered which works the same way as the surefire hedge strategy but the risk management is different. Unfortunatrly I was scammed last time hiring a programmer so you have to excuse my small budget. The strategy makes use if 2 lot sizes. We open an order at with \$1 lotsize and incase it's incorrect a lot size of \$1.5 is used

Project information

Budget
70 - 110 USD
VAT (19%): 13.3 - 20.9 USD
Total: 83.3 - 130.9 USD
For the developer
63 - 99 USD