#property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_style1 STYLE_SOLID #property indicator_width1 2 #property indicator_color2 Red #property indicator_style2 STYLE_SOLID #property indicator_width2 2 double BufSTC_MAIN[]; double BufSTC_SIGNAL[]; // 初期化関数 int init() { SetIndexBuffer(0, BufSTC_MAIN); SetIndexBuffer(1, BufSTC_SIGNAL); return(0); } // 指標計算関数 int start() { int limit = Bars-IndicatorCounted(); for(int i=0; i