[MT4指标]Begashole指标
Begashole主图指标
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
//+------------------------------------------------------------------+
//| Begashole.mq4 |
//| Copyright(c) 2010 Masaru Sasaki |
//| youtarou.blogzine.jp |
//+------------------------------------------------------------------+
//
// 乽柶愑帠崁乿
// *偙偺僾儘僌儔儉偵婎偯偔峴堊偺寢壥敪惗偟偨忈奞丄懝幐側偳偵偮偄偰
// 挊嶌幰偼堦愗偺愑擟傪晧偄傑偣傫丅
//
// 乽愢柧乿
// *儀僈僗曽幃偺儀僈僗僩儞僱儖傪僠儍乕僩忋偵昞帵偡傞
// 僀儞僕働乕僞乕偱偡丅
//
// 嶲峫彂愋丗FX儊僞僩儗乕僟乕擖栧 (PanRolling)
// FX儊僞僩儗乕僟乕幚慔僾儘僌儔儈儞僌 (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
// 巜昗僶僢僼傽
double BufBegasHole1;
double BufBegasHole2;
// 儀僈僗儂乕儖偺堏摦暯嬒抣
extern int HOLE1_EMA_period = 144;
extern int HOLE2_EMA_period = 169;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
// 巜昗僶僢僼傽偺妱傝摉偰
SetIndexBuffer(0, BufBegasHole1);
SetIndexBuffer(1, BufBegasHole2);
// 巜昗僗僞僀儖偺愝掕
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 = iMA(NULL, 0, HOLE1_EMA_period, 0, MODE_EMA, PRICE_CLOSE, i);
BufBegasHole2 = iMA(NULL, 0, HOLE2_EMA_period, 0, MODE_EMA, PRICE_CLOSE, i);
}
return(0);
}
//+------------------------------------------------------------------+
Begashole.jpg
