跳空率:(O-REF(C,1))/REF(C,1)*100,COLORMAGENTA,NODRAW;
今板:=DYNAINFO(3)*1.1,DOTLINE,COLORYELLOW,NODRAW;
轉折:=CROSS(ZIG(3,5),REF(ZIG(3,5),1));
反轉折:=CROSS(REF(ZIG(3,5),1),ZIG(3,5));
低1:=REF(LLV(L,150),3);
標底:=REFDATE(低1,DATE)*0.9;
突破:=REF(EMA(C,14),1),DOTLINE;
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),DOTLINE,COLORRED,LINETHICK1;
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),DOTLINE,COLORGREEN,LINETHICK1;
GZ:=(LOW+HIGH+CLOSE)/3;
五日:=EMA(GZ,5),COLORWHITE,LINETHICK1;
十日:=EMA(五日,10),COLORYELLOW,LINETHICK1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
DEA:=EMA(DIFF,9),NODRAW;
資金:=(DIFF-DEA)*4,NODRAW;
線角:=ATAN((C/REF(C,1)-1)*100)*180/3.1416,NODRAW;
乖1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+100;
乖2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100+100;
乖3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+100;
角1:=ATAN((乖1/REF(乖1,1)-1)*100)*180/3.1416,NODRAW;
角2:=ATAN((乖2/REF(乖2,1)-1)*100)*180/3.1416,NODRAW;
角3:=ATAN((乖3/REF(乖3,1)-1)*100)*180/3.1416,NODRAW;
乖離角:=角1>=70 AND 角2>=70 AND 角3>=70;
Q:=-100*(HHV(H,6)-C)/(HHV(HIGH,6)-LLV(L,6))+100,NODRAW;
Q上:=Q>=REF(Q,1);
Q下:=Q<REF(Q,1);
TJ01:=Q>=70;
BB:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水嶺:=IF(MA(CLOSE,17)<BB,BB,MA(CLOSE,17));
操作線:=分水嶺-(EMA(C,3)-分水嶺);
PM:=EMA(GZ,5);
TJ02:=操作線<=分水嶺 AND 操作線<=REF(操作線,1);
TJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買盤:=IF(CLOSE>OPEN,TJ*(HIGH-LOW),IF(CLOSE<OPEN,TJ*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
賣盤:=IF(CLOSE>OPEN,TJ*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,TJ*(HIGH-LOW),VOL/2));
正成交量比%:=買盤/VOL*100,COLORWHITE,NODRAW;
負成交量比%:=賣盤/VOL*100,COLORWHITE,NODRAW;
成交量比差:=(正成交量比%-負成交量比%),COLORWHITE,NODRAW;
量增:=成交量比差>=REF(成交量比差,1);
量減:=成交量比差<REF(成交量比差,1);
買增:=買盤>=REF(買盤,1);
賣減:=賣盤<=REF(賣盤,1);
增量:=正成交量比%>=70 ;
B1:=ZIG(3,5)*20;
B1紅:=B1>REF(B1,1);
漲幅:=(C-REF(C,1))/REF(C,1)*100,NODRAW;
漲幅度:(C-REF(多方,1))/REF(多方,1)*100,NODRAW;
剔跳空:=(O-REF(C,1))/REF(C,1)*100<=6;
N日均漲幅:(REF(C,1)-REF(C,2))/REF(C,2)*100,COLORYELLOW,NODRAW;
漲幅限:=N日均漲幅<=7.5;
昨漲幅:=REF(漲幅,1);
{條件}佛光乍現(xiàn):=線角>=70 AND 乖離角 AND TJ01 AND TJ02 AND 增量 AND 剔跳空 AND B1紅;
{ ·········································}
DRAWRECTREL(0,0,999,990,RGB(108,108,108));
DRAWRECTREL(0,0,999,100,RGB(90,0,0));
DRAWBAND(空方,RGB(18,18,68),突破,RGB(0,0,255));
DRAWBAND(突破,RGB(58,8,8),多方,RGB(0,0,255));
DRAWBAND(五日,RGB(250,98,0),十日,RGB(8,188,8));
STICKLINE(ISLASTBAR,DYNAINFO(3),DYNAINFO(3)*1.1,2.8,-1),COLORWHITE;
轉折線:=REF(L,BARSLAST(轉折)),CROSSDOT,COLORWHITE,LINETHICK2;
CCC:=STICKLINE(轉折,REFDATE(低1,DATE)*0.9,L,0.1,-1),COLORGREEN;
BBB:=STICKLINE(轉折線>REF(轉折線,1),REFDATE(低1,DATE)*0.9,L,0.1,-1),COLORRED;
DRAWKLINE(H,O,L,C);
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),H,L,0,0),COLOR0099FF;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,3.2,0),COLOR0000AA;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,2.7,0),COLOR0000DD;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,2.1,0),COLOR0022FF;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,1.5,0),COLOR0066FF;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,0.9,0),COLOR0099FF;
STICKLINE(佛光乍現(xiàn) AND C>=REF(C,1),C,O,0.3,0),COLOR00DDFF;
漲停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
DRAWICON(漲停,標底*1.02,24);
{ ·········································}
TJ11:=CROSS(分水嶺,操作線);
TJ12:=CROSS(PM,分水嶺);
TJ13:=(操作線<=REF(操作線,1) AND REF(操作線,1)>=REF(操作線,2) AND 操作線<=分水嶺);
預警點:IF(TJ11 OR TJ12 OR TJ13,標底*1.08,標底),COLORYELLOW,LINETHICK2,NODRAW;
界:分水嶺,COLORWHITE,LINETHICK2;
操作:操作線,COLORGREEN,LINETHICK2;
標底線:標底,COLORGREEN,LINETHICK2;
底線:=標底*0.5,COLORGREEN,LINETHICK2;
DRAWBAND(標底,RGB(58,58,98),底線,RGB(0,100,150));
DRAWBAND(標底+DIFF*2,RGB(155,50,50),標底+DEA*2,RGB(0,0,255));
IF(C,標底+DEA*2,DRAWNULL),COLORWHITE,LINETHICK1;
IF(C,標底+DIFF*2,DRAWNULL),COLORFFF000,LINETHICK1;
IF(DIFF>=REF(DIFF,1),標底+DIFF*2,DRAWNULL),COLORRED,LINETHICK2;
STICKLINE((標底+資金)>標底 AND (標底+資金)<=REF(標底+資金,1),標底,標底+資金,0.8,0),COLORLIBLUE;
STICKLINE((標底+資金)>標底 AND (標底+資金)>REF(標底+資金,1),標底,標底+資金,0.8,0),COLORYELLOW;
STICKLINE((標底+資金)<=標底 AND (標底+資金)<=REF(標底+資金,1),標底,標底+資金,0.8,0),COLORFF9900;
STICKLINE((標底+資金)<=標底 AND (標底+資金)>REF(標底+資金,1),標底,標底+資金,0.8,0),COLORCC66FF;
資金線:=標底+資金,DOTLINE,COLORWHITE,LINETHICK1;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1),COLORWHITE,LINETHICK2;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1),COLORYELLOW,LINETHICK2;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1),COLORMAGENTA,LINETHICK2;
RSI11:底線+RSI1*(標底-底線),COLORWHITE,LINETHICK2;
RSI22:底線+RSI2*(標底-底線),COLORYELLOW,LINETHICK2;
RSI33:底線+RSI3*(標底-底線),COLORMAGENTA,LINETHICK2;
IF(TJ11 OR TJ12,RSI11,DRAWNULL),POINTDOT,COLORWHITE,LINETHICK9;
IF(TJ11 OR TJ12,RSI11,DRAWNULL),POINTDOT,COLORRED,LINETHICK5;
DRAWICON(TJ13,RSI11,1);
IF(操作線<=REF(操作線,1) AND 操作線<=分水嶺,操作線,DRAWNULL),POINTDOT,COLORWHITE,LINETHICK9;
IF(操作線<=REF(操作線,1) AND 操作線<=分水嶺,操作線,DRAWNULL),POINTDOT,COLORRED,LINETHICK5;
{ ·········································}
DRAWRECTREL(0,100,260,400,RGB(18,8,8));
DRAWTEXT_FIX(1,0.01,0.01,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 買增 AND 賣減,0.17,0.12,1,'★'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND Q上,0.17,0.2,1,'Q↑'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND Q下,0.17,0.2,1,'Q↓'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND 量增,0.17,0.28,1,'量↑'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 量減,0.17,0.28,1,'量↓'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND 買增 AND 賣減 AND 買盤>賣盤,0.999,0.1,1,'★'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 買增 AND 賣減 AND 買盤>賣盤,0.999,0.2,1,'★'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 買增 AND 賣減 AND 買盤>賣盤,0.999,0.3,1,'★'),COLORYELLOW;
流通股本:=FINANCE(7)/100000000;
DRAWTEXT_FIX(ISLASTBAR,0.3,0.01,1,'流通股本:'),COLORWHITE;
DRAWNUMBER_FIX(ISLASTBAR,0.4,0.01,1,流通股本),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.01,1,'漲幅:'),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.65,0.01,1,漲幅),COLORWHITE;
DRAWNUMBER_FIX(ISLASTBAR,0.75,0.01,1,昨漲幅),COLORWHITE;
DRAWNUMBER_FIX(ISLASTBAR,0.1,0.12,1,INTPART(線角)),COLORWHITE;
DRAWNUMBER_FIX(ISLASTBAR,0.1,0.2,1,INTPART(REF(Q,1))),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.23,0.2,1,INTPART(Q)),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.1,0.28,1,INTPART(REF(成交量比差,1))),COLORWHITE;
DRAWNUMBER_FIX(ISLASTBAR,0.23,0.28,1,INTPART(成交量比差)),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.12,1,INTPART(角1)),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.2,1,INTPART(角2)),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.28,1,INTPART(角3)),COLORYELLOW;
|