@trader-philipps I did it, thank you so much for your help 🙂 I placed the once per bar block under the condition block before the buy block.