卖出阈值:=1;
暴益线:=C/REF(C,1);
买入:CROSS(暴益线,1.01),COLORYELLOW,NODRAW;
卖出:CROSS(1+0.01*卖出阈值,暴益线),COLORRED,NODRAW;
DRAWTEXT(买入,LOW,'买入'),COLORYELLOW;
DRAWTEXT(卖出,H,'卖出'),COLORRED;
卖出阈值:=1;
暴益线:=C/REF(C,1);
买入:CROSS(暴益线,1.01),COLORYELLOW,NODRAW;
卖出:CROSS(1+0.01*卖出阈值,暴益线),COLORRED,NODRAW;
DRAWTEXT(买入,LOW,'买入'),COLORYELLOW;
DRAWTEXT(卖出,H,'卖出'),COLORRED;