Hi Oxa,
(now_time/mf_minute-INTEGER(now_time/mf_minute))*60 is a clock that gives you periods of 60 seconds. This way, as you are using the internal MFPro clock, you know that you are always closing the block at exact intervals, independently of the market that does it.
Let me try to explain the principle of the trigger, perhaps it's easier.
The main problem was that you would need to restart the counting and that would make the number go to zero. So, the solution i found was to establish 2 counting periods:
-One from 0-24 and 36 to 60 (36 to 24) zeroing between 25 and 35.
-the other one from 6 to 54 zeroing between (55 and 5).
So, when the Close block zeroes one, you will use the number of the other.