Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
Var9:=EMA(Var7,8);
DRAWTEXTABS(5,5,'股票软件下载网 www.9m8.cn 九毛八公式指标网'),linethick1,COLOR00EEff;
STICKLINE(Var7 1*REF(Var7,1),h,l,0.5,0),COLORBLUE;STICKLINE(Var7 1*REF(Var7,1),o,c,8, 0),COLORBLUE;
STICKLINE(Var7 1*REF(Var7,1),h,l,0.5,0),COLORRED;STICKLINE(Var7 1*REF(Var7,1),o,c,8, 0),COLORRED;
STICKLINE(Var7 1*REF(Var7,1) AND Var9 1*REF(Var9,1),h,l,0.5,0),COLORGREEN;STICKLINE(Var7 1*REF(Var7,1) AND Var9 1*REF(Var9,1),o,c,8, 0),COLORGREEN;
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价 ref(买进价,1);
STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;STICKLINE(买进条件,o,c,8,0),colorwhite,linethick2;
加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加码条件:=cross(c,加码价) and 加码价 ref(加码价,1);
STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;STICKLINE(加码条件,o,c,8,0),coloryellow,linethick2;