VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR2:=2*ABS(VAR1);
VAR5:=(HIGH+LOW+CLOSE)/3;
VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));
VAR7:=(VAR5-MA(VAR5,89))/(0.015*AVEDEV(VAR5,89));
VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);
VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8);
核能:=IF(VAR1<0,VAR2,0);
预警:=IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 AND VAR6<=-150,-15,VAR9))+60;
VAR2B:=核能>38 AND 预警<55;
不必杀跌有反弹:VAR2B AND COUNT(VAR2B,30)=1;
九毛八公式解读
VAR1赋值:100*(收盘价-34日内收盘价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)的5日简单移动平均-20 VAR2赋值:2*VAR1的绝对值 VAR5赋值:(最高价+最低价+收盘价)/3 VAR6赋值:(VAR5-VAR5的14日简单移动平均)/(0.015*VAR5的14日平均绝对偏差) VAR7赋值:(VAR5-VAR5的89日简单移动平均)/(0.015*VAR5的89日平均绝对偏差) VAR8赋值:如果VAR6>=150ANDVAR6<200ANDVAR7>=150ANDVAR7<200,返回10,否则返回0 VAR9赋值:如果VAR6<=-150ANDVAR6>-200ANDVAR7<=-150ANDVAR7>-200,返回-10,否则返回VAR8 核能赋值:如果VAR1<0,返回VAR2,否则返回0 预警赋值:如果VAR7>=200ANDVAR6>=150,返回15,否则返回如果VAR7<=-200ANDVAR6<=-150,返回-15,否则返回VAR9+60 VAR2B赋值:核能>38 AND 预警<55 输出不必杀跌有反弹:VAR2B AND 统计30日中满足VAR2B的天数=1