Open Trading Postion

MQL5 专家

指定

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.




 

反馈

1
开发者 1
等级
(1235)
项目
2820
80%
仲裁
156
22% / 43%
逾期
488
17%
空闲
2
开发者 2
等级
(82)
项目
150
29%
仲裁
9
44% / 11%
逾期
46
31%
空闲
3
开发者 3
等级
(62)
项目
140
46%
仲裁
19
42% / 16%
逾期
32
23%
空闲
4
开发者 4
等级
(490)
项目
1016
58%
仲裁
29
28% / 24%
逾期
132
13%
空闲
5
开发者 5
等级
(18)
项目
37
43%
仲裁
6
17% / 50%
逾期
17
46%
空闲
6
开发者 6
等级
(4)
项目
6
0%
仲裁
2
50% / 50%
逾期
0
空闲
7
开发者 7
等级
(63)
项目
80
28%
仲裁
17
12% / 76%
逾期
48
60%
空闲
8
开发者 8
等级
(466)
项目
697
56%
仲裁
43
30% / 33%
逾期
113
16%
工作中
9
开发者 9
等级
(9)
项目
18
22%
仲裁
3
67% / 33%
逾期
4
22%
空闲
10
开发者 10
等级
(71)
项目
254
53%
仲裁
16
50% / 38%
逾期
83
33%
空闲
11
开发者 11
等级
(111)
项目
327
55%
仲裁
17
12% / 47%
逾期
104
32%
空闲
12
开发者 12
等级
(215)
项目
302
79%
仲裁
4
25% / 0%
逾期
62
21%
空闲
13
开发者 13
等级
项目
2
50%
仲裁
0
逾期
0
空闲
相似订单
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

项目信息

预算
10 - 100 USD
开发人员
9 - 90 USD
截止日期
 1  14 天