【“抄底追漲”指標(biāo)源碼】
【1】鎖籌:2*EMA(100-100*(WINNER((1.1)*CLOSE)-WINNER((0.9)*CLOSE)),1),COLORYELLOW;
【2】鎖籌均線:EMA(【1】鎖籌,9),COLORGREEN,LINETHICK2;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
【3】抄底追漲: (EMA(CS,3)-50)*2,COLORLIRED,LINETHICK1;
{乖離180:【1】鎖籌-【3】抄底追漲,COLORYELLOW,NODRAW;
180,COLORYELLOW,POINTDOT,LINETHICK2;
150,COLORYELLOW,POINTDOT,LINETHICK2;
100,COLORRED,POINTDOT,LINETHICK2;
30,COLORYELLOW,POINTDOT,LINETHICK2;}
-80,COLORRED,POINTDOT,LINETHICK2;
{布林}
布林:=HHV(HHV(L,14),60);
阻力區(qū):=EMA(EMA(布林,16)-2*STD(布林,16),3);
阻力區(qū)1:=EMA(EMA(布林,14)+2*STD(布林,14),18);
DRAWBAND(阻力區(qū),RGB(99,99,99),阻力區(qū)1,RGB(99,99,99));
{四線開花}
【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;
【3】:MA(CLOSE,120),COLORCYAN,LINETHICK3;
【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;
【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;
{神秘線}
V0:=VOL*(O+C+H+L)/4;
SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;
{量能平臺(tái)突破}
PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;
{N日漲幅}
N1:=BARSLAST(CROSS(C,MA(C,6)));
N2:=BARSLAST(CROSS(MA(C,6),C));
N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;
ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;
{三色K線}
STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;
STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;
STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCYAN;
STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;
STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;
{立樁量}
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW;
STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;
{漲跌停K線}
漲跌:=REF(C,1);
漲停:=IF((C-漲跌)*100/漲跌>=(10-0.01*100/漲跌),1,0);
STICKLINE(漲停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(漲停,H,L,0,0),COLORRED;
跌停:=IF((漲跌-C)*100/漲跌>=(10-0.01*100/漲跌),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;
{立樁量金箍}
STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;
STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;
STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;
STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;
STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44ffff;
MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;
MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;
{信號系統(tǒng)}
買入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);
買入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);
買入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);
買入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);
買入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);
買入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);
{買入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);
買入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);
買入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);
買入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);
買入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);}
關(guān)于【3號副圖】
也是一個(gè)大雜燴,源碼如下:
{虛擬成交量}
VAR1:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VAR1,1 , 2 , 1 ) , COLORWHITE ;
{彩色成交量柱線}
VOLUME:VOL,VOLSTICK;
{黃金地量}
地量:=VOL<LLV(VOL,14)*1.001;
STICKLINE(地量>0,0,V,2,0),COLORWHITE;
{立樁成立}
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
T12:=V2>=1;
T0:=BARSLAST(T12);
L1:=REF(L,T0);
H1:=REF(H,T0);
L11:=MIN(REF(L,1),L);
L10:=MIN(L11,REF(L,2));
L21:=MAX(REF(L,1),L);
L20:=MAX(L21,REF(L,2));
T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND
((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1) OR (L>H1));
T11:=T111 AND REF(T111,1)=0;
STICKLINE(V2>=1,0,VOL,1.5,0),COLOR44FFFF;
STICKLINE(T11,O,VOL,1.5,0),COLORLIRED;
{牛年奔牛}
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
牛:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;
{逃頂提示}
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
動(dòng)力線:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
{漲跌停}
C3:=REF(C,1);
漲停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
{頂背離與底背離}
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
頂背離:=CROSS(88,RSI);
底背離:=CROSS(FF,MA15);
STICKLINE(牛,0,VOL,1,0),COLORRED;
STICKLINE(動(dòng)力線>=3.2,0,VOL,0.5,0),COLOR238E23;
STICKLINE(漲停,V*0.8,VOL,4,0),COLORRED;
STICKLINE(跌停,VOL*0.8,VOL,4,0),COLORBLUE;
STICKLINE(頂背離,VOL*0.8,VOL,0.5,0),COLOR7F017F;
STICKLINE(底背離,0,VOL*0.2,0.5,0),COLOR7F017F;
STICKLINE(地量,0,V/3,6,0),COLOR003333;
STICKLINE(地量,0,V/3,5,0),COLOR116666;
STICKLINE(地量,0,V/3,4,0),COLOR229999;
STICKLINE(地量,0,V/3,3,0),COLOR33CCCC;
STICKLINE(地量,0,V/3,2,0),COLOR44FFFF;
{買賣盤比}
VAR0:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動(dòng)買盤:=IF(CLOSE>OPEN,VAR0*(HIGH-LOW),IF(CLOSE<OPEN,VAR0*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主動(dòng)賣盤:=IF(CLOSE>OPEN,0-VAR0*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR0*(HIGH-LOW),0-VOL/2));
買賣盤比:-(主動(dòng)買盤/主動(dòng)賣盤),COLORYELLOW;
換手率%: VOL/CAPITAL*100,COLORGREEN,NODRAW;
{三線開花}
【3】:MA(VOLUME,135),COLORBLUE,LINETHICK1;
【2】:MA(VOLUME,35),COLORCYAN,LINETHICK1;
【1】:MA(VOLUME,5),COLORWHITE,LINETHICK1;
買入1:DRAWICON(CROSS(【1】,【2】),V*0.1,5);
買入2:DRAWICON(CROSS(【1】,【3】),V*0.05,9);
買入3:DRAWICON(CROSS(【2】,【3】),V*0.01,135);
{拋物轉(zhuǎn)向}
拋物:MA((3*C+L+O+H)/6,3),,LINETHICK2,COLORBLUE;
持幣:IF((拋物<REF(拋物,1) OR C<REF(C,1)),拋物,DRAWNULL),LINETHICK2,COLORCYAN;
持股:IF((拋物>REF(拋物,1) OR C>REF(C,1)),拋物,DRAWNULL),LINETHICK2,COLORRED;
看看【2號副圖】
{量價(jià)均線}
TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),26);
TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),26);
TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),26);
【4】量價(jià):100*(TH*2+TQ)/(TL*2+TQ),COLORLIRED;
【5】量價(jià)均線:MA(【4】量價(jià),10),COLORRED,LINETHICK2;
量價(jià)乖離70%:((【4】量價(jià)-【5】量價(jià)均線)/【5】量價(jià)均線)*100,COLORYELLOW,NODRAW;
100,COLORRED,POINTDOT,LINETHICK2;
250,COLORRED,POINTDOT,LINETHICK2;
{趨勢預(yù)測}
【6】趨勢:C/MA(REF(C,18),18)*200,COLORLIBLUE;
【7】趨勢預(yù)測:MA(FORCAST(【6】趨勢,20),6),COLORBLUE,LINETHICK2;
趨勢乖離30%:((【6】趨勢-【7】趨勢預(yù)測)/【7】趨勢預(yù)測)*100,COLORYELLOW,NODRAW;
200,COLORBLUE,POINTDOT,LINETHICK2;
300,COLORBLUE,POINTDOT,LINETHICK2;