Hi all
This is a bit rough & ready but I wanted to post it before the weekend in case anyone had the time to test it a bit and comment.
This indicator will generate an alert and send an email if required when a candlestick crosses a support/resistance line and closes there. If the candle crosses over and then returns no signal will be generated. It uses the close of the previous candle so even if the price gaps across the line it should still be picked up.
To use this indicator copy the attached file into your
\experts\indicators folder and then attach it to a chart in the normal way.
To get a signal when the price crosses
Above a resistance line you must name the line in the range ATL0 - ATL9
To get a signal when the price crosses
Below a support line you must name the line in the range BTL0 - BTL9
You can draw new lines or rename existing ones as you see fit.
Set the ShowAlerts and MailAlerts flags as required, remember you also need the mail parameters set up in Tools - Options - Email tab.
The indicator will draw a diamond above or below each crossing as appropriate but it only processes data as it comes in so don't expect to see historical alerts as the EMA_RSI indicator shows.
Currently this will respond to all correctly named lines, even if they are not visible in the timeframe you have selected. Once the chart has moved beyond the end of a line it is ignored.
The main purpose of this is not to highlight crosses on charts but to generate an alert to draw the crossing to my attention, eg when I am at work. I am happy to modify based on suggestions if I can. The wording of the alert emails is ripe for editing, it can contain as much info as required (Open, High, Low, Close....)
Please remember that it is 'work in progress' so verify anything it indicates
Anyway, here it is. All comments welcome.
Michael