@laudable222 the logic seems right. but i guess it comes down to personal preference as there are many ways to achieve the same goal. If i were you id use the below mentioned way. The order expires after 4 hours. If you want the order to be deleted after the bar ends and dont know which tf to use. You can use once "ever n bars", set it 1 and than delete all pending order block.





️