Auto Volume according to entry price and take profit price

MQL4 스크립트

작업 종료됨

실행 시간 2 시간
고객의 피드백
.
피고용인의 피드백
Clear requirements, fast response, was good working with you

명시

I need a script that can automatic calculate the volume needed for a trade to my desire take profit amount


Example:

I want to open pending order of buying EURUSD with the following prices. Take profit amount: $100.

To input:

Type of order to choose : (Buy Stop or Buy Limit or Sell Stop or Sell limit) - to choose from drop-down menu

Profit target: ($100) - to key in manually

Entry price: (1.10000) - to key in manually

Take profit: (1.10050) - to key in manually

Once key in the data, pending order will be open with volume calculated automatically. In this case it will be

" size: 2.0 / Entry Price: 1.10000 / Take profit: 1.10050 "


I am trading the following currency:

USD / JPY / CAD / NZD and others


Please take note that different currency have different price* (or size), the script must be able to calculate accordingly to my TAKE PROFIT AMT. if i want take profit $100, MEANS i want take profit $100. the size must be correct.



*example for a size 2.0, EURUSD is $20 per pip, but EURJPY will be around $17.73 per pip and EURCAD will be around  $16.06 per pip and EURNZD will be around $13.88 etc etc

Script must be able to auto calculate according to market price and NOT LIKE THE FOLLOWING:


Example (ERROR IN CALCULATION)

I want to open pending order of buying EURNZD with the following prices. Take profit amount: $100.

To input:

Type of order to choose : (Buy Stop or Buy Limit or Sell Stop or Sell limit) - to choose from drop-down menu

Profit target: ($100) - to key in manually

Entry price: (1.10000) - to key in manually

Take profit: (1.10050) - to key in manually

If the pending order is as below, IT WILL BE WRONG !!!!!!!!!!!!!!!

" size: 2.0 / Entry Price: 1.10000 / Take profit: 1.10050 "




응답함

1
개발자 1
등급
(34)
프로젝트
60
23%
중재
11
73% / 9%
기한 초과
3
5%
무료
2
개발자 2
등급
(69)
프로젝트
79
29%
중재
8
13% / 63%
기한 초과
4
5%
무료
3
개발자 3
등급
(176)
프로젝트
227
19%
중재
20
40% / 20%
기한 초과
0
작업중
4
개발자 4
등급
(67)
프로젝트
97
35%
중재
11
27% / 45%
기한 초과
14
14%
무료
5
개발자 5
등급
(305)
프로젝트
547
35%
중재
78
32% / 42%
기한 초과
197
36%
작업중
6
개발자 6
등급
(568)
프로젝트
641
41%
중재
25
48% / 36%
기한 초과
46
7%
작업중

프로젝트 정보

예산
30+ USD