「翔博精选指标」虚拟成交额(通达信公式 副图 源码 测试图)
2021-11-08原创 编 辑:翔博软件
但应该还可以改进,有喜欢的可以下来自行修改。
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VAMO:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),AMOUNT*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VAMO,0,-1,-1),COLOR00C0C0;
AMOW:AMOUNT,VOLSTICK;
MA1:MA(AMOW,M1);
MA2:MA(AMOW,M2);
启动:MA(AMOW,250),DOTLINE,LINETHICK1,COLORWHITE;
量比:V/REF(MA(V,5),1),COLORBROWN,NODRAW;
倍: AMOW >=REF(AMOW,1)*1.95 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
缩: REF(AMOW,1)>= AMOW *1.95,COLORMAGENTA,NODRAW;
百低:AMOW=LLV(AMOW,125) AND BARSCOUNT(AMOW)>=125,COLORBLUE,NODRAW;
平: RANGE(AMOW /REF(AMOW,1),0.97,1.03) AND BARSCOUNT(AMOW)>=2,COLORWHITE,NODRAW;
天:AMOW=HHV(AMOW,0), COLORRED;
量王:天&&倍&&量比>3&&(BARSCOUNT(C)+1)>120,COLORGREEN, NODRAW;
倍数:AMOW/REF(AMOW,1),COLORYELLOW,NODRAW;
V1:=AMOW *0.9;
STICKLINE(倍, 0,V1,1,0),COLORYELLOW;
STICKLINE(缩, 0,V1,1,0),COLORMAGENTA;
STICKLINE(百低, 0,V1,1,0),COLORBLUE;
STICKLINE(平,0,V1,1,0),COLORWHITE;
STICKLINE(天,0,V1,1,0),COLORRED;
STICKLINE(量王&&COUNT(量王,2)<=1,0,AMOUNT,-1,0),COLORGREEN;
STICKLINE(C<O AND C>REF(C,1),0, AMOW,0,0),COLORRED;{假阴柱}
H_L:=0.1*CONST(HHV(AMOW,250));
长阴短柱:=C/REF(C,1)<=0.96 AND AMOW <HHV(AMOW,30)/1.9;
DRAWTEXT(长阴短柱 , AMOW +1.6*H_L,'!'),COLORLICYAN;