@fuad-2 My project was an ideo of how to apply a counter to your project it doesn't necessarily is to be applied to your project as I suggested. So let's do it step by step. So I recommend:
Connect the 3 condition blocks one blow the other and remove that 'And' block. It is not necessary. Then connect the 'Once per bar' block on top of the block tree and 'sell now' at the bottom. Is that lonely unconnect block really necessary?