VAR2:=REF(CLOSE,1)/CLOSE;
VAR3:=(1-MA(LOW,3)/MA((HIGH+LOW+2*CLOSE)/4,20))*100-5;
VAR4:=(1-SMA(VAR2*LOW,3,1)/EMA((HIGH+LOW+2*CLOSE)/4,10))*100-5;
VAR5:=(MA(HIGH,3)/MA((HIGH+LOW+2*CLOSE)/4,20)-1)*100-5;
超跌度:IF(VAR3>0,-VAR3*REF((HIGH+LOW+2*CLOSE)/4,3)/CLOSE,0),COLORGREEN;
超涨度:IF(VAR5>0,VAR5*CLOSE/REF((HIGH+LOW+2*CLOSE)/4,3),0),COLORMAGENTA;
超涨预警选股:IF(超涨度,10,0),STICK,COLORRED,LINETHICK2;
{ _通达信指标公式}
超跌预警选股:IF(超跌度>REF(超跌度,1) AND REF(超跌度,1)<-10,-11,0),STICK,COLOR00FF00,LINETHICK2;
超跌关注:IF(超跌度>REF(超跌度,1) AND REF(超跌度,1)<-10,-11,0),STICK;
超涨关注:IF(超涨度< REF(超涨度,1) AND REF(超涨度,1)>10,11,0),STICK;
DRAWICON(crOSS(-0.01,超跌度),0,2);
DRAWICON(CROSS(超涨度,0.01),0,1);
10,COLOR008000;
-10,COLORRED;
MID:=MA(CLOSE,26);
UPPER:=MID+2*STD(CLOSE,26);
LOWER:=MID-2*STD(CLOSE,26);
布林截距:=(UPPER-LOWER)*5-5;
主升浪:IF(布林截距>0 AND MID>REF(MID,1),布林截距,0),COLORRED;
末跌段:IF(布林截距>0 AND MID< REF(MID,1),-布林截距,0),COLORCYAN;