MA1:=EMA(C,30);
MA2:=EMA(C,900);
STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;
STICKLINE((MA1REF(均量,1) AND REF(均量,1)>REF(均量,2);
價連漲:=C>=REF(C,1) AND REF(C,1)>REF(C,2);
價量線上:=C>JJ AND V>均量;
倍量:=V>=REF(V,1)*2 ;
價新高:=C>=HHV(C,FROMOPEN);
量新高:=V>=HHV(V,FROMOPEN);
限幅:=C/DYNAINFO(3)<=1.02;
起爆:=FILTER(量連增 AND 價連漲 AND 價量線上 AND 倍量 AND 價新高 AND 量新高 AND 限幅,20);
DRAWTEXT(起爆,C,起爆),COLOR00FFFF;
DRAWICON(起爆,C,1);
STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;
VV:=BARSSINCE(起爆);
起爆價:=REF(C,VV);
起爆時間:=REF(TIME/10000,VV);
收益:=(DYNAINFO(7)-起爆價)/起爆價*100;
DRAWICON(VV>=2,起爆價,13);
年:=YEAR,NODRAW;
月:=MONTH,NODRAW;
星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本週第幾天:=BARSLAST(ZB)+1;
本月第幾天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;
MA11:=REF(C,本週第幾天);
MA21:=REF(MA11,本週第幾天);
MA31:=REF(MA21,本週第幾天);
MA4:=REF(MA31,本週第幾天);
MA5:=REF(MA4,本週第幾天);
MA6:=REF(MA5,本週第幾天);
MA7:=REF(MA6,本週第幾天);
MA8:=REF(MA7,本週第幾天);
MA9:=REF(MA8,本週第幾天);
十週價:=(C+MA11+MA21+MA31+MA4+MA5+MA6+MA7+MA8+MA9)/10;
決策:REFDATE(十週價,DATE),COLORFF0080,LINETHICK2;
DRAWTEXT(ISLASTBAR,決策," 決策線"),COLORFF0080;
MA1:=EMA(C,30);
MA2:=EMA(C,900);
STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;
STICKLINE((MA1REF(均量,1) AND REF(均量,1)>REF(均量,2);
價連漲:=C>=REF(C,1) AND REF(C,1)>REF(C,2);
價量線上:=C>JJ AND V>均量;
倍量:=V>=REF(V,1)*2 ;
價新高:=C>=HHV(C,FROMOPEN);
量新高:=V>=HHV(V,FROMOPEN);
限幅:=C/DYNAINFO(3)<=1.02;
起爆:=FILTER(量連增 AND 價連漲 AND 價量線上 AND 倍量 AND 價新高 AND 量新高 AND 限幅,20);
DRAWTEXT(起爆,C,起爆),COLOR00FFFF;
DRAWICON(起爆,C,1);
STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;
VV:=BARSSINCE(起爆);
起爆價:=REF(C,VV);
起爆時間:=REF(TIME/10000,VV);
收益:=(DYNAINFO(7)-起爆價)/起爆價*100;
DRAWICON(VV>=2,起爆價,13);
年:=YEAR,NODRAW;
月:=MONTH,NODRAW;
星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本週第幾天:=BARSLAST(ZB)+1;
本月第幾天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;
MA11:=REF(C,本週第幾天);
MA21:=REF(MA11,本週第幾天);
MA31:=REF(MA21,本週第幾天);
MA4:=REF(MA31,本週第幾天);
MA5:=REF(MA4,本週第幾天);
MA6:=REF(MA5,本週第幾天);
MA7:=REF(MA6,本週第幾天);
MA8:=REF(MA7,本週第幾天);
MA9:=REF(MA8,本週第幾天);
十週價:=(C+MA11+MA21+MA31+MA4+MA5+MA6+MA7+MA8+MA9)/10;
決策:REFDATE(十週價,DATE),COLORFF0080,LINETHICK2;
DRAWTEXT(ISLASTBAR,決策," 決策線"),COLORFF0080;