Please, take a look at some examples here - https://fxdreema.com/examples/ This is more like tutorial, because those examples are some of the basics + explanation of what is going on.

Especially look at these - "Wrong: Closing rule" and "Custom loop: How it works (with "For each Trade")"

Lately I actually added a new option to make a block wait, for this you can look at the last example.