@saeed-2 Your current setting will effectively close any open trade at the exact moment this crossing happens. However, I cannot see if there is any 'once per bar' block on top of that closing tree block. Dependeing if it is or not, the close will happen at the exact moment the crossing happens or at the opening of the next candle.