The only catch with that is, depending on the chart time frame, you may not execute enough....(or too much).
I have the code to compare the time and only execute at the beginning of the candle now....will send it to you along with my latest effort later today.