//+------------------------------------------------------------------+ //| Alert_MA.mq4 | //| Kalenzo | //| bartlomiej.gorski@gmail.com | //+------------------------------------------------------------------+ #property copyright "Kalenzo" #property link "bartlomiej.gorski@gmail.com" extern int range = 1; extern int ma_period = 55; extern int ma_shift = 0; extern int ma_method = MODE_EMA; extern int applied_price = PRICE_CLOSE; #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //----bb double ma = iMA(Symbol(),0,ma_period,ma_shift,ma_method,applied_price,0); if( (Bid <= ma+(range*Point)) && (Bid >= ma-(range*Point))) Alert(Symbol()+" "+ma_period+" Moving Average range reached at ",Bid); //---- return(0); } //+------------------------------------------------------------------+ '53bb45d07b1e79e5a84e574137ff6e46[1].jpgq|pZ9bieߠߠߠԈh9Y 53BB45~1.JPG].jxd9c 5c 5c 5c  l 5442_thumb[1].jpgpZ9c 5c 5c 5c  l 5442_T~1.JPGfd5p\9PPPP( 600x24[1].gifd5pZ9PPPP 600X24~1.GIF|hT9gߠgߠgߠgߠ 65[1].jpg[1|hX9gߠgߠgߠgߠ 65_1_~1.JPG"xb9cccc 673310SPK[1].jpgpgxf9(8fЎ$$fЎ$$fЎ$$fЎ  75354461_47[2].jpg8fЎ$$fЎ$$fЎ$$fЎ  75354461_47[2].jpg$$fЎ$$fЎ$$fЎ  75354461_47[2].jpg$$fЎ$$fЎ$$fЎ  75354461_47[2].jpg8fЎ$$fЎ$$fЎ$$fЎ  75354461_4([2].jpg8fЎ$$fЎ$$fЎ$$fЎ  75354461_47[2].jpg98fЎ$$fЎ$$fЎ$$fЎ  753544~2.JPG8fЎ$$fЎ$$fЎ$$fЎ  753544~2.JPG8fЎ$$fЎ$$fЎ$$fЎ  753544~2.JPG(