Create Position Size for existing EA

MQL5 Uzmanlar Entegrasyon

İş tamamlandı

Tamamlanma süresi: 7 gün
Müşteri tarafından geri bildirim
Great coder. Very patient and awesome work. Will come back for future projects!
Geliştirici tarafından geri bildirim
Thank you for the order.

Şartname

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.  

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(101)
Projeler
123
31%
Arabuluculuk
7
29% / 29%
Süresi dolmuş
5
4%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(443)
Projeler
570
37%
Arabuluculuk
106
39% / 33%
Süresi dolmuş
17
3%
Serbest
3
Geliştirici 3
Derecelendirme
(322)
Projeler
499
67%
Arabuluculuk
5
40% / 0%
Süresi dolmuş
4
1%
Serbest
Yayınlandı: 8 kod
4
Geliştirici 4
Derecelendirme
(33)
Projeler
36
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
6
Geliştirici 6
Derecelendirme
(19)
Projeler
27
26%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
7%
Serbest
7
Geliştirici 7
Derecelendirme
(152)
Projeler
228
80%
Arabuluculuk
22
27% / 50%
Süresi dolmuş
11
5%
Serbest
Yayınlandı: 24 makale, 1882 kod
8
Geliştirici 8
Derecelendirme
(36)
Projeler
45
2%
Arabuluculuk
6
33% / 17%
Süresi dolmuş
1
2%
Serbest

Proje bilgisi

Bütçe
30 - 40 USD
Son teslim tarihi
to 1 gün