Something like this? http://fxdreema.com/shared/Uzvugs75d
When backtesting, white checksigns are the moments where it tries to close the trade, yellow x-signs are the moments where it says that no close will happen on the next check.
Those 3 blocks on the right are optional, they does not matter in the strategy and can be removed. Block "a" is connected between "5" and "10" because otherwise "10" changes the environment for "a".
Every "n" minutes - this is a block who can pass once at the last minute in the period. When started for the first time, it does not pass.