For Each Closed Trade - Block Filters
-
Hi,
When using the block For Each Closed Trade, we should set a maximum number os trades so the EA does not loop through all trades in history.
If we set for example the last 100 hundred trades, does it mean it will look at the last 100 trades on this exact EA (using this EA's Magic Number) or it will look at the last 100 trades overall (any Magic Number)?
Does this apply to any filter? Using the same example above, if I ask the block to filter only "Buy" trades, will it look for the last "100 buy trades" or it will look for the last "100 trades" and maybe only 50 of those trades are buy - so It will loop through 50 buy trades?
Thanks!
-
@rafaelgrecco You can in effect limit the maximum number of closed trades to be looped here:

-
@l-andorrà thanks for replying.
I don't know if I made myself clear on my original post.
Imagine you are running the EA "X". You configure 10 on that field (just as you posted) to loop the last 10 trades.
Now imagine you also run EA "Y" on the same account. Let's suppose the last 9 closed trades were from the EA "Y", the 10th trade is from EA "X".
How will the block work on this scenario?
-
Will it just find a single trade to loop? Because of the last 10 trades, only one of them was from EA "X"
-
Will it look for the last 10 trades from EA "X" - this means it will keep looking through the trades history until it finds 10 closed trades from EA "X"
Thanks!
-
-
@rafaelgrecco No. If you are combining two EAs on the same chart, each one will look for 'its own' trades. Not those opened by the other one.
-
@l-andorrà Thanks for the info!
-
@rafaelgrecco You're welcome.