公式原始碼:
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC>1.88,MA(DDD,3),DDD);
平衡:ZZZ,COLORWHITE;
止贏:ZZZ*1.1,COLORYELLOW;
了結:ZZZ*1.05,COLORGRAY;
回檔:ZZZ*0.95,COLORGREEN;
反彈:ZZZ*0.9,COLORBLUE;
DRAWTEXT(C>=1.09*REF(C,1),C,'漲停'),COLORYELLOW;
MA1:(MA(C,3)+MA(C,5))/2,COLORBLUE;
MA2:=(MA(C,8)+MA(C,13))/2,COLORYELLOW;
SFF:=H/REF(H,1)<1 AND REF(H,1)/REF(H,2)<1 AND L/REF(L,1)>1 AND REF(L,1)/REF(L,2)>1 ;
DRAWTEXT(SFF,L*0.95,'大鯊魚:關注'),COLORYELLOW;
STICKLINE(平衡<REF(平衡,1) AND REF(平衡,1)<REF(平衡,2),平衡*1.002,平衡*0.998,3,0),COLORBLUE;
賣:DRAWTEXT(FILTER( H<=REF(H,1) AND C<REF(C,1) AND MA1<REF(MA1,1) AND H>平衡 AND 平衡<REF(平衡,1),4) OR
(H>了結 AND C<了結 AND C<O OR (H>平衡 AND C<平衡) AND C<O AND 平衡<REF(平衡,1)),H*1.01,'賣'),COLORGREEN;
買:DRAWTEXT(FILTER( C>REF(C,1) AND L>=REF(L,1) AND MA1>REF(MA1,1) AND L<平衡 AND 平衡>REF(平衡,1) OR
(L<回檔 AND C>回檔 AND C>O AND 平衡>REF(平衡,1) OR (L<平衡 AND C>平衡) AND C>O AND 平衡>REF(平衡,1)),5),L*0.99,'買'),COLORRED;
清倉:DRAWTEXT(H>止贏 AND C<止贏 AND C<O OR REF(C,1)>止贏 AND C<REF(C,1),止贏*0.99,'清倉'),COLORYELLOW;
滿倉:DRAWTEXT((REF(C,1)<反彈 OR L<反彈) AND C>反彈 AND C>O OR FILTER(REF(C,1)<反彈 AND C>REF(C,3),5),L*0.99,'滿倉'),COLORFF00FF;
選股:=(REF(C,1)<反彈 OR L<反彈) AND C>反彈 AND C>O;
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
DRAWICON(BU,LOW*0.98,1),,,COLORRED,LINETHICK3;
DRAWICON(SEL,HIGH*1.02,2),,,COLORGREEN,LINETHICK3;