Create Position Size for existing EA

MQL5 Experts Integration

Job finished

Execution time 7 days
Feedback from customer
Great coder. Very patient and awesome work. Will come back for future projects!
Feedback from employee
Thank you for the order.

Specification

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.  

Responded

1
Developer 1
Rating
(88)
Projects
104
35%
Arbitration
5
40% / 20%
Overdue
5
5%
Loaded
2
Developer 2
Rating
(374)
Projects
472
40%
Arbitration
82
37% / 33%
Overdue
13
3%
Loaded
3
Developer 3
Rating
(282)
Projects
422
63%
Arbitration
5
40% / 0%
Overdue
4
1%
Loaded
4
Developer 4
Rating
(29)
Projects
33
0%
Arbitration
1
100% / 0%
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(18)
Projects
25
28%
Arbitration
0
Overdue
2
8%
Free
7
Developer 7
Rating
(139)
Projects
200
80%
Arbitration
17
29% / 47%
Overdue
10
5%
Working
8
Developer 8
Rating
(36)
Projects
45
2%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
Similar orders
Hi there ,I am seeking for some who can I integrate MT4+MT5 into Matlab!We need our indicator window of MT4+MT5 viewable in Matlab so we can execute more research on Matlab Best regards Richie
I wan to oder a product for copytrade online like that : - master on mt4 - slaver (copier) by python that mean MT4 open an oder, python will open the same on client account => python will click the mouse then results will show manual (not expert) value : autolot (ratio with receiver balance) - fixed lot - Smart ratio (ratio with master account) trade on many pairs get source for manage license hide everything that
We trading using C# application running via API https://www.mtsocketapi.com to send orders and some other commands to MT5. We have to read UT bot alert indicator in our C# application
I NEED TO HAVE MY INDICATOR CONVERTED TO PINESCRIPT. IF YOU CHARGE PER LINES PLEASE ADVISE ALSO I NEED THIS DONE QUICKLY. IF YOU ARE ABLE FINISH WITHIN A DAY OR 2 PLEASE APPLY. THE INDICATOR IS BASED OFF ZIG ZAG AND RSI

Project information

Budget
30 - 40 USD
VAT (19%): 5.7 - 7.6 USD
Total: 35.7 - 47.6 USD
For the developer
27 - 36 USD
Deadline
to 1 day(s)