How to modify automatically Stop Loss before and after the market closing

 

Hi everybody,


Let me explain the situation: between 11 p.m. and 12 a.m.(french hours), the spreads can hit the sl of my positions when the forex market is closed. So, each time, I remove my sl before 11pm and put them back after midnight. Problem, I don't want to set an alarm clock at 00:00 all the time to reset the SL, is there a way to program them automatically ?


Thanks you all,


 
Just modify the stop-profit and stop-loss at the specified time, which is easy to implement in programming
 

Hi Tiecheng Fu,


Thanks for your answer, I'm starting to learn mql5 language so I don't know how to do that for now. It is possbile that you give me an idea of a script ?


Friendly,

Reason: