Problems with the "add volume" block
-
Hi, I believe there is a problem with batch augmentation.
I have put 120% lot volume increase on each previous trade and the increase is not happening, before it worked and stopped.
Am I doing something wrong or could it be a bug? -
@ontradingx Try this in a seperate tree:

-
@jstap It's really a bug, I've tested it this way and several other ways and the problem persists, but only for new and old EA's this isn't happening.
-
It's not a bug, it's a feature :))) Try it with 0.1 initial lots and it works.
The problem is that there is something called Lot Step. If the Lot Step is 0.01 (in most cases), you can open the following lots (assuming that the minimum lots are 0.01): 0.01, 0.02, 0.03 and so on. The difference between each possible value is the Lot Step. Above 0.1 lots the possible values are not 0.1, 0.11, 0.12, 0.13 and so on.
The block would open open 0.012 lots if it was possible, but it itsn't. Instead, it opens whatever is the nearest possible lot. Try to open 0.012 lots manually - doesn't work as well.
-
@fxdreema
It saddens me that you say it's not a bug.
I used this normally, so you mean I'm lying?
This "Add Volume" block worked correctly with initial volume of 0.01
I even have "Grid" resources with 120% and it works perfectly.
I considered it a bug because it was something that worked perfectly before, but stopped working without warning. -
-
Maybe it was another broker.
In MT4 when you click on New Order, you can see something like this:

In MT5 there is no select-menu, but you have these arrows to change the value in steps:

-
But the most accurate data you can get from the symbol infomation. See:

-
@fxdreema
I know Fxdreema doesn't round up.
But at some point he should open orders 0.02, 0.03 and this is not happening.
I put an example of what should happen and is not happening.
If there was a change from 120% to 155% it works perfectly.
I also tried to create a formula to multiply by 1.20 and it doesn't work.
Tested on FBS, ICMARKETS, FTMO, ACTIVE TRADES. -
It doesn't happen, because the volume comes from the trade itself. If it opened with 0.01 lots, this is the volume, not 0.012. You can play with some variables to store the values as you want them, but this will be hard if you want to have more than 1 trade at a time. I'm not sure if the Comment of the trade can be used to store such information... it is a string value and the broker could change it on SL or TP events.
-
Why does it work well with "grid"?
What is the difference in the calculation? -
By "gradation" I mean that the distance between each order is not the same, there is some gradation. If the first distance is X, the next one can be X2, then the next one can be X2*2 and so on. You control this with these settings. But better try them and you will see.
-
@fxdreema
Just to close this matter.
I managed to get around the problem by doing the following:- I created a variable that as soon as the first order is opened, it multiplies the first order opened by 1.20 and saves the value in this same variable.
Then I linked a "For each position" block to a formula block and I perform the calculation of the "variable" * 1.20 and save the result in the value in the same variable, this will create a correct sequence for calculating the batches by 1.20 which is just what I wanted.
@fxdreema, I'm sure this worked before, all this work I've done wouldn't be necessary but it's because something that worked before just stopped working.
- I created a variable that as soon as the first order is opened, it multiplies the first order opened by 1.20 and saves the value in this same variable.
-


