Include a trade closing condition in an EA and indicator correction

Job ID: 31518186

Budget: $10 – $15 USD

1) 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 of EA correction

2) I have a ADX indicator and i need to make a correction on an indicator (only show the arrow if the signal is in the previous candle), if the signals are old, don't show the arrow

3) Another correction is that the EA should only open a trade if the next candle has a retracement (have the option of qty of points or retracement price)
Related categories: Metatrader MQL4