Include a trade closing condition in an EA

Job ID: 31511789

Budget: $10 – $30 USD

I have an EA ready but I need to include a function to close the trade based on the close of the next candlestick. It's something simple for those who are knowledgeable.

See my image