trendline alert

 

Please assist, I want to get a notification if the price touches the trendline


If anyone knows a script to help please assist


thank you

 

Get trend line value (for candle 0) by one of the  ObjectGet funcions  

By comparing it with Close[0] you will know it

 
T.man:

Please assist, I want to get a notification if the price touches the trendline


If anyone knows a script to help please assist


thank you

Code: Horizontal Line Levels

The EA is a utility. It draws to horizontal lines (OBJ_HLINE). It checks once every  Period minutes, whether the price has crossed one of the lines. If the price crosses the line, a sound alert will be given.

Horizontal Line Levels

Horizontal Line Levels
Horizontal Line Levels
  • www.mql5.com
HLCrossSigForDeMarker The HLCrossSigForDeMarker is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from...
Reason: