Input parameter value is set to 0.01 and the same I am using when trading.
Strangely, some trades get executed for 0.01 volume also, while most of them are of 0.1
In my previous robo for same symbol, I had been getting trades of 0.01 only. Also for this robo, in tester, it was taking trades for 0.01 only, but in live demo, I am getting trades most trades of 0.1 and few of 0.01.
The behavior is strange and I have checked the code several times for the possible reason, but unable to understand.
In this case, it seems clear that the issue lies within the code itself, most likely due to improper normalization of lot sizes or other critical calculations.
I recommend reviewing the code thoroughly and adding Print() statements at each key step to ensure the EA is processing everything as expected.
The fact that the error occurs randomly is often a strong indication of a logical flaw in the implementation.
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.
Addon:
The common 4/5 digit modification will also fail.
A possible modification would be:
This code will fail at Gold and Silver. Still no bulletproof solutions for pip/subpip modifications :(
Hi,
I have created a robo where I am using the lot size of 0.01 as fixed. But despite of that, it is taking trades with 0.1 lot.
Please suggest, what could be the reason.
Thanks
Vinayak
If your EA is set to use 0.01 lots but it's opening trades with 0.1, a few things could be happening:
Hi Miguel,
I checked the code and input parameters.
Input parameter value is set to 0.01 and the same I am using when trading.
Strangely, some trades get executed for 0.01 volume also, while most of them are of 0.1
In my previous robo for same symbol, I had been getting trades of 0.01 only. Also for this robo, in tester, it was taking trades for 0.01 only, but in live demo, I am getting trades most trades of 0.1 and few of 0.01.
The behavior is strange and I have checked the code several times for the possible reason, but unable to understand.
Regards
Vinayak
In this case, it seems clear that the issue lies within the code itself, most likely due to improper normalization of lot sizes or other critical calculations.
I recommend reviewing the code thoroughly and adding Print() statements at each key step to ensure the EA is processing everything as expected.
The fact that the error occurs randomly is often a strong indication of a logical flaw in the implementation.