Yes it will but only for trades that are on 1 chart if you want to use all trades from multible charts you have to use:
If buy and sell trades
Condition profit > your value of money
Close buy and sell trades
send here please example with lower amount of blocks where it is not working (which shows your issue) because when is here a lot of blocks, I have not enough time to study all where can be problem 😄