{KL:IF(C =REF(C,1),100*(WINNER(CLOSE)-WINNER(L)),-100*(WINNER(O)-WINNER(L)));}
KL:=100*(WINNER(CLOSE)-WINNER(REF(C,1)));
KL1:=100*(WINNER(CLOSE)-WINNER(REF(C,2)));
LW:=SUM(KL,5),COLORWHITE;
LW10:=SUM(KL,10),COLORWHITE,COLORYELLOW, LINETHICK1;
LW20:=SUM(KL,20),COLORWHITE,COLORYELLOW, LINETHICK2;
百高:=REF(HHV(KL,100),1),COLORWHITE;
年高:=REF(HHV(KL,240),1),COLORWHITE;
百高1:=REF(HHV(KL1,100),1),COLORWHITE;
年高1:=REF(HHV(KL1,240),1),COLORWHITE;
T0:=BARSLAST(年高);
突破线:=REF(KL,T0);
突破1:=IF(KL=HHV(KL,240),C,0);
T1:=BARSLAST(突破1);
突破线1:=REF(C,T1);
突破2:=IF(KL=HHV(KL,100),C,0);
T2:=BARSLAST(突破2);
突破线2:=REF(C,T2);
突破3:=IF(KL1=HHV(KL1,240),C,0);
T3:=BARSLAST(突破3);
突破线3:=REF(C,T3);
突破4:=IF(KL1=HHV(KL1,100),C,0);
T4:=BARSLAST(突破4);
突破线4:=REF(C,T4);
穿破:=(T1 =100 AND CROSS(C,突破线1)) OR (T2 =100 AND CROSS(C,突破线2)) OR (T3 =100 AND CROSS(C,突破线3)) OR (T4 =100 AND CROSS(C,突破线4));
日:=CCI,COLORGRAY,LINETHICK1;
周:=CCI#WEEK,COLORMAGENTA,LINETHICK1;
月:=CCI#MONTH,COLORLIRED,LINETHICK2;
周突破:=(周 0 AND 周-REF(周,1) 90),COLORGREEN;
月突破:=(月 0 AND 月-REF(月,1) 70),COLORGREEN;
周月突破:=(周 0 AND 周-REF(周,1) 90) OR (月 0 AND 月-REF(月,1) 70),COLORGREEN;
暴力拉升:(EXIST(周突破,6) OR EXIST(月突破,22)) AND (KL =30 OR KL1 =50 OR CROSS(KL,百高) OR CROSS(KL,年高) OR CROSS(KL1,百高1) OR CROSS(KL1,年高1) OR CROSS(LW,0) OR CROSS(LW20,0) OR 穿破) AND (LW =0 OR LW20 =0) AND LW =REF(LW,1) AND LW20 =REF(LW20,1) AND C/REF(C,1) =1.05 AND COUNT(C/REF(C,1) =1.095,10) =2,COLORWHITE;
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
妖线:=DMA(EMA(A2,60)*1.1,1-V/CAPITAL),LINETHICK2,COLORYELLOW;
游资:=DMA(EMA(A2,60)*1.1,1-V/CAPITAL),LINETHICK2,COLORYELLOW;
条件:=(C-REF(C,1))/REF(C,1)*100
妖股:=(CROSS(C,游资) OR C =游资) AND (REF(C*1.097,1) C OR 条件);