Close Trade at end of day script serves as an example how we can close trades at end of day. can be session controlled or the time controlled. the session should be adjusted to be earlier than the candle time. Pine Script™ strategyby daytraderph1111274