MA1:CLOSE,LINETHICK0,PRECIS2;
GG:=PEAKBARS(4,20,1)+1;
DD:=TROUGHBARS(4,20,1)+1;
VOL1:=MA(VOL,1);
VOL5:=MA(VOL,5);
VOL13:=MA(VOL,13);
最大量:=HHV(VOL1,DD);
量支撑:=VOL1=最大量 AND C>REF(C,1) AND VOL5>VOL13;
量柱时间:BARSLAST(量支撑),LINETHICK0;
LJG:=REF(C,量柱时间);
量柱价格:IF(量柱时间=1,LJG,REF(LJG,BARSLAST(量柱时间=1))),COLORWHITE;
DDJG:=LLV(L,DD);
XJSJ:=LAST(DD>GG);
DRAWTEXT(DD>0,DDJG*0.95,STR(DD)),COLORWHITE,ALIGN1,VALIGN0,LAYER3;
DRAWTEXT(XJSJ>0,DDJG*0.99,STR(XJSJ)),COLORYELLOW,ALIGN1,VALIGN0,LAYER3;
FILLRGN(DDJG,DDJG*0.91,C>0,RGB(0,0,0)),LAYER5;