By popular request, here's the EA I use to alert me to trendline or price proximity.
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). If the proximity to the line is within # pips, an alert is fired off.
The alert can be a standard popup with audio, an email or both depending on the EA params. Once the alert is fired for any specific line, the "Alert_#" is stripped from the description. This means an alert for any given line will occur only once unless you add the "Alert_#" back in to the description field.
http://img177.imageshack.us/img177/7...600x600bv9.jpg
Some things to watch out for:
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). If the proximity to the line is within # pips, an alert is fired off.
The alert can be a standard popup with audio, an email or both depending on the EA params. Once the alert is fired for any specific line, the "Alert_#" is stripped from the description. This means an alert for any given line will occur only once unless you add the "Alert_#" back in to the description field.
http://img177.imageshack.us/img177/7...600x600bv9.jpg
Some things to watch out for:
- The "Alert_#" pattern is case sensitive (Has to be capital 'A')
- "Alert_#" has to be at the end of the line description (or only thing in description) or wonkyness might occur.
- Negative numbers don't work, and I suggest minimum alert of 1.
EDIT: This EA has been modified to function as an indicator. The most recent version can be found in post #23.