通达信鲤鱼跳龙门副图/选股预警,指标使用未来函数DRAWLINE画线函数,谨慎使用。
MA120:=MA(CLOSE,120),COLORFFFF00,LINETHICK1;
MA60:=MA(CLOSE,60),COLOR00FF00,LINETHICK1;
{MA30:MA(CLOSE,30),COLORF0F000,LINETHICK1;}
MA20:=MA(CLOSE,20),COLORFF00FF,LINETHICK1;
MA10:=MA(CLOSE,10),COLOR00FFFF,LINETHICK1;
MA5:=MA(CLOSE,5),COLORWHITE,LINETHICK1;
{涨跌停标识}
C2:=REF(C,1);
非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
涨停:=非ST涨停;
非ST跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
跌停:=非ST跌停;
半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0);
半涨2:=IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);
JRS:=半涨1 AND 半涨2 AND FINANCE(33)>0;
NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);
{前期小高位}
A1:=REF(H,10)=HHV(H,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(H,10)=LLV(H,2*10+1);
B2:=FILTER(A2,10);
C3:=BACKSET(B2,10+1);
LD:=FILTER(C3,10);
前期小高位:=REF(H,BARSLAST(HD)),COLORFFA346;
LT8:=LLVBARS(L,60);
LTT8:=BARSLAST(CURRBARSCOUNT=CONST(LT8)+1);
HT8:=FINDHIGHBARS(H,LT8+1,60,1);
龙门:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLASTBAR,REF(H,HT8),0),COLORYELLOW,LINETHICK2;
CROSS(C,龙门);