尺子长度:=213;

调控:=30;

A:=CONST(HHV(H,尺子长度));

B:=CONST(LLV(L,尺子长度));

AB:=IF(CURRBARSCOUNT<尺子长度,CONST(((A-B)/2)*(70+调控)/100+B),DRAWNULL),LINETHICK2,COLORRED;

DRAWBAND(AB*1.1,RGB(12,22,32),AB*0.9,RGB(12,22,30));

竖:=MONTH>REF(MONTH,1);

STICKLINE(DAY>0,AB*0.94,AB*0.9,0,-1),COLORLIGREEN;

中:=AB,LINETHICK2,COLORCYAN;

地:AB*0.8,COLORYELLOW,DOTLINE;

低:AB*0.9,LINETHICK2,COLORYELLOW;

{DRAWTEXT_FIX(1,0.1,0.02,0,'直尺判断213个交易日走势,买红线和上黄线以上的强势股,就是只买上行的,红线和下黄线以下下行的弱势股不考虑'),COLORWHITE;

{=======K线=====}

线120:=MA(CLOSE,120)COLORMAGENTA,LINETHICK2;

DRAWKLINE(H,O,L,C);