There can be a problem with that if bot prices are very close (a few pips away from each other) the broker can block the pending order because of its proximity to current spread. Are you planning that maybe?