{短線持股持幣區,紅線區持股,綠線區持幣}
N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV1:=VOL*(C+L+H)/3;
短線:SUM(AMOV1,N1)/SUM(VOL,N1),COLORRED;
NOTEXT1:IF(C>=短線,短線,DRAWNULL),LINETHICK2,COLORRED;
NOTEXT2:IF(C
{中線持股持幣區,黃線區持股,灰線區持幣}
N2:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));
AMOV2:=VOL*(C+L+H)/3;
中線:SUM(AMOV2,N2)/SUM(VOL,N2),COLORYELLOW;
NOTEXT3:IF(C>=中線,中線,DRAWNULL),LINETHICK2,COLORYELLOW;
NOTEXT4:IF(C
JC:=CROSS(短線,中線);
DRAWICON(JC,L,9);
{籌碼平均成本線}
籌均線:IF(CURRBARSCOUNT
DRAWTEXT(CURRBARSCOUNT=1,籌均線*0.998,' 籌均線'),COLORWHITE;
前5天:=BARSCOUNT(C)>5;
ZC:=REF(C,1);
ZF:=(H-ZC+0.01)/ZC*100;
DF:=(ZC-L+0.01)/ZC*100;
漲5:=ZF>=5 AND 前5天 AND C=H;
跌5:=DF>=5 AND 前5天 AND C=L;
漲10:=ZF>=10 AND 前5天 AND C=H;
跌10:=DF>=10 AND 前5天 AND C=L;
漲20:=ZF>=20 AND 前5天 AND C=H;
跌20:=DF>=20 AND 前5天 AND C=L;
漲停板:=IF(INBLOCK('科創板'),漲20,IF(INBLOCK('創業板') AND DATE>1200823,漲20,IF(INBLOCK('ST板塊'),漲5,漲10)));
跌停板:=IF(INBLOCK('科創板'),跌20,IF(INBLOCK('創業板') AND DATE>1200823,跌20,IF(INBLOCK('ST板塊'),跌5,跌10)));
STICKLINE(漲停板,O,C,2.7,0),COLORYELLOW;
STICKLINE(漲停板,O,C,1.5,0),COLORRED;
STICKLINE(跌停板,O,C,1.5,0),COLORBLUE;
曾漲5:=ZF>=5 AND 前5天 AND C
曾跌5:=DF>=5 AND 前5天 AND C>L;
曾漲10:=ZF>=10 AND 前5天 AND C
曾跌10:=DF>=10 AND 前5天 AND C>L;
曾漲20:=ZF>=20 AND 前5天 AND C
曾跌20:=DF>=20 AND 前5天 AND C>L;
曾漲停板:=IF(INBLOCK('科創板'),曾漲20,IF(INBLOCK('創業板') AND DATE>1200823,曾漲20,IF(INBLOCK('ST板塊'),曾漲5,曾漲10)));
曾跌停板:=IF(INBLOCK('科創板'),曾跌20,IF(INBLOCK('創業板') AND DATE>1200823,曾跌20,IF(INBLOCK('ST板塊'),曾跌5,曾跌10)));
STICKLINE(曾漲停板,O,C,0.1,0),COLORLIMAGENTA;
DRAWICON(曾漲停板,H*1.001,37);
DRAWTEXT(曾漲停板,H-0.02,'炸'),COLORCYAN;
STICKLINE(曾跌停板,O,C,0.1,0),COLORBLUE;
DRAWICON(曾跌停板,L*0.98,36);
DRAWTEXT(曾跌停板,L-0.1,'撬'),COLORLIRED;