indicator-Close the trade at a certain time

Hi, do you know an indicator that allows me to close all the trade at a certain time? For example, it has to close everything at 18:00 on 15/05/2017 ...
An indicator can not close trades, only EA or script.
Alain Verleyen:
An indicator can not close trades, only EA or script.


I'm trying to do the same thing in a EA: I need to check in cycles of 60 sec if the open trade has reached TP or SL.

Is there any function you can suggest I should check to figure out how to do so?


Thank you Alain

E.

ef91:


I'm trying to do the same thing in a EA: I need to check in cycles of 60 sec if the open trade has reached TP or SL.

Is there any function you can suggest I should check to figure out how to do so?


Thank you Alain

E.

MT4 or MT5 ?

Please show your attempt if you need coding help.