Script for placing a pending order when reaching a pre-set price level for MT5

MQL5 스크립트

명시

I will first describe the process step by step:
We have a current price of the GBP / JPY pair, for example (Bid 156.97 / Ask 156.99). At this current price, I set a level 

through the settings of the script, when it is reached, a pending order is automatically placed at a set distance from this level. Maximum number of set levels - 6 levels 

regardless of above or below the current price. Validity of the set levels - unlimited term. The set level must be visible on the price chart, and it can be set and removed 

manually by the user (in case the current price has not reached it). When manually removing a set level, the associated pending order is also removed. Once the level is 

reached, a pending order such as Sell Stop, Sell Limit, Buy Stop or Buy Limit is automatically placed. The pending order is at a distance set by the script from the reached 

level and is defined simultaneously with the setting of the level (this is done through the settings of the script). Through the script it should be possible to set Take 

profit and Stop Loss of the pending order, and this should not be mandatory (entering 0 in the script settings does not set Take profit and Stop Loss). Validity of the 

pending order - unlimited term (or one month if it is impossible to set an unlimited term). IMPORTANT: When the current price reaches the price level set by the script, the 

pending order is placed at the distance set in the script, and the level automatically ceases to operate (deleted automatically). IMPORTANT: At a set level above the current 

price - the level is activated at Bid price. At a set level below the current price - the level is activated at Ask price.
For clarity, I am attaching a file.

파일:

JPG
CONDITION.JPG
151.2 Kb

응답함

1
개발자 1
등급
(378)
프로젝트
401
31%
중재
63
19% / 70%
기한 초과
51
13%
로드됨
2
개발자 2
등급
(13)
프로젝트
15
7%
중재
1
100% / 0%
기한 초과
0
무료
3
개발자 3
등급
(42)
프로젝트
52
50%
중재
6
83% / 0%
기한 초과
0
무료
4
개발자 4
등급
(34)
프로젝트
60
23%
중재
11
73% / 9%
기한 초과
3
5%
무료
5
개발자 5
등급
(16)
프로젝트
29
48%
중재
0
기한 초과
6
21%
무료
비슷한 주문
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

프로젝트 정보

예산
40+ USD
VAT (20%): 8 USD
총: 48 USD
개발자에게
36 USD
기한
 3 일