尺子长度:=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;
STICKLINE(BARSLAST(竖)=11,AB*0.9,AB,0,-1),COLORRED;
中:AB,LINETHICK2,COLORRED;
天:AB*1.2,COLORLIGREEN,DOTLINE;
地:AB*0.8,COLORLIGREEN,DOTLINE;
高:AB*1.1,LINETHICK2,COLORYELLOW;
低:AB*0.9,LINETHICK2,COLORYELLOW;
STICKLINE(竖,AB*1.1,AB*0.9,0,0),COLORWHITE;
DRAWTEXT_FIX(1,0.1,0.02,0,'直尺判断213个交易日走势,买红线和上黄线以上的强势股,就是只买上行的,红线和下黄线以下下行的弱势股不考虑'),COLORWHITE;
{=======K线=====}
线120:MA(CLOSE,120)COLORMAGENTA,LINETHICK2;
DRAWKLINE(H,O,L,C);