以下是通达信逃顶绿箭波段类公式副图源码测试图(无源码的请下载附件导入)
AR4:=SMA(AR3,3,1);
MMCD:=3*(AR3-AR4);
STICKLINE(MMCD>0,MMCD+45,45,0.0,0),COLORYELLOW;
STICKLINE(MMCD<0,MMCD+45,45,0.0,0),COLORGREEN;
DRAWTEXT(ISLASTBAR AND TJF>REF(TJF,1),TJF,' '),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND TJF<REF(TJF,1),TJF,' '),COLORCYAN;
DRAWTEXT(ISLASTBAR,顶区,''),COLORFFFF00;
DRAWTEXT(ISLASTBAR,底区,''),COLOR208FFF;
DRAWICON(CROSS(TJF,89),TJF,2);
AL:=(EMA(CLOSE,8)-EMA(CLOSE,55))*10;
TRK:=EMA(EMA(CLOSE,13),13);
MTQ:=(TRK-REF(TRK,1))/REF(TRK,1)*1000;
VX1:=(C-DYNAINFO(11))/DYNAINFO(11)<-0.005;
VX2:=(C-DYNAINFO(11))/DYNAINFO(11)<-0.03;
VX3:=MTQ>REF(MTQ,1) AND MTQ<-0.2;
VX4:=CROSS(AL,EMA(AL,3)) AND AL<-0.3;
VX5:=FILTER(VX1 AND VX3 AND VX4,13);
VX6:=FILTER(VX2 AND VX3 AND VX4,13);
逃顶:CROSS(TJF,89);
951311205.jpg
951399089.jpg
|