how to create a rectangle alert indicator?

 

Hi All

I would like to create (or find if there is one already existed) such indicator.

On the chart, I would manually draw some rectangles to represent the zone of the price i am interested, when price comes into this zone, it then sends me an alert.

I am not too sure whether it is possible on MT4, my idea is

1. Use Objectget to search all rectangles on the charts

2. identify the bottom and top of these rectangles, hence the price zone (don't know to do this one)

3. Use logic if (Ask < top) and (Ask > Bottom) alert("Price is in the zone")

Many thanks

 
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.