Current Lot size
-
Hello Everybody,
I am using MT5 netting mode and have a problem to get the current lot size.
https://fxdreema.com/shared/3dMHcN3H
If there is a open position it shows 0.0 but if there is a pending ordert it shows this value.
Has someone an idea how to get the current lot size?
Best regards,
Martin -
You need to an block called 'For each position' on top of block 203. Single blocks never work on fxDreema. You need at least two of them united minimum.
-
In your example I see you are doing something with the objects that are created by the EA, but I don't really recommend to use the data from them.
And yes, try "For each position". In case you don't know, in netting mode you can have 1 position per symbol. This block would load only that position if it exists. In its filters by default the current symbol is used (the value is empty, which means the current symbol). It's also possible that you can even omit this block and still be able to load the position in 203, but I recommend using "For each trade", so it can be clear what is going on. And yes, as it was said, block 203 doesn't work now in this example only because it is not connected to another block.