N1:=3;
N2:=8;
SS:(BArslAST(CLOSE=LLV(CLOSE,N2)))/5,NODRAW;
JS:(BARSLAST(CLOSE=HHV(CLOSE,N1)))/5,NODRAW;
SS10:(BARSLAST(CLOSE=LLV(CLOSE,10)))/5;
JS10:(BARSLAST(CLOSE=HHV(CLOSE,10)))/5;
持股:((SS>0 AND JS=0 )>0),COLORLIMAGENTA,NODRAW;
买入:((持股>0 AND REF(持股,1)=0)),COLORWHITE,NODRAW;
{ _通达信股票指标公式}
卖出:((JS=0.2 )>0),COLORLIBLUE,NODRAW;
买点:REF(LLV(CLOSE,N2),1),COLORWHITE,NODRAW;
卖点:REF(HHV(CLOSE,N1),1),COLORLIBLUE,NODRAW;
STICKLINE(持股,0,1,1,0),COLORLIMAGENTA;
STICKLINE(买入,0,1,1,0),COLORWHITE;
STICKLINE(卖出,0,1,1,0),COLORLIBLUE;