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
0 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

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---