Originally Posted by
;
By popular request, here's the EA I use to alert me to trendline or price closeness.
Very simply, whenever a tick comes in, it checks the Bid price against all horizontal lines and trendlines on the chart that have Alert_# in the description (where # is a number). In the event the proximity to the line is inside # pips, an alert is fired off.
The alert can be a standard popup with audio, an email or both based on the EA par. Once the alert is terminated for any particular point, the Alert_Number is stripped from the description. This means an alert to any specific line will happen only once unless you add the Alert_# back in to the description area.
http://img177.imageshack.us/img177/7...600x600bv9.jpg
Some things to watch out for:The Alert_Number pattern is case sensitive (Has to be capital'A') Alert_# must be in the end of the line description (or just thing in description) or wonkyness might happen. Negative numbers do not work, and I propose minimum awake of 1. I just cleaned the code up a bit and gave it a once over QA, should you discover anything odd in the behavior please allow me to know.