顶底买卖
底部支撑:=HHV(MA(L,11),98),COLORGREEN,LINETHICK1;
压力4:=MA(底部支撑,30),COLORBLUE,LINETHICK1;
XG:=底部支撑=REF(底部支撑,1);
买:=LAST(底部支撑
卖:=LAST(底部支撑>REF(底部支撑,1),7,1) AND 底部支撑=REF(底部支撑,1);
STICKLINE(买,0,1,2,0),COLORRED;
STICKLINE(卖,0,1,2,0),COLORGREEN;
DRAWTEXT(买,0.5,'买'),COLORYELLOW;
DRAWTEXT(卖,0.5,'卖'),COLORYELLOW;