Indicators Used
Miscellaneous
0
Views
0
Downloads
0
Favorites
Alert_MA_v3
//+------------------------------------------------------------------+
//| 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);
}
//+------------------------------------------------------------------+ èÇ '5 3 b b 4 5 d 0 7 b 1 e 7 9 e 5 a 8 4 e 5 7 4 1 3 7 f f 6 e 4 6 [ 1 ] . j p g q| p Z 9 bieß È¶ß È¶ß ÈÔh9Y¡È Ð èÇ 5 3 B B 4 5 ~ 1 . J P G ] . j Ü x d 9 çæcÈ5õcÈ5õcÈ5õcÈ l 5 4 4 2 _ t h u m b [ 1 ] . j p g Ü p Z 9 çæcÈ5õcÈ5õcÈ5õcÈ l 5 4 4 2 _ T ~ 1 . J P G f d5 p \ 9 PÄöèÈPÄöèÈPÄöèÈPÄöèÈ ³ (
6 0 0 x 2 4 [ 1 ] . g i f d5 p Z 9 PÄöèÈPÄöèÈPÄöèÈPÄöèÈ ³ 6 0 0 X 2 4 ~ 1 . G I F | h T 9 ¼Ëgß È¼Ëgß È¼Ëgß È¼Ëgß È
6 5 [ 1 ] . j p g [ 1 | h X 9 ¼Ëgß È¼Ëgß È¼Ëgß È¼Ëgß È
6 5 _ 1 _ ~ 1 . J P G Þ "