N:=10;
趋势:4*SMA((CLOSE-LLV(L,n))/(HHV(H,n)-LLV(L,n))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(V,n))/(HHV(HIGH,n)-LLV(V,n))*100,5,1),3.2,1);
VAR6:=(2*C+H+L)/4;
VAR7:=LLV(L,n);
VAR8:=HHV(H,n);
操作:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-30,linethick0,colorred;
趋势:EMA(0.618*REF(操作,1)+0.382*操作,3),colorffff00,linethick2;
STICKLINE(操作>趋势 AND 操作>=REF(操作,1),操作+5,趋势-1,3.5,0),colorred,linethick2;
STICKLINE(操作>=趋势,趋势,趋势,3.5,0),coloryellow,linethick2;
STICKLINE(操作<趋势,趋势+0.5,趋势-0.5,3.5,0),colorffff00,linethick2;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
准备:STICKLINE(乖离<-6 AND 乖离>=-12,-6,0,6,1 ),COLOR33ffcc;
抄底一:IF(乖离<-12 AND 乖离>=-18,-12,0),COLOR33cccc,STICK;
STICKLINE(乖离<-12 AND 乖离>=-18,-12,0,6,0) ,COLOR33cccc;
抄底二:IF(乖离<-18,-18,0),COLOR3399cc,STICK;
STICKLINE(乖离<-18,-18,0,6 ,0) ,COLOR3399cc;