Indicators Used
Miscellaneous
0
Views
0
Downloads
0
Favorites
Begashole
//+------------------------------------------------------------------+
//| Begashole.mq4 |
//| Copyright(c) 2010 Masaru Sasaki |
//| youtarou.blogzine.jp |
//+------------------------------------------------------------------+
//
// uÆÓv
// *±ÌvOÉîÃs×Ìʶµ½áQA¹¸ÈÇÉ¢Ä
// ìÒÍêØÌÓCð¢Ü¹ñB
//
// uà¾v
// *xKXû®ÌxKXglð`[gãÉ\¦·é
// CWP[^[Å·B
//
// QlÐFFX^g[_[üå (PanRolling)
// FX^g[_[ÀHvO~O (PanRolling)
//
#property copyright "Copyright(c) 2010 Masaru Sasaki"
#property link "youtarou.blogzine.jp"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Cyan
#property indicator_color2 Cyan
#property indicator_width1 1
#property indicator_width2 1
// wWobt@
double BufBegasHole1[];
double BufBegasHole2[];
// xKXz[ÌÚ®½Ïl
extern int HOLE1_EMA_period = 144;
extern int HOLE2_EMA_period = 169;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
// wWobt@폀
SetIndexBuffer(0, BufBegasHole1);
SetIndexBuffer(1, BufBegasHole2);
// wWX^CÌÝè
SetIndexStyle(0, DRAW_HISTOGRAM,STYLE_DOT);
SetIndexStyle(1, DRAW_HISTOGRAM,STYLE_DOT);
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
int limit = Bars-counted_bars;
for(int i=limit-1; i>=0; i-- )
{
BufBegasHole1[i] = iMA(NULL, 0, HOLE1_EMA_period, 0, MODE_EMA, PRICE_CLOSE, i);
BufBegasHole2[i] = iMA(NULL, 0, HOLE2_EMA_period, 0, MODE_EMA, PRICE_CLOSE, i);
}
return(0);
}
//+------------------------------------------------------------------+
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---