短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:100*(C-LLV(L,40))/(HHV(C,40)-LLV(L,40)),COLORRED,LINETHICK2;
强市线:80,POINTDOT;
弱市线:20,POINTDOT;
分水岭:50,POINTDOT;
DRAWBAND(中期,RGB(255,0,255),MA(中期,3),RGB(34,139,34));
DRAWBAND(MA(短期,3),RGB(34,139,34),短期,255);
DRAWBAND(MA(长期,3),RGB(34,139,34),长期,RGB(255,215,0));
STICKLINE(短期=100 AND 短期>=REF(短期,1) AND 中期>=REF(中期,1) AND 长期>REF(长期,1),短期*1.1,REF(短期,1),2,1),COLORRED;
STICKLINE(短期>=REF(短期,1) AND 中期>=REF(中期,1) AND 长期>REF(长期,1),短期,REF(短期,1),2,1),COLORRED;
DRAWTEXT(crOSS(中期,MA(中期,3)) AND CROSS(长期,MA(长期,3)),20,'买'),COLORYELLOW;