RSV:=(C-LLV(L,4))/(HHV(H,4)-LLV(L,4))*100;
K:=LLV(L,4)+SMA(RSV,4,1)/100*(HHV(H,4)-LLV(L,4));
D:=SMA(K,3,1);
H2:=VALUEWHEN(C>=d and d>ref(D,1),D);
L2:=VALUEWHEN(C<=d and d
K1:=IF(C>H2,-3,IF(C
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2>0,H2,L2);
STICKLINE(C>G,L,H,0,0),ColorFFB9FF;
STICKLINE(C>G,O,C,7,0),ColorFFB9FF;
STICKLINE(C<=G,L,H,0,0),ColorFF8900;
STICKLINE(C<=G,O,C,7,0),ColorFF8900;
STICKLINE(CROSS(C,G),L,H,0,0),COLORMAGENTA;
STICKLINE(CROSS(C,G),O,C,7,0),COLORMAGENTA;
STICKLINE(CROSS(G,C),L,H,0,0),COLORYELLOW;
STICKLINE(CROSS(G,C),O,C,7,0),COLORYELLOW;
压撑线:G,LINETHICK2,PRECISION2,COLORRED;
DRAWTEXT(CROSS(C,G),L,'B'),ALIGN,PXDN8,ColorFFB9FF;
DRAWTEXT(CROSS(G,C),H,'S'),ALIGN,PXUP26,COLORGREEN;
|