EA drawing horizonzal line enter trade when bar closes

 

Hello,

I'm looking for an EA where I can draw a horizontal line and e. g. a sell trade, entering it when bar closes below or on that line.

I've found some EA's but they don't care where the bar closes.

Hopefully someone can help me here.

 
Pierce:
Hello,

I'm looking for an EA where I can draw a horizontal line and e. g. a sell trade, entering it when bar closes below or on that line.

I've found some EA's but they don't care where the bar closes.

Hopefully someone can help me here.

Hello Pierce,

Have you checked this thread https://www.mql5.com/en/forum/176975

 

No, I haven't.

Thank you - I'll try this one.

 

This EA dosn't work like I want it.

The Trendline EA V 37 does fits more, but one important feature is missing.

I need a feature to open only a trade when the price is not more than a certain pip count away from the horizontal line.

Cause I'll always use the setting to trade only after the bar has closed. If the bar than jumps ten pips or so the trade is worthless to me.

Maybe someone can help.

Files:
 
Pierce:
This EA dosn't work like I want it.

The Trendline EA V 37 does fits more, but one important feature is missing.

I need a feature to open only a trade when the price is not more than a certain pip count away from the horizontal line.

Cause I'll always use the setting to trade only after the bar has closed. If the bar than jumps ten pips or so the trade is worthless to me.

Maybe someone can help.

Pierce

ex4 can not be changed. Do you have the source code?

 

Yes I have the source code.

Here you go.trendline_ea_v37.mq4

Files: