Create Position Size for existing EA

MQL5 EA 통합

작업 종료됨

실행 시간 7 일
고객의 피드백
Great coder. Very patient and awesome work. Will come back for future projects!
피고용인의 피드백
Thank you for the order.

명시

I have an existing EA that i use on different brokers with the following formular to calculate it's position size: 

double GetLot(double risk, int sl = 0)

  {

   double Free    = acc.Balance();

   double tick_value  = smb.TickValue();

   double tick_size  = smb.TickSize();

   if(sl <= 0 || tick_value <= 0)

      return(Free/1000*smb.LotsMin()*risk);


   double LotVal = tick_value *_Point /tick_size;

   double Step    = smb.LotsStep();

   double lot     = MathFloor((Free*risk/100)/(sl*LotVal)/Step)*Step;


   return(lot);

  }


but somehow on one broker the value of the lot sizes is way too small and i need a developer who can provide me with a script which works. Please find attached the specifications for 3 instruments i'm currently trading. On the brokers where the above formular works, the tick size and tick value is set to 0. The broker who provides tick size and tick value the formular:  = MathFloor((Free*risk/100)/(sl*LotVal)/Step)*Step; does not work. 

I'm looking for a lot size calculation script to implement into my EA.

Please let me know if you can provide such script for this specific broker.  

응답함

1
개발자 1
등급
(101)
프로젝트
123
31%
중재
7
29% / 29%
기한 초과
5
4%
작업중
2
개발자 2
등급
(443)
프로젝트
570
37%
중재
106
39% / 33%
기한 초과
17
3%
무료
3
개발자 3
등급
(322)
프로젝트
499
67%
중재
5
40% / 0%
기한 초과
4
1%
무료
게재됨: 8 코드
4
개발자 4
등급
(33)
프로젝트
36
0%
중재
2
50% / 0%
기한 초과
0
무료
5
개발자 5
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
게재됨: 4 코드
6
개발자 6
등급
(19)
프로젝트
27
26%
중재
2
0% / 100%
기한 초과
2
7%
무료
7
개발자 7
등급
(152)
프로젝트
228
80%
중재
22
27% / 50%
기한 초과
11
5%
무료
게재됨: 24 기고글, 1882 코드
8
개발자 8
등급
(36)
프로젝트
45
2%
중재
6
33% / 17%
기한 초과
1
2%
무료

프로젝트 정보

예산
30 - 40 USD
기한
 1 일