Exit on close of the current candle

Hello,

Kindly help,

I am taking entry in current candle and want to exit exactly on close of that candle.

Kindly share condition to do exit on close of current candle