VOLUME:VOL,STICK;
真阳:=C>O AND C>REF(C,1);
STICKLINE(真阳,V,0,3,1),COLORRED;
真阴:=C<O AND C<REF(C,1);
STICKLINE(真阴,V,0,3,1),COLORCYAN;
时间限定:=NOT(L=REFX(L,1) AND H=REFX(H,1) AND C=REFX(C,1) AND O=REFX(O,1)) AND
NOT(REFX(L,1)=REFX(L,2) AND REFX(H,1)=REFX(H,2) AND REFX(C,1)=REFX(C,2) AND REFX(O,1)=REFX(O,2)) AND
NOT(REFX(L,2)=REFX(L,3) AND REFX(H,2)=REFX(H,3) AND REFX(C,2)=REFX(C,3) AND REFX(O,2)=REFX(O,3));
正时间量性:=MIN(MIN(L,REFX(C,1)),MIN(REFX(C,2),REFX(C,3)))=L AND 时间限定;
反时间量性:=MAX(MAX(H,REFX(C,1)),MAX(REFX(C,2),REFX(C,3)))=H AND 时间限定;
倍量:=V>=REF(V,1)*1.9 AND (真阳 OR 真阴);
IF(倍量,V,DRAWNULL),CIRCLEDOT,COLORYELLOW;
小倍量:=V>=REF(V,1)*1.5 AND V<REF(V,1)*1.9 AND (真阳 OR 真阴);
IF(小倍量,2*V/3,DRAWNULL),CIRCLEDOT,COLORBD00BD;
平量:=BARSLASTCOUNT(V/REF(V,1)<=1.05 AND V/REF(V,1)>=0.95 AND (真阳 OR 真阴))=1;
IF(平量,V/3,DRAWNULL),CIRCLEDOT,COLORWHITE;
梯量:=BARSLASTCOUNT(V<REFX(V,1) AND (真阳 OR 真阴))=1;
IF(梯量,0,DRAWNULL),CIRCLEDOT,COLORYELLOW;
STICKLINE((梯量 OR 平量 OR 倍量) AND 真阳 AND 正时间量性,V/2,V/2,2,0),COLORWHITE;
STICKLINE((梯量 OR 平量 OR 倍量) AND 真阴 AND 反时间量性,V/2,V/2,2,0),COLORWHITE; |