{测底王 当出现大底时买入,出现大顶时卖出}
SFX:=EMA(2500*(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)),7);
ZJX:=EMA(2500*(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)),2);
中期:IF(1,SFX,0),COLORGREEN,LINETHICK2;
短期:IF(1,ZJX,0),COLORFF00FF,LINETHICK2;
DRAWTEXT(短期 500,300,'底'),COLORMAGENTA,LINETHICK2;
DRAWTEXT(中期 500,200,'大底'),COLORRED,LINETHICK2;
DRAWTEXT(短期 2000,2200,'顶'),COLORYELLOW,LINETHICK2;
DRAWTEXT(中期 2000,2300,'大顶'),COLORGREEN,LINETHICK2;
STICKLINE(C 0,500,500,5,1),COLORYELLOW;
STICKLINE(C 0,2000,2000,5,1),COLORMAGENTA;
STICKLINE(C 0,1250,1250,5,1),COLORWHITE;