九毛八公式指标
公式模块:
tt:=BARSCOUNT(C);
zz:=SUM(AMOUNT,tt)/SUM(vol*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:=IF(zz1=0,MA(C,TT),zz);
涨幅:=(C/DYNAINFO(3)-1)*100;
均线涨幅:=(均线/DYNAINFO(3)-1)*100;
涨幅差:=涨幅-均线涨幅;
PARTLINE(C,BETWEEN(涨幅差,3.5,4.5),RGB(0,200,180),BETWEEN(涨幅差,-3.5,-4.5),RGB(250,200,0)),LINETHICK5;
PARTLINE(C,涨幅差>4.5,RGB(10,250,0),涨幅差<-4.5,RGB(250,0,0)),LINETHICK5;
DRAWTEXT(crOSS(-3.699,涨幅差),C,'★——————————买入'),COLORWHITE;
DRAWTEXT(CROSS(涨幅差,4.319),C,'————跑'),COLORWHITE;