Create Position Size for existing EA

MQL5 Esperti Integrazione

Lavoro terminato

Tempo di esecuzione 7 giorni
Feedback del cliente
Great coder. Very patient and awesome work. Will come back for future projects!
Feedback del dipendente
Thank you for the order.

Specifiche

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.  

Con risposta

1
Sviluppatore 1
Valutazioni
(101)
Progetti
123
31%
Arbitraggio
7
29% / 29%
In ritardo
5
4%
In elaborazione
2
Sviluppatore 2
Valutazioni
(443)
Progetti
570
37%
Arbitraggio
106
39% / 33%
In ritardo
17
3%
Gratuito
3
Sviluppatore 3
Valutazioni
(322)
Progetti
499
67%
Arbitraggio
5
40% / 0%
In ritardo
4
1%
Gratuito
Pubblicati: 8 codici
4
Sviluppatore 4
Valutazioni
(33)
Progetti
36
0%
Arbitraggio
2
50% / 0%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
6
Sviluppatore 6
Valutazioni
(19)
Progetti
27
26%
Arbitraggio
2
0% / 100%
In ritardo
2
7%
Gratuito
7
Sviluppatore 7
Valutazioni
(152)
Progetti
228
80%
Arbitraggio
22
27% / 50%
In ritardo
11
5%
Gratuito
Pubblicati: 24 articoli, 1882 codici
8
Sviluppatore 8
Valutazioni
(36)
Progetti
45
2%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
Gratuito

Informazioni sul progetto

Budget
30 - 40 USD
Scadenze
a 1 giorno(i)