For the "consecutive closes" I will suggest the block named "Indicator moves within limits". One of the indicators will be where it is defined by default. The other one will be when you select "Dynamic value" for Upper or Lower mode.

Better test how this works with some "Draw Arrow" block, and then do something else.

There is a block named "Time filter". Also "Hours filter".

For input parameters look at "Constants (Inputs)"...

or look and test some projects from https://fxdreema.com/examples