Check last position...
-
.
-
"For each Position" wih "Not more than N trades" set to 1 would load the last opened position. Even if "Not more than N trades" is not 1, because there can be only 1 position per symbol in MT5.
Then... why not using "pips away from open-price"? -
.
-
Here are some examples for the pink blocks: https://fxdreema.com/examples/#Loop-(For-each...)
These blocks are used to create a loop. This loop means loading few trades (positions in MT5) and doing actions over each one of them, one after another. For each..." loads them. If 10 trades are loaded, then the block will cause the next blocks to run 10 times, each time with different trade loaded. With the other pink blocks you can do some actions with these trades. Since in MT5 you have 1 position in the current symbol, "For each Position" would load only this position and then with the other pink blocks you can do something with it.But I'm not sure that we are talking for the same thing. In MT5 we can have 1 position per symbol, right? This was always true, but lately they decided to allow "hedging" in MT5. The problem is that at the moment fxDreema does not work well with this option.
-
.
-
Yes, this is how MT5 always worked - only 1 position per symbol. Only lately they added this new "hedge" option. I think that this option is still in testing and is only available when you create account in their "MetaQuotes Demo". But I also have problems with this option and I can't make things to work properly when a position is modified. The result is that the EA hangs, it stops working in the Tester.
-
when you trade only one pair with EA and you need test it with tester, I suggest you for now stay with MT4
MT5 in hedge can work but you need code a lot of things manually, after this you need broker which allow you trade in "hedge" mode, otherwise you need remake your EA into MT4 and again test it
-
.
-
.
-
.
-
In Example 2 those "Bucket of.." blocks are working pretty much like "Pass". What these blocks do is to take a look at the existing trades and prepare some array that can be used later. There is no visible result from them, but if you run them, they can pass. And this is what happens - they run on every tick and because trades exists, they pass. Why they run on every tick... because why not, these are the rules for blocks who are on top level
When they pass... you make even more trades 