#property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Silver #property indicator_width1 2 #property indicator_color2 Blue #property indicator_width2 2 #property indicator_color3 Red #property indicator_width3 2 double BufMACD_HISTOGRAM[]; double BufMACD_MAIN[]; double BufMACD_SIGNAL[]; // 初期化関数 int init() { SetIndexStyle(0,DRAW_HISTOGRAM); SetIndexBuffer(0,BufMACD_HISTOGRAM); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,BufMACD_MAIN); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,BufMACD_SIGNAL); return(0); } // 指標計算関数 int start() { int limit = Bars-IndicatorCounted(); for(int i=0; i