If you generate on selected time frame we have possibility to test on 1 min or tick resolution on MT4/MT5. But there is another solution that maybe preferable for other trading platforms. When a condition is full filled the trade will be opened "first" 1 min before close of next bar or 1 min before end of current bar depending on platform if it calculate on Open or Close. It should also be optional for MT4/MT5 of course.