HS:=V/CAPITAL*5;
STICKLINE(C =O,CONST((MA(C,120)+MA(C,240))/2),CONST((MA(C,120)+MA(C,240))/2)+HS,3,1),COLORLIMAGENTA;
STICKLINE(C O,CONST((MA(C,120)+MA(C,240))/2),CONST((MA(C,120)+MA(C,240))/2)+HS,3,1),COLORLIGREEN;
A2:=HHV(C,60);
A3:=2*MA(C,5)-A2;
季线:MA(C,60);
半年线:MA(C,120);
年线:MA(C,240);
DRAWTEXT(C REF(C,1) AND DOWNNDAY(A3,3),L*0.99,'3背离'),COLORMAGENTA;
DRAWTEXT(C REF(C,1) AND DOWNNDAY(A3,4),L*0.98,'4背离'),COLORMAGENTA;
DRAWTEXT(C REF(C,1) AND DOWNNDAY(A3,5),L*0.97,'5背离'),COLORMAGENTA;
DRAWTEXT(C REF(C,1) AND DOWNNDAY(A3,6),L*0.96,'6背离'),COLORMAGENTA;
DRAWTEXT(C REF(C,1) AND DOWNNDAY(A3,7),L*0.95,'7背离'),COLORMAGENTA;
DRAWKLINE(H,O,L,C);