中短决策主图源码:N1:=IF(BARS...

中短决策主图源码:
N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV1:=VOL*(C+L+H)/3;
短线:SUM(AMOV1,N1)/SUM(VOL,N1),COLORRED;
{DRAWTEXT(CURRBARSCOUNT=1,短线*0.998,' 短线'),COLORRED;}
NOTEXT1:IF(C>=短线,短线,DRAWNULL),LINETHICK2,COLORRED;
NOTEXT2:IF(C<短线,短线,DRAWNULL),LINETHICK2,COLORGREEN;
N2:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));
AMOV2:=VOL*(C+L+H)/3;
中线:SUM(AMOV2,N2)/SUM(VOL,N2),COLORYELLOW;
{DRAWTEXT(CURRBARSCOUNT=1,中线*0.998,' 中线'),COLORRED;}
NOTEXT3:IF(C>=中线,中线,DRAWNULL),LINETHICK2,COLORYELLOW;
NOTEXT4:IF(C<中线,中线,DRAWNULL),LINETHICK2,COLORGRAY;
{短线金叉中线}
JC:=CROSS(短线,中线);
DRAWICON(JC,L,9);
{筹码平均成本线}
筹均线:IF(CURRBARSCOUNT<13,CONST(COST(50)),DRAWNULL),COLORWHITE,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,筹均线*0.998,' 筹均线'),COLORWHITE;
前5天:=BARSCOUNT(C)>5;{上市大于五天,前五天不限制幅度}
ZC:=REF(C,1);
ZF:=(H-ZC+0.01)/ZC*100;
DF:=(ZC-L+0.01)/ZC*100;

(0)

相关推荐