B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:=MA(B2,3);
个股红:=B2>SMA2;
个股绿:=B2<SMA2;
IF(个股红,B2,DRAWNULL),COLORRED,LINETHICK2;
IF(个股绿,B2,DRAWNULL),COLORGREEN,LINETHICK1;
王子控盘线:HHV(MA(B2,1),13),COLORYELLOW,DOTLINE;
HM1:=ABS((3.48*C+H+L)/4-EMA(C,20)/EMA(C,20)); HM2:=DMA((2.15*C+L+H)/4,HM1);
王子强弱线:EMA(HM2,200)*1.118,LINETHICK2,COLORMAGENTA;
J1:=MA(C,5);
J2:=MA(C,10);
J3:=MA(C,30);
J4:=MA(C,60);
J5:=MA(C,120);
时间:=BARSLAST((((CROSS(J2,J1) AND (J2 > J3)) AND (J3 > J4)) AND (J4 > J5)));
前高:=REF(HHV(C,200),时间);
PT:=REFDATE(前高,DATE);
N:=20;
MIDA:=MA(C,N);
VART1:=POW((C - MIDA),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPERA:=(MIDA + (2 * VART3));
LOWERA:=(MIDA - (2 * VART3));
长线:=MA(C,133),LINETHICK2,COLORC0C0C0;
XX:=HHV(EMA(H,75),100);
中线:=IF((XX > REF(XX,1)),XX,DRAWNULL),LINETHICK2,COLORCYAN;
短线:=EMA(REF(MIDA,1),2),LINETHICK2,COLORFF6EC7;
评台:IF((短线 > 长线),PT,DRAWNULL),COLORRED,LINETHICK2;
ZF:=(((C - REF(C,1)) / REF(C,1)) * 100);
S1:=(((L > REF(H,1)) OR (ZF > 9.6)) OR (REF(ZF,1) > 9.6));
强势预选:=((CROSS(C,PT) AND (S1 > 0)) * 8);