GiantBarV01

GiantBarV01
Price Data Components
Series array that contains open prices of each barSeries array that contains close prices for each bar
Miscellaneous
It issuies visual alerts to the screen
2 Views
0 Downloads
0 Favorites
GiantBarV01
//+------------------------------------------------------------------+
//|                                                    Giant Bar.mq4 |
//|                                                           Novice |
//|                                                          ver. 01 |
//+------------------------------------------------------------------+
#property  indicator_chart_window
extern int barsolidheight=30;
extern int alertinterval=5;
string barbody="";
int NextMinute=0;
int NextHour=0;
int start()
  {
   if((MathAbs(iClose(0,0,0)-iOpen(0,0,0))>barsolidheight*Point) && Minute()>=NextMinute && Hour()>=NextHour )
       {if(iClose(0,0,0)>iOpen(0,0,0)) barbody=" min. - BULL candle moved "; else if(iClose(0,0,0)<iOpen(0,0,0)) barbody=" min. - BEAR candle moved ";
       Alert(Symbol()," ",Period(),barbody,MathAbs(iClose(0,0,0)-iOpen(0,0,0))/Point," pip(s)");
       NextMinute=Minute()+alertinterval; if(NextMinute>=60) {NextMinute-=60;NextHour=Hour()+1;}
       }
   return(0);
  }

Comments