Open Trading Postion

MQL5 Experts

Spécifications

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.




 

Répondu

1
Développeur 1
Évaluation
(1235)
Projets
2820
80%
Arbitrage
156
22% / 43%
En retard
488
17%
Gratuit
2
Développeur 2
Évaluation
(82)
Projets
150
29%
Arbitrage
9
44% / 11%
En retard
46
31%
Gratuit
3
Développeur 3
Évaluation
(62)
Projets
140
46%
Arbitrage
19
42% / 16%
En retard
32
23%
Gratuit
4
Développeur 4
Évaluation
(490)
Projets
1016
58%
Arbitrage
29
28% / 24%
En retard
132
13%
Gratuit
5
Développeur 5
Évaluation
(18)
Projets
37
43%
Arbitrage
6
17% / 50%
En retard
17
46%
Gratuit
6
Développeur 6
Évaluation
(4)
Projets
6
0%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
7
Développeur 7
Évaluation
(63)
Projets
80
28%
Arbitrage
17
12% / 76%
En retard
48
60%
Gratuit
8
Développeur 8
Évaluation
(466)
Projets
697
56%
Arbitrage
43
30% / 33%
En retard
113
16%
Travail
9
Développeur 9
Évaluation
(9)
Projets
18
22%
Arbitrage
3
67% / 33%
En retard
4
22%
Gratuit
10
Développeur 10
Évaluation
(71)
Projets
254
53%
Arbitrage
16
50% / 38%
En retard
83
33%
Gratuit
11
Développeur 11
Évaluation
(111)
Projets
327
55%
Arbitrage
17
12% / 47%
En retard
104
32%
Gratuit
12
Développeur 12
Évaluation
(215)
Projets
302
79%
Arbitrage
4
25% / 0%
En retard
62
21%
Gratuit
13
Développeur 13
Évaluation
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
10 - 100 USD
Pour le développeur
9 - 90 USD
Délais
de 1 à 14 jour(s)