M1:3; MA2=DEVSQ(CLOSE,M1)/M1; //方差 MA3:=POW(MA2,0.5); //标准差 //UPPER1: CLOSE+2*MA3,colorred;//2倍标准差的止盈点 LOWER1: CLOSE-1.5*MA3,colorgreen;//2倍标准差的止损点 //UPPER2: CLOSE+1*MA3,coloryellow; //LOWER2: CLOSE-1*MA3,colorblue;
看股 吧公式 www.kangub a.com