乖离率:=((((C-MA(C,6))/MA(C,6)+(C-MA(C,24))/MA(C,24)+(C-MA(C,32))/MA(C,32))*100)/3);
STICKLINE(乖离率>0,REFDATE(HHV(乖离率,130),DATE),REFDATE(LLV(乖离率,130),DATE),10,0),
COLOR660066;
STICKLINE(乖离率<0,REFDATE(HHV(乖离率,130),DATE),REFDATE(LLV(乖离率,130),DATE),10,0),
COLOR553300;
STICKLINE(乖离率>0,乖离率,0,2,1),COLOR0000FF;
STICKLINE(乖离率<0,乖离率,0,2,1),COLORCCCC00;
DRAWICON(乖离率<-20 AND 乖离率>REF(乖离率,1),10,5);
DRAWICON(乖离率<-10 AND C=LLV(C,10) AND C>REF(C,1)*0.9015,6,1);
{ _最新股票指标公式}
STICKLINE(乖离率<-20 AND 乖离率>REF(乖离率,1),0,乖离率,2,0),COLOR00FFFF;
DRAWICON(乖离率>20 AND 乖离率<REF(乖离率,1),-10,6);
STICKLINE(乖离率>20 AND 乖离率<REF(乖离率,1),0,乖离率,2,0),COLOR00CC00;
DRAWICON(V>9 AND FILTER(乖离率<REF(乖离率,1),5),-6,2);
DRAWICON(HHV(乖离率>20,10) AND crOSS((REF(H,1)+REF(L,1))/2,MA(C,20)+2*STD(C,20)),-10,8);
止损:IF(HHV(乖离率>20,10) AND FILTER(乖离率<REF(乖离率,1),6) AND CROSS(MA(C,5),MA(C,2)),-10,0),
,LINETHICK2,COLOR00CC00;