Create Position Size for existing EA

MQL5 Experten Integration

Auftrag beendet

Ausführungszeit 7 Tage
Bewertung des Kunden
Great coder. Very patient and awesome work. Will come back for future projects!
Bewertung des Entwicklers
Thank you for the order.

Spezifikation

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.  

Bewerbungen

1
Entwickler 1
Bewertung
(101)
Projekte
123
31%
Schlichtung
7
29% / 29%
Frist nicht eingehalten
5
4%
Arbeitet
2
Entwickler 2
Bewertung
(443)
Projekte
570
37%
Schlichtung
106
39% / 33%
Frist nicht eingehalten
17
3%
Frei
3
Entwickler 3
Bewertung
(322)
Projekte
499
67%
Schlichtung
5
40% / 0%
Frist nicht eingehalten
4
1%
Frei
Veröffentlicht: 8 Beispiele
4
Entwickler 4
Bewertung
(33)
Projekte
36
0%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 4 Beispiele
6
Entwickler 6
Bewertung
(19)
Projekte
27
26%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
2
7%
Frei
7
Entwickler 7
Bewertung
(152)
Projekte
228
80%
Schlichtung
22
27% / 50%
Frist nicht eingehalten
11
5%
Frei
Veröffentlicht: 24 Artikel, 1882 Beispiele
8
Entwickler 8
Bewertung
(36)
Projekte
45
2%
Schlichtung
6
33% / 17%
Frist nicht eingehalten
1
2%
Frei

Projektdetails

Budget
30 - 40 USD
Ausführungsfristen
bis 1 Tag(e)