Please I need some help with a code

 

Somebody knows the code to close a order when the candle close. I mean I want to enter a position in a candle with some condition but close that position when close price of the same candle. Thank you so much.

 
I'll recommend learning how to code. Start with the Book.