#property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Red #property indicator_style1 STYLE_SOLID #property indicator_width1 3 double Buf[]; // 初期化関数 int init() { SetIndexBuffer(0, Buf); return(0); } // 指標計算関数 int start() { int limit = Bars-IndicatorCounted(); for(int i=0; i