um.. Ok
I needed a minute so I whipped this up.... Its not exactly what are looking for, but possibly close (?) Anyways its the best I could do with time and info available. . Maybe u can modify it into more precisly match ur needs
mt4 includes just 5 and 15 min charts (I think there is no 10min). . So I doubled ur 30 sma to use on 5 minutes chart (60sma). . I set alert to ding when price crosses sma. . Next I create it dings again (different sound) as soon as the price travels about 5-7 pips away in the sma. . Either could be turned on/off in the parameters box which opens when indior is loaded
I thouht this would at least alert u when conditions are very similar to what you discribed, (as a cross should happen before the sma worth will change by 5 pip) like an ancient warning. . Anyways maybe un or someone with more time can make it into fit ur needs. .
rgds...
oh ya. . Ps didnt test it... but I think it functions