手机端
当前位置:爱约股 > 公式技巧 > 在涨幅差分时图的做个预警指标

在涨幅差分时图的做个预警指标

 网友求助:

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;

 

 

 

在涨幅差分时图的做个预警指标

 

解答如下:

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;
涨幅差:=涨幅-均线涨幅;
XG:CROSS(-3.699,涨幅差);

分享至:

相关推荐