通达信判顶底不再难
WL:=(HHV(H,8)-C)/(HHV(H,8)-LLV(L,8))*100-70;
MWL:=SMA(WL,8,1);
RSV:=(C-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DKC:=(D+100)-(MWL+100);
GL:((C-MA(C,6))/MA(C,6)*200)+20,COLORGREEN;
更:=IF(DKC>100,DKC-100,0),COLORWHITE;
好:=IF(REF(更,1)<更,更/2,REF(更,1)),COLORRED;
编:=IF(REF(更,1)>更,更/2,REF(更,1)),COLORMAGENTA;
A:DKC/2,COLORLIMAGENTA,LINETHICK2;
减仓:CROSS(编,好)AND REF(A>51,1),COLORLIGREEN,NODRAW;
必逃:CROSS(好,更)AND REF(A>51,1),COLORCYAN,NODRAW;
买点:REF(A<20,1)AND A>REF(A,1)AND CROSS(GL,19.5),COLORYELLOW,NODRAW;
GLM:CROSS(GL,15)OR (REF(GL<10.5,1)AND CROSS(GL,REF(GL,1))),COLORRED,NODRAW;
启动:CROSS(GL,9.5)OR CROSS(GL,10.8),COLORWHITE,NODRAW;
拉升:CROSS(GL,20),COLORMAGENTA,NODRAW;
低位:A<20,COLORLIGRAY,NODRAW;
高位:A>50,COLORYELLOW,NODRAW;
10,COLORGRAY,DOTLINE;20,COLORGRAY,DOTLINE;50,COLORBROWN,DOTLINE;15,COLORRED,DOTLINE;
STICKLINE(减仓=1,50,48,0.1,0),COLORLICYAN;
STICKLINE(必逃=1,49.5,45,0.1,0),COLORCYAN;
STICKLINE(A>50,50,A,0.1,0),COLORYELLOW;
STICKLINE(A>50 AND A<REF(A,1),50,A,0.1,0),COLORGREEN;
STICKLINE(A>60,60,A,0.1,0),COLORRED;
STICKLINE(A<20,20,A,0.1,0),COLORLIGRAY;
STICKLINE(A<20 AND A>REF(A,1),20,A,0.1,0),COLORLIRED;
STICKLINE(A<10,10,A,0.1,0),COLORWHITE;
STICKLINE(买点=1,22,A,0.1,0),COLORYELLOW;
STICKLINE(GLM=1,20,25,0.1,0),COLORRED;
STICKLINE(拉升=1,20,50,0,-1),COLORMAGENTA,;
STICKLINE(启动=1,10,15,0.1,0),COLORWHITE;
DRAWTEXT(拉升=1,48,'拉'),COLORMAGENTA;
DRAWTEXT(启动=1,12,'启'),COLORWHITE;