I have made your code as a double function which returns lotsize but the problem is that it is not giving correct lotsize for "usdjpy" in tester but showing correct lotsize if i loaded ea on chart(it's working on real time but not on tester).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please take a look at
https://www.mql5.com/en/forum/11943/page2#comment_2759458
Free public domain working library for any financial instrument, any leverage, any account type etc.
try this
Hi Alain,
I have made your code as a double function which returns lotsize but the problem is that it is not giving correct lotsize for "usdjpy" in tester but showing correct lotsize if i loaded ea on chart(it's working on real time but not on tester).
Need help to fix it.(mt5)