I'm hoping someone can code this indicator for me! (For MT4). I have searched for a long time and can't find something that matches what I want. It is a two-bar pullback alert indicator. It needs to define two MAs (I use those for trend direction) and as in the two cases highlighted in the screenshot, when one bar closes with both high and low, respectively, closer to the MAs than the previous bar, then that's a two-bar pullback. If a third bar joins them we can ignore the first one and highlight the most recent two. I need a pop-up alert mainly, but to make it useful to others, the usual sound and email push can be added.
I would be very grateful for some help with this.
I would be very grateful for some help with this.
Attached Image