成交量万:VOL/10000;
倍量阳柱:=VOL>=REF(VOL,1)*1.85 AND CLOSE>REF(CLOSE,1) ;
次阳柱:= (CLOSE>OPEN AND CLOSE>=REF(CLOSE,1)*1.0015 ) OR (CLOSE>OPEN*1.015 AND CLOSE>REF(CLOSE,1)) ;
跳空高开:=OPEN>REF(CLOSE,1)*1.003 AND CLOSE>=REF(CLOSE,1)*1.03 AND CLOSE>OPEN ;
三一缩量:=VOL<=REF(VOL,1)*0.67 AND VOL>REF(VOL,1)*0.5;
二一缩量:=VOL<=REF(VOL,1)*0.5 ;
地量柱:=VOL<REF(LLV(VOL,13),1) AND VOL<REFX(VOL,1);
成交量比:VOL/REF(VOL,1);
A:=MIN(REFX(OPEN,1),REFX(CLOSE,1));
B:=MIN(REFX(OPEN,2),REFX(CLOSE,2));
CC:=MIN(REFX(OPEN,3),REFX(CLOSE,3));
三日不破底:=OPEN<=MIN(MIN(A,B),CC) AND OPEN<CLOSE AND LOW<=MIN(MIN(REFX(LOW,1),REFX(LOW,2)),REFX(LOW,3));
V1:=(REFX(VOL,1)/3+REFX(VOL,2)/3+REFX(VOL,3)/3)/REFX(VOL,1);
C1:=(REFX(CLOSE,1)/3+REFX(CLOSE,2)/3+REFX(CLOSE,3)/3)/REFX(CLOSE,1);
量价背离:=C1>V1;
量价不背离:=C1<=V1;
均价过顶:=CLOSE<=(REFX(CLOSE,1)/3+REFX(CLOSE,2)/3+REFX(CLOSE,3)/3) ;
均价不过顶:=CLOSE>(REFX(CLOSE,1)/3+REFX(CLOSE,2)/3+REFX(CLOSE,3)/3) ;
将军柱:(倍量阳柱 AND 三日不破底 AND 均价不过顶 ) OR (次阳柱 AND 三日不破底 AND 均价不过顶 );
黄金柱:(倍量阳柱 AND 三日不破底 AND 均价过顶 AND 量价背离) OR (次阳柱 AND 三日不破底 AND 均价过顶 AND 量价背离);
次黄金柱:(倍量阳柱 AND 三日不破底 AND 均价过顶 AND 量价不背离) OR (次阳柱 AND 三日不破底 AND 均价过顶 AND 量价不背离);
STICKLINE(CLOSE>=REF(CLOSE,1),0,V,9,1),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,V,9,1),COLORGREEN;
STICKLINE(三一缩量,0,V,4,0),COLORCYAN;
STICKLINE(二一缩量,0,V,4,0),COLORCYAN;
STICKLINE(地量柱,0,V,4,0),COLORBLUE;
STICKLINE(倍量阳柱,0,V,4,0),COLOR00CCCC;
STICKLINE(将军柱,0,V,5,0),COLORYELLOW;
STICKLINE(次黄金柱,0,V,4,0),COLORYELLOW;
STICKLINE(黄金柱,0,V,7,0),COLORYELLOW;
DRAWTEXT(跳空高开,V*1.2,'跳 '),COLORMAGENTA;
DRAWTEXT(倍量阳柱,V*1.3,'倍 ');
DRAWTEXT(三一缩量,V*1.4,'3缩 ');
DRAWTEXT(二一缩量,V*1.4,'2缩 '),COLORCYAN;
DRAWTEXT(地量柱,V,'地 ');
DRAWTEXT(将军柱,V*1.5,'将 '),COLORYELLOW;
DRAWTEXT(次黄金柱,V*1.5,'次 '),COLORYELLOW;
DRAWTEXT(黄金柱,V*1.5,'金 '),COLORYELLOW;
涨停:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01 ,1,0) ;
DRAWICON(涨停,0,5);