@l-andorrĂ I am sorry that I did not answer you earlier but I think I have found the logic in the For Each Object loop. You can nest multiple For Each Object loops into another and the loop is always empty and exited. It exits the loop via the yellow dot when the tasks for each object are done via the red dot. If there are no objects on the chart that meet the filters in the for each block, the loop will always exit via the yellow dot. This allows you to count the number of objects on the chart, check if, for example, a rectangle from another timeframe is inside a rectangle on another timeframe etc. I have added a screenshot of what I have now been able to produce using FXDreema: my version of SMC I have used for manual trading 
Best posts made by fxpim
-
RE: How to break or next an object loop?posted in Questions & Answers
-
RE: How to break or next an object loop?posted in Questions & Answers
@GeoFX I think I can explain by now. What you need to do is the following: take a For Each Object loop and store all of the variables you want to check against another object. For me, that would be the upper and lower price coordinates and the beginning of the rectangle. After storing these variables, connect another For Each Object loop to the block that stores the variables and take the condition blocks to check the object of the second loop against the variables you stored in the first loop. The picture shows the block's structure.
So basically: first object loop -> store object variables -> connect second loop -> use condition blocks to check the object properties against the variables you have just stored -> object action for the object of your second loop
