DRAWTEXT_FIX(ISLASTBAR,0,0,0,'说明:日涨7黄色,日跌7绿色,日换手20白色,3日涨20 3阳,3日跌20 3阴,日振15洋红'),COLORBROWN;
涨幅偏离:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))*100>=0.07;{必须做收盘数据下载}
STICKLINE(涨幅偏离,C,(O+C)/2,2,0),COLORBLUE;
跌幅偏离:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))<=-0.07;
STICKLINE(跌幅偏离,C,(O+C)/2,2,0),COLORCYAN;
振幅偏离:=(H-L)/L>=0.15;{振幅大于15个点}
STICKLINE(振幅偏离,O,C,1,0),COLORmaGENTA;
DRAWTEXT( 振幅偏离,H*1.1,'振'),COLORLIMAGENTA;
换手偏离:=DYnaINFO(37)>=0.20;
STICKLINE(换手偏离,O,(O+C)/2,2,0),COLORRED;
三天涨幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))>=20;
STICKLINE(三天涨幅,C,(O+C)/2,2,0),COLORBLUE;
DRAWTEXT( 三天涨幅,L*0.98,'3阳'),COLORBLUE;
三天跌幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))<=-20;
STICKLINE(三天跌幅,C,(O+C)/2,2,0),COLORCYAN;
DRAWTEXT( 三天跌幅,L*0.98,'3阴'),COLORCYAN;
A1:(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/48,COLOR00FFFF;
A2:MA(A1,10),COLOR0000FF;