EA opening opposite pending orders

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 27 minutos

Tarea técnica

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)

Han respondido

1
Desarrollador 1
Evaluación
(12)
Proyectos
16
44%
Arbitraje
1
100% / 0%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(68)
Proyectos
81
11%
Arbitraje
12
67% / 25%
Caducado
5
6%
Libre
3
Desarrollador 3
Evaluación
(201)
Proyectos
326
17%
Arbitraje
23
35% / 30%
Caducado
17
5%
Ocupado
4
Desarrollador 4
Evaluación
(29)
Proyectos
35
14%
Arbitraje
5
40% / 60%
Caducado
5
14%
Libre
5
Desarrollador 5
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(74)
Proyectos
121
43%
Arbitraje
12
33% / 50%
Caducado
17
14%
Libre
7
Desarrollador 7
Evaluación
(36)
Proyectos
44
32%
Arbitraje
6
17% / 33%
Caducado
8
18%
Trabaja
8
Desarrollador 8
Evaluación
(47)
Proyectos
78
50%
Arbitraje
1
0% / 0%
Caducado
1
1%
Trabaja
9
Desarrollador 9
Evaluación
(10)
Proyectos
15
27%
Arbitraje
3
67% / 33%
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(440)
Proyectos
546
25%
Arbitraje
21
38% / 38%
Caducado
83
15%
Trabaja
11
Desarrollador 11
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(300)
Proyectos
446
65%
Arbitraje
5
40% / 0%
Caducado
4
1%
Libre
13
Desarrollador 13
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
14
Desarrollador 14
Evaluación
(551)
Proyectos
1334
59%
Arbitraje
28
82% / 0%
Caducado
10
1%
Libre
15
Desarrollador 15
Evaluación
(480)
Proyectos
509
53%
Arbitraje
10
60% / 20%
Caducado
3
1%
Libre
16
Desarrollador 16
Evaluación
(11)
Proyectos
16
6%
Arbitraje
3
33% / 67%
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(383)
Proyectos
485
39%
Arbitraje
83
37% / 33%
Caducado
13
3%
Ocupado
18
Desarrollador 18
Evaluación
Proyectos
0
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
19
Desarrollador 19
Evaluación
(71)
Proyectos
80
10%
Arbitraje
36
8% / 53%
Caducado
6
8%
Trabaja
20
Desarrollador 20
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
21
Desarrollador 21
Evaluación
(563)
Proyectos
932
47%
Arbitraje
302
59% / 25%
Caducado
124
13%
Ocupado
22
Desarrollador 22
Evaluación
(2435)
Proyectos
3067
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Trabaja
23
Desarrollador 23
Evaluación
(345)
Proyectos
365
70%
Arbitraje
4
100% / 0%
Caducado
0
Trabaja
Solicitudes similares
Location: Remote Employment Type:[Full-time/Part-time] About Us At Riskeys, we are transforming the trading experience with our state-of-the-art Smart Trading Keypad for MetaTrader 4/5. Our mission is to empower traders with innovative risk management tools, providing them with the speed, precision, and efficiency they need to succeed in today’s fast-paced financial markets. As we continue to push the boundaries of
Hi there new to this but need some assistance. I need someone to code a very simple indicator/EA (I don't know which one is going to be) with these specifications 1) I need the indicator to create a buffer line between the high and low of the printed candle, the high and low is based on the highest point or lowest point the candle has gone, not the close but the actual wick per say. 2) once the candle is created the
Good programme Skill needed, ability to built high frequency trading (hft) expert advisor that works on MT4 and MT5 no Grid, no Matin. just Short term trade that last 1sec - 5mins for profit take, that can be used to trade on demo and live accounts RAW ECN icmarket, Blackbullmarket, Fusion market, FPMarkets and 8cap. The EA has to be highly profitable, giving daily profit. If a test version is available, please send
Hi Looking for an existing bot to create a Expert Advisor, that can pass prop firm Challenges (1 or 2 phases), like FTMO, MFF, TFF etc. Preferably EA trading GOLD With license key NO martingale strategy Need to have nice entries and exits. NO big lots and low risk. Need complied with this restrictions: -Profit 10% -Max Drawdown (DD) 10% -Max Daily Loss 4% -All trades with SL -NO trades during and after high impact
Bottrading 30 USD
// Khai báo các tham số đầu vào input int rsiPeriod = 14; // Chu kỳ RSI đầu vào mua gấp đôiLevel = 30,0; // Ngưỡng quá bán RSI để mua đầu vào bán gấp đôiLevel = 70,0; // Ngưỡng quá mua RSI để bán đầu vào int movingAveragePeriod = 50; // Chu kỳ trung bình để theo dõi tài khoản đầu vào rủi ro képPerTrade = 1,0; // Tỷ lệ sai sót của mỗi lệnh (% tài khoản) input int keyLevelPeriod = 100; // Chu kỳ tìm kiếm key level đầu
- Automation of layering entry criteria with a mix of initial market orders and subsequent limit orders. Automation of stop loss applied to all these order's with SL moving to above entry when criteria has been met. Automation of TPs - This is a drag and drop ea to the chart when I manually see price action appear. I am not looking for the EA to spot price action
Hello, I post daily analyses on my WordPress site, and I am looking for a developer capable of creating a bot that automatically retrieves trading information (buy/sell, entry, take profit, stop loss) from my analyses and replicates them on MT5 automatically. The goal is to develop a solution that is as simple as possible. This bot will also need to include a few additional features, such as money management, among
Input will be Buy Levels and Sell Level. Qty-> Addition | Multiply Buffer -> in Points with Level Taret -> in points/Lot Price close above Level1 then Buy Price close below Level2 then Sell Will close the position if in Positive, otherwise will not close the position and Open the opposite Position with added Quantity of the last open position. if Price thouches the Buffer Level, the opposite position will be created
**Project Title: Forex Layering Tool Expert Advisor (EA)** **Project Overview:** I am seeking an Expert Advisor (EA) that will simplify the process of entering multiple trade layers based on specified price ranges. **Key Features:** **Layering Capability:** - The EA will support the opening of 5 to 50 layers of a defined price entry range - Each layer will have a fixed lot size that can be defined by the user
very simple rule buy rate 2 sl 1 if market reach 3 sl 2 market reach 4 sl 3 sl hit reverse trade open too with same 1:1 trail sl system if sl hit reverse trade open with same sl trail function 1 input open trade with buy or sell option 2 sl in pip .............xyz 3 lot size ............. xyz 4 distance from sl when sl trail one step [main point] Iam buying in rate of 2 my sl is 1 market reach 3 my sl is 2 market

Información sobre el proyecto

Presupuesto
70 - 110 USD
IVA (19%): 13.3 - 20.9 USD
Total: 83.3 - 130.9 USD
Para el ejecutor
63 - 99 USD
Plazo límite de ejecución
a 14 día(s)