Momentum burst sound signal

 

I want to have a sound signal when the last closed bar exceeds the average of the last x bars with y percent.

With  'bar' I mean the absolute value of close - open (the body of a japanese candlestick

Can someone make this to  work with the 2 variables x and y in MT4? 

 
Reason: