Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
快线:3*Q3-2*Q4,COLORWHITE,LINETHICK3;
慢线:EMA(Q3, 3),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(慢线, 快线) AND REF(快线,1)>80, REF(快线,3), '顶'),COLORRED,LINETHICK5;
逢低买: DRAWTEXT(REF(CROSS(慢线,快线),82) AND 慢线>1.3*快线,快线,'逢低买'),LINETHICK1;
买: DRAWTEXT(REF(CROSS(快线,慢线),1) AND 快线>1.3*慢线,慢线,'买'),COLORRED,LINETHICK1;
金叉: CROSS(快线,慢线);
DRAWTEXT(金叉,慢线,'★'),COLORRED;
死叉: CROSS(慢线,快线);
DRAWTEXT(死叉,快线,'★'),COLORGREEN;
牛市超买:(90)COLORWHITE;
熊市超卖:(10)COLORWHITE;
强:(70)COLORRED;
弱:(30)COLORBLUE;
中轴:(50);