When MT5(script) bar crosses Horizontal trendline->close position

 

Hi all

I'm looking for MT5 script or EA (possibly MT4)

I would like that when candle a bar crosses the horizontal trendline i.e. when the close price are on the opposite sides of the line then close position.
Does anyone know similar solutions?

Please share with me.

So far, just I found it. "alert EA" and "alert indicator".
Unfortunately, these cannot be closed

Thanks in advance

Files:
e.g..jpg  20 kb
 
MT5.Boy :

Hi all

I'm looking for MT5 script or EA (possibly MT4)

I would like that when candle a bar crosses the horizontal trendline i.e. when the close price are on the opposite sides of the line then close position.
Does anyone know similar solutions?

Please share with me.

So far, just I found it. "alert EA" and "alert indicator".
Unfortunately, these cannot be closed

Thanks in advance

I will think about the implementation of MQL5 code ( ).