可以更直观的看到主力的动向,有突破就上。
指标介绍:
出现信号后,等待突破买入。
主图
M5:=5;
M10:=10;
M22:=22;
M120:=120;
ZF:=(C-REF(C,1))/REF(C,1)*100;
EMA5:=EMA(C,M5),;
EMA10:=EMA(C,M10);
EMA22:=EMA(C,M22);
JFH:=EMA5>=EMA10 && EMA10>=EMA22;
FHW:=EMA22>=EMA10 && EMA10>=EMA5;
RSVK:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
XZQ:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
ZLL:=(EMA(XZQ,3)-50)*5,;
K1:=SMA(RSVK,10,1);
D1:=SMA(K1,5,1);
KK:=EMA(K1,2);
DD:=EMA(D1,2);
TFXXS:=KK+DD;
TGLXS:=(TFXXS-REF(TFXXS,1))*10;
TYCFX:=TFXXS+TGLXS;
XS2:=TGLXS>69;
XS3:=COUNT(ZLL>40,2)>0;
XS4:=XS2 AND XS3;
主力异动:=REF(XS4,1)=0 AND XS4 AND C>O;
主力异动1:=CROSS(主力异动,0.9);
STICKLINE(C,REF(C,BARSLAST(主力异动1)),REF(L,BARSLAST(主力异动1)),6,0),COLORC08080;
STICKLINE(C,REF(C,BARSLAST(主力异动)),REF(C,BARSLAST(主力异动)),4,1),COLORRED;
TT0:=BARSLAST(CURRBARSCOUNT=CONST(主力异动));
DRAWTEXT(TT0=0,REF(H,TT0)*1.003,VARCAT(VARCAT('牛线等突破 : ',VAR2STR(REF(H,TT0),2)),'元'))COLORWHITE;
EMA120:EMA(CLOSE,M120);
DRAWKLINE(H,O,L,C);
DRAWICON(CROSS(EMA5,EMA10),L,1);
DRAWICON(CROSS(EMA10,EMA5),H,2);
STICKLINE(JFH>REF(JFH,1),OPEN,CLOSE,2,0),COLOR4080FF;
STICKLINE(主力异动,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(ZF<-9.8,O,C,3,0),COLORGREEN;
STICKLINE(LOW >REF(HIGH,1),LOW,REF(HIGH,1),5,1),COLORRED;
STICKLINE(C<REF(C,1) AND REF(L,1)>H,REF(L,1),H,5,1),COLORMAGENTA;
DRAWTEXT(主力异动,EMA22,'主力异动'),COLORYELLOW,LINETHICK2;
VVAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VVAR2:=IF((EMA((C+L)/2,3)-VVAR1)*5>0,POW((EMA((C+L)/2,3)-VVAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VVAR1)*5,2)/10);
VVAR3:=IF(VVAR2>0,VVAR2-0,0);
STICKLINE(VVAR3>0 AND REF(VVAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),OPEN,CLOSE,2,0),COLORFF00FF;
高不破价:=REF(C,BARSLAST(主力异动));
低不破价:=REF(L,BARSLAST(主力异动));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(主力异动)<11 AND (LLV(L,BARSLAST(主力异动))>低不破价 OR LLV(L,BARSLAST(主力异动))=低不破价);
STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN;
STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED;
XGH:=CROSS(主力异动,0.9);
QF:=BACKSET(XGH=1,主力异动+1);
QFT:=BARSLAST(CROSS(QF=1,0.5));
NOTEXT:IF(QF=1,L,DRAWNULL),COLORGREEN;
STICKLINE(QFT>=0,REF(H,QFT),REF(H,QFT),4,-1),COLORYELLOW;
DRAWTEXT(QFT=0,H*1.03,VARCAT(VARCAT('异动价等突破:',VAR2STR(REF(H,QFT),2)),'元'))COLORYELLOW;
LLT:=LLVBARS(L,60);
LTLT:=BARSLAST(CURRBARSCOUNT=CONST(LLT)+1);
HGT:=FINDHIGHBARS(H,LLT+1,60,1);
牛线:DRAWLINE(CURRBARSCOUNT=CONST(HGT)+1,H,ISLASTBAR,REF(H,HGT),0),COLORFF80FF,LINETHICK2;
牛线1:DRAWLINE(CURRBARSCOUNT=CONST(HGT)+1,H,ISLASTBAR,REF(H,HGT),0),COLORYELLOW,LINETHICK4,POINTDOT;
TGT0:=BARSLAST(CURRBARSCOUNT=CONST(HGT)+1);
DRAWTEXT(TGT0=0,REF(H,TGT0)*1.003,VARCAT(VARCAT('牛等突破 : ',VAR2STR(REF(H,TGT0),2)),'元'))COLORWHITE;
副图1
UVAR1:=EMA(CLOSE,10);
UVAR2:=(UVAR1/LLV(UVAR1,10)-1)*100;
UVAR3:=(-1)*UVAR2;
UVAR4:=100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
UVAR5:=REF(CLOSE,1);
UVAR6:=SMA(MAX(CLOSE-UVAR5,0),9,1)/SMA(ABS(CLOSE-UVAR5),9,1)*100;
UVAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
UVAR8:=SMA(UVAR7,3,1);
UVAR9:=SMA(UVAR8,3,1);
UVAR10:=3*UVAR8-2*UVAR9;
UVAR11:=UVAR6 >=76 OR UVAR10 > 95;
UVAR12:=UVAR4 < 25;
UVAR13:=UVAR11 OR UVAR12;
UVAR14:=EMA(CLOSE,20);
UVAR15:=EMA(CLOSE,30);
UVAR16:=EMA(CLOSE,35);
UVAR17:=EMA(CLOSE,40);
UVAR18:=EMA(CLOSE,45);
UVAR19:=EMA(CLOSE,90);
UVAR20:=EMA(CLOSE,98);
UVAR21:=EMA(CLOSE,106);
UVAR22:=EMA(CLOSE,114);
UVAR23:=EMA(CLOSE,140);
UVAR24:=EMA(CLOSE,148);
UVAR25:=EMA(CLOSE,156);
UVAR26:=EMA(CLOSE,164);
UVAR27:=MAX(MAX(MAX(UVAR15,UVAR16),UVAR17),UVAR18);
UVAR28:=MIN(MIN(MIN(UVAR15,UVAR16),UVAR17),UVAR18);
UVAR29:=MAX(MAX(MAX(UVAR19,UVAR20),UVAR21),UVAR22);
UVAR30:=MIN(MIN(MIN(UVAR19,UVAR20),UVAR21),UVAR22);
UVAR31:=MAX(MAX(MAX(UVAR23,UVAR24),UVAR25),UVAR26);
UVAR32:=MIN(MIN(MIN(UVAR23,UVAR24),UVAR25),UVAR26);
UVAR33:=MAX(MAX(UVAR27,UVAR29),UVAR31);
UVAR34:=MIN(MIN(UVAR28,UVAR30),UVAR32);
UVAR35:=UVAR33/UVAR34;
UVAR36:=LOW/UVAR27;
UVAR37:=UVAR35 < 1.3 AND REF(UVAR36,1) < 1.05 AND CLOSE > UVAR14 AND CLOSE > UVAR33 AND UVAR36 < 1.08;
UVAR38:=AMOUNT/10000;
UVAR39:=LLV(UVAR38,2) > 2000 AND UVAR38 > 8000;
UVAR40:=CLOSE/REF(CLOSE,1);
UVAR41:=EMA(CLOSE,5);
UVAR42:=EMA(CLOSE,10);
UVAR43:=EMA(CLOSE,20);
UVAR44:=MAX(MAX(UVAR41,UVAR42),UVAR43);
UVAR45:=MIN(MIN(UVAR41,UVAR42),UVAR43);
UVAR46:=LOW < UVAR45 AND CLOSE > UVAR44 AND VOL > REF(VOL,1)*1.2 AND UVAR39 AND UVAR40 > 1.029 AND UVAR37;
UVAR47:=(HIGH+LOW+CLOSE)/3;
UVAR48:=(UVAR47-MA(UVAR47,81))*1000/(15*AVEDEV(UVAR47,81));
UVAR49:=CROSS(UVAR48,100) AND VOL > REF(VOL,1)*1.2 AND UVAR39 AND UVAR40 > 1.029 AND UVAR37;
UVAR50:=MA(CLOSE,30);
UVAR51:=MA(CLOSE,60);
UVAR52:=MA(CLOSE,90);
UVAR53:=MA(CLOSE,240);
UVAR54:=ABS(UVAR50/UVAR51-1);
UVAR55:=ABS(UVAR51/UVAR52-1);
UVAR56:=ABS(UVAR50/UVAR52-1);
UVAR57:=CLOSE/REF(CLOSE,1);
UVAR58:=UVAR57-1;
UVAR59:=(UVAR50+UVAR51+UVAR52)/3;
UVAR60:=IF(CLOSE > UVAR59*1.04 AND CLOSE < UVAR59*1.15,1,0);
UVAR61:=UVAR53/REF(UVAR53,20);
UVAR62:=ABS(UVAR61-1);
UVAR63:=IF(UVAR62 < 0.04,1,0);
UVAR64:=IF(UVAR54 < 0.04 AND UVAR55 < 0.04 AND UVAR56 < 0.04 AND UVAR58 > 0.04 AND UVAR60=1 AND UVAR63=1 AND UVAR59 > UVAR53,1,0);
UVAR65:=UVAR64 AND VOL > REF(VOL,1)*1.2 AND UVAR39 AND UVAR37;
UVAR66:=UVAR35 < 1.15 AND REF(UVAR36,1) < 1.04 AND CLOSE > UVAR14 AND CLOSE > UVAR33 AND UVAR36 < 1.08 AND UVAR40 > 1.04 AND VOL > REF(VOL,1)*1.2 AND UVAR39 AND UVAR37;
UVAR67:=LOW < UVAR34 AND CLOSE > UVAR33 AND UVAR40 > 1.05 AND VOL > REF(VOL,1)*1.2;
UVAR68:=UVAR46 OR UVAR49 OR UVAR65 OR UVAR66 OR UVAR67;
UVAR69:=(UVAR1/LLV(UVAR1,10)-1)*200;
UVAR70:=(UVAR1/LLV(UVAR1,10)-1)*400;
UVAR71:=IF(UVAR68,UVAR2,0);
异动价启动:IF(UVAR68,1,0),NODRAW;
STICKLINE(1,UVAR2*2,UVAR3*2,2,0),COLORGRAY;
STICKLINE(UVAR2*2 > REF(UVAR2*2,1),UVAR2*2,UVAR3*2,2,0),COLOR4080FF;
STICKLINE(UVAR2*2 > 20 AND UVAR2*2 > REF(UVAR2*2,1),UVAR2*2,UVAR3*2,2,0),COLORFF0080;
STICKLINE(UVAR13,UVAR2,UVAR3,2,0),COLORRED;
STICKLINE(NOT(UVAR13) AND UVAR2 > 0,UVAR2,UVAR3,2,1),COLORGREEN;
STICKLINE(UVAR68,UVAR2,UVAR2*4,1,0),COLORYELLOW;
STICKLINE(UVAR68,UVAR3,UVAR3*4,1,0),COLORYELLOW;
NOTEXT1A:IF(UVAR68,UVAR71*6,UVAR71*4),COLORMAGENTA,LINETHICK2;
NOTEXT2A:IF(UVAR68,(-1)*UVAR71*6,(-1)*UVAR71*4),COLORMAGENTA,LINETHICK2;
副图2选股一体
M5:=5;
M10:=10;
M22:=22;
M120:=120;
ZF:=(C-REF(C,1))/REF(C,1)*100;
EMA5:=EMA(C,M5),;
EMA10:=EMA(C,M10);
EMA22:=EMA(C,M22);
JFH:=EMA5>=EMA10 && EMA10>=EMA22;
FHW:=EMA22>=EMA10 && EMA10>=EMA5;
RSVK:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
XZQ:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
ZLL:=(EMA(XZQ,3)-50)*5,;
K1:=SMA(RSVK,10,1);
D1:=SMA(K1,5,1);
KK:=EMA(K1,2);
DD:=EMA(D1,2);
TFXXS:=KK+DD;
TGLXS:=(TFXXS-REF(TFXXS,1))*10;
TYCFX:=TFXXS+TGLXS;
XS2:=TGLXS>69;
XS3:=COUNT(ZLL>40,2)>0;
XS4:=XS2 AND XS3;
主力异动:REF(XS4,1)=0 AND XS4 AND C>O;