Forum

Help how to connect ea mql4 to mysql remote db

Hi Friends, I would add on my ea a code to read from a db on my hosting website. In details, i have a db mysql where i store in a table the id ( account Number ) and a Value 0 or 1. From ea on client side, It would be Amazing if It could call the remote db passing the query with account Number and

How to calculate the max lot size

Hi friends, a small issue that maybe is really simple but i don't find the correct loop to achieve it : I need the function to calculate from a pool of orders Buy with same MagicIndex the maximum Lot Size. Example : Trade 1 : 0.01 Trade 2 : 0.02 Trade 3 : 1.00 Run the function and the result is

Modify Take profit for all positions with a specific magic index

Hi All, i would need an help in the program i'm developing. I have an ea that open a position, buy, with a specified magic index (example id:111) After some pips if it is triggered the strategy, it opens a new position always buy and always id:111... and so on anytime the strategy is triggered