X_1:=(HIGH+LOW+CLOSE)/3;
X_2:=(X_1-MA(X_1,25))/(0.015*AVEDEV(X_1,25));
X_3:=X_2<=LLV(X_2,120);
X_4:=CROSS(X_2,(-100));
波段起涨:(X_4 AND EXIST(X_3,5) AND EXIST(X_2<(-180),3))*100,COLORRED,LINETHICK2;
DRAWTEXT(X_4 AND EXIST(X_3,5) AND EXIST(X_2<(-180),3),96,'波段起涨'),COLORYELLOW;
投股票 网 ww w.tou18.cn
[源码翻译]通达信软件动态翻译的结果
X_1赋值:(最高价+最低价+收盘价)/3
X_2赋值:(X_1-X_1的25日简单移动平均)/(0.015*X_1的25日平均绝对偏差)
X_3赋值:X_2<=120日内X_2的最低值
X_4赋值:X_2上穿(-100)
输出波段起涨:(X_4 AND 最近5日存在X_3 AND 最近3日存在X_2<(-180))*100,画红色,线宽为2