TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
Vvol:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MA5日:MA(VOLUME,5);
MA10日:MA(VOLUME,60);
TJ1:=REF(C,3)/REF(C,4)>1.09 AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
TJ3:=REF(O,1)<REF(MA(C,5),1) AND O>MA(C,20) AND C>MA(C,10);
TJ4:=EVERY(MA(C,5)>MA(C,10),3) AND H/REF(C,1)>1.041 AND REF(C,1)/REF(C,2)<1.041 AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND REF(O,1)>REF(MA(C,20),1)
AND REF(C,1)>REF(MA(C,10),1) AND C>MA(C,60) AND MA(C,5)>MA(C,60);
TJ5:=NOT(REF(C,1)>REF(MA(C,5),1) AND REF(C,2)>REF(MA(C,5),2));
TJXG1:=COUNT(TJ1,10) AND TJ3 AND TJ4 AND TJ5;
强势线:=MA(C,25)+MA(C,25)*20/100;
TJXG:=NOT(COUNT(REF(TJXG1,1),5)) AND TJXG1 AND H>强势线;
LN1:=(TJXG OR REF(TJXG,1)) AND V/REF(V,1)>=1.5 AND C>REF(C,1);
DRAWTEXT(LN1,MA5日*1.6,'★倍增'),COLORWHITE;
DL1:=REF(C,3)/REF(C,4)>1.09 AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30)
AND REF(C,3)=HHV(REF(C,3),10);
DL2:=HHV(V,30)/V>2 AND O<MA(C,5) AND C>MA(C,10) AND V<REF(V,1);
DLL:=REF(V,1)=HHV(REF(V,1),30) AND NOT(REF(TJXG,1));
DL3:=COUNT(DL1,10) AND COUNT(DLL,10) AND DL2 AND NOT(COUNT(REF(TJXG,1),10));
DRAWTEXT(DL3,MA10日*2,'减'),COLORGREEN;
STICKLINE(LN1,0,VOL,1.5,0),COLORYELLOW;
STICKLINE(DL3,0,VOL,1.5,0),COLORGREEN;