Open Trading Postion

MQL5 Asesores Expertos

Tarea técnica

This is a really simple job. The first part I can do myself, but I am not having much fun with the second part. I want a function written that performs the following actions: 

Opens a trade of TRADE_ACTION_DEAL type;
Magic = EA_Magic;
Symbol= Symbol();
Volume = 0.1 (I will read from variable at some point);
Request Type = ORDER_TYPE_BUY (I will write a condition IF statement another time);
Request Stop Loss = -100 points from current tick (I'll change this to a variable at a later date);
Request Take Profit = +100 points from current tick (I'll change this to a variable at a later date);
Send Order.

Now the bit I am struggling with.

Open the order and modify the stop loss and take profit to a tighter value.

Modify Stop Loss = Order Opening Price - 20 points (I'll change this to a variable at a later date);
Modify Take Profit = Order Opening Price + 20 points (I'll change this to a variable at a later date);

And to trade on the side of caution:

If the above stop loss or take profit has already been reached, close out the order. 

I can write a full specification if required. The important part is the two later parts, which must work flawlessly.

Only stipulation is that code is heavily commented in English.




 

Han respondido

1
Desarrollador 1
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
488
17%
Libre
2
Desarrollador 2
Evaluación
(82)
Proyectos
150
29%
Arbitraje
9
44% / 11%
Caducado
46
31%
Libre
3
Desarrollador 3
Evaluación
(62)
Proyectos
140
46%
Arbitraje
19
42% / 16%
Caducado
32
23%
Libre
4
Desarrollador 4
Evaluación
(490)
Proyectos
1016
58%
Arbitraje
29
28% / 24%
Caducado
132
13%
Libre
5
Desarrollador 5
Evaluación
(18)
Proyectos
37
43%
Arbitraje
6
17% / 50%
Caducado
17
46%
Libre
6
Desarrollador 6
Evaluación
(4)
Proyectos
6
0%
Arbitraje
2
50% / 50%
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(63)
Proyectos
80
28%
Arbitraje
17
12% / 76%
Caducado
48
60%
Libre
8
Desarrollador 8
Evaluación
(466)
Proyectos
697
56%
Arbitraje
43
30% / 33%
Caducado
113
16%
Trabaja
9
Desarrollador 9
Evaluación
(9)
Proyectos
18
22%
Arbitraje
3
67% / 33%
Caducado
4
22%
Libre
10
Desarrollador 10
Evaluación
(71)
Proyectos
254
53%
Arbitraje
16
50% / 38%
Caducado
83
33%
Libre
11
Desarrollador 11
Evaluación
(111)
Proyectos
327
55%
Arbitraje
17
12% / 47%
Caducado
104
32%
Libre
12
Desarrollador 12
Evaluación
(215)
Proyectos
302
79%
Arbitraje
4
25% / 0%
Caducado
62
21%
Libre
13
Desarrollador 13
Evaluación
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I want to convert a small script from mql5 to pinescript of tradingview. The final script must work fine in tradingview, i will test it first if its ok i pay the developper. Script wil be send to developper in private because i cant post it here. If you have question you can ask me. Tnaks
MT4 EA Trade one zigzags 100 - 150 USD
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing
I need A Ea For Parabolic SAR With Default Settings And That Ea Including Take Profit And Stoploss Levels. Take profit : 50 points Stop loss : 50 points I have been seen that ea in Mql5 Market I tested it but that ea stop loss and take profits not activated that's why I came here I need a demo for testing process if you gave demo 1st and I will set you as a person to create a ea
Modifying an expert advisor written in mql5 and adding new indicators to it. The result must work both on strategy testing and on live, with no compilation errors and no warnings
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
I'm seeking assistance in developing a sophisticated trading robot with the following features: Core strategy: Harmonic pattern recognition Supply and demand analysis Fibonacci zigzag for trade optimization Additional components: News filter Dashboard for easy monitoring Customizable settings: Lot size Trailing stop Trading session parameters Maximum number of orders Option to use market or limit orders Resources
1. Add Feature For (SPREAD) Normal trading Hours Spread or User set trading Hours Spread True or false Set to true or False When set to true EA will only create or develop a trade if spread is in this window allowing it to and EA will follow a window in which it can trade based on spread so if spread is to high and outside of this window it will not create a trade It
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
Hi, I have a working MQ4 EA (With a few warnings but works fine), I need the warnings cleared and converted to MQ5. But I would also like a few improvements first. Firstly: Fix warnings in MT4 code (return value of 'OrderSelect'/'OrderModify' should be checked). Add following features: Magic number modifiable variable (It's currently hard coded) Is it possible to have a stop loss dollar amount instead of lots if

Información sobre el proyecto

Presupuesto
10 - 100 USD
Para el ejecutor
9 - 90 USD
Plazo límite de ejecución
de 1 a 14 día(s)