提示:在微信里搜索“股旁网”或者微信扫描右侧二维码。
M:=13;
M1:=84;
M2:=210;
N:=21;
攻击线:=WMA(C,6),LINETHICK1,COLOR000075;
防守线:EMA(C,13),LINETHICK1,COLOR8080FF;
操盘线:SMA(C,M,1),LINETHICK1,COLOR408080;
牛熊线:MA(C,M1),LINETHICK2,COLOR5E5E2F;
半年线:=SMA(C,M2,1),LINETHICK1,POINTDOT,COLOR0000FF;
年线:IF(CURRBARSCOUNT<=210,SMA(C,M2,1),DRAWNULL),POINTDOT,LINETHICK1,COLOR00FF00;
{大幅涨跌}
ZT:=C>REF(C,1)*1.092 {AND C<REF(C,1)*1.105};
DT:=C<REF(C,1)*0.901 AND C>REF(C,1)*0.898;
{涨停}
STICKLINE(ZT,C,O,2,0),COLOR0000C8;
{涨幅5点以上}
DZ5:=C>REF(C,1)*1.05 AND C<REF(C,1)*1.092;
STICKLINE(DZ5,C,O,0.1,0),COLOR00B3B3;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
A:=REF(HY_INDEXC,1);
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),COLOR00FFFF,NODRAW;
{cci}
TYP1:=(HY_INDEXH+HY_INDEXL+HY_INDEXC)/3;
行业:=(TYP1-MA(TYP1,N))*1000/(15*AVEDEV(TYP1,N));
行业慢:=SMA(行业,5,1),COLORC08000;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))*1000/(15*AVEDEV(TYP,N)),COLORC0C0C0;
CCI慢:=SMA(CCI,5,1),COLOR408080;
NOTEXT行业1:IF(行业>-50,牛熊线,DRAWNULL),LINETHICK2,COLOR0000B5;
NOTEXT行业2:IF(行业>-5,牛熊线,DRAWNULL),LINETHICK2,COLOR00AEAE;
NOTEXT个股1:IF(CCI>-50,操盘线,DRAWNULL),LINETHICK1,COLOR0000B5;
NOTEXT个股2:IF(CCI>-5,操盘线,DRAWNULL),LINETHICK1,COLORC600C6;
NOTEXT个股3:IF(CCI>-5 AND CCI> 行业,操盘线,DRAWNULL),LINETHICK1,COLOR00CECE;
{标注流向}
换手率:=(vol/CAPITAL*100);
XG91:=COST(91);
XG84:=COST(83);
XG63:=COST(63);
XG51:=COST(51);
XG27:=COST(27);
XG10:=COST(10);
XG11:=COST(10);
{图标}
XGCB1:=(C-COSTEX(C,3))/C*100*3;
XGCB2:=MA(XGCB1,7);
累计仓率:=(XGCB1-XGCB2);
净流入:=(XGCB1-REF(XGCB1,1));
净流入万元:=净流入*V*C/10000;
{强弱区分}
TPOL:=REF(HHV(净流入,63),1);
TPOL1:=crOSS(净流入,TPOL)AND C>MA(C,10);
TPOL2:=FILTER(TPOL1,5);
DRAWICON(TPOL2,L*0.99,23);
TPOG:=REF(HHV(净流入,120),1);
TPOG1:=CROSS(净流入,TPOG) AND C>EMA(C,16);
TPOG2:=FILTER(TPOG1,3);
DRAWICON(TPOG2,L*0.99,38);
{跨档涨势}
kdZX:=净流入>2.1;
DRAWTEXT(KDZX,O*0.99,'○'),COLOR008080;
KDZ511:=净流入>3;
DRAWTEXT(KDZ511,O*0.99,'○'),COLOR0000FF;
KDZ51:=净流入>5.1;
DRAWTEXT(KDZ51,O*0.99,'○'),COLOR00FFFF;
KDZ63:=净流入>8.1 OR (净流入>5 AND C<防守线);
DRAWTEXT(KDZ63,O*0.99,'●'),COLOR00B5B5;
KDZ631:=净流入>16;
DRAWTEXT(KDZ631,O*0.99,'●'),COLORB500B5;
{画线}
DDHM:=REF(LLV(L,180),1);
STICKLINE(ISLASTBAR,DDHM,DDHM,500,-1),COLOR717171;
DRAWTEXT(ISLASTBAR, DDHM, ' 底线'),COLOR717171;
DDHM1:=IF(C>DDHM*1.42,DRAWNULL,IF(C>DDHM,DDHM*1.07,DRAWNULL));
STICKLINE(ISLASTBAR,DDHM1,DDHM1,25,-1),COLOR717171;
{0.14}
DD114:=IF(C>DDHM*1.42,DRAWNULL,IF(C>DDHM,DDHM*1.14,DRAWNULL));
STICKLINE(ISLASTBAR,DD114,DD114,60,-1),COLOR717171;
DRAWTEXT(ISLASTBAR, DD114, ' 14%'),COLOR717171;
{kdj}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{天龙区}
天龙攻击:=EMA(WINNER(C)*100,3);
NOTEXT趋势线:=EMA(天龙攻击,22);
季线:=MA(天龙攻击,35);
{仓位}
仓位5日:=PPART(5)*100;
仓位13日:=PPART(13)*100;
仓位8日:=PPART(8)*100;
仓位37日:=PPART(37)*100;
仓位65日:=PPART(65)*100;
仓位120日:=PPART(120)*100;
仓位256日:=PPART(256)*100;
{龙头标识}
龙头:=(CROSS(天龙攻击,仓位256日) OR CROSS(天龙攻击,仓位120日) ) AND C>REF(C,1)*1.05;
龙头1:=(CROSS(天龙攻击,仓位37日 ) AND 仓位37日>50 OR CROSS(天龙攻击,仓位65日) AND 仓位65日>45) AND H>REF(C,1)*1.05;
龙头2:=FILTER(龙头 OR 龙头1 ,3);
DRAWTEXT(龙头2,H,'龙头'),COLOR00FFFF;
STICKLINE(龙头2,REF(C,1),REF(C,1)*1.03,2,0),COLOR00FFFF;
龙量:=天龙攻击-NOTEXT趋势线+50;
龙量比:=天龙攻击/REF(天龙攻击,1);
{高龙量}
筹峰1:=REF(HHV(龙量,20),1);
筹峰2:=CROSS(龙量,筹峰1);
筹峰3:=FILTER(筹峰2,5);
DRAWTEXT(筹峰3,O*0.97,'△'),COLOR00FFFF;
筹峰4:=REF(HHV(龙量,63),1);
筹峰5:=CROSS(龙量,筹峰4);
筹峰6:=FILTER(筹峰5,3);
DRAWTEXT(筹峰6,O*0.97,'△'),COLOR00FFFF;
筹峰7:=REF(HHV(龙量,104),1);
筹峰8:=CROSS(龙量,筹峰7);
筹峰9:=FILTER(筹峰8,3);
DRAWTEXT(筹峰9,O*0.97,'▲'),COLOR00FFFF;
{龙量强弱}
主力:=IF(((天龙攻击/REF(天龙攻击,1))*1.4)>6,6,((天龙攻击/REF(天龙攻击,1))*1.4)),COLOR00FFFF,NODRAW;
LPOX:=REF(HHV(主力,30),1);
LPOX1:=CROSS(主力,LPOX);
LPOX2:=FILTER(LPOX1,3);
LPOL:=REF(HHV(主力,63),1);
LPOL1:=CROSS(主力,LPOL)AND C>MA(C,5);
LPOL2:=FILTER(LPOL1,5);
LPOG:=REF(HHV(主力,120),1);
LPOG1:=CROSS(主力,LPOG) AND C>EMA(C,5);
LPOG2:=FILTER(LPOG1,3);
{新低}
TLL:=REF(LLV(主力,63),1);
TLL1:=CROSS(TLL,主力);
TLL2:=FILTER(TLL1,3);
散户量:=((天龙攻击-REF(天龙攻击,7))/天龙攻击),COLOR00FF00,NODRAW;
散户:=IF(散户量<-4,-4,散户量)*0.5-1.4;
{价幅}
神龙线:=(C-REF(C,5))/REF(C,5)*10,;
神龙慢线:=EMA(神龙线,7);
POL:=REF(HHV(神龙线,63),1);
POL1:=CROSS(神龙线,POL);
POL2:=FILTER(POL1,5);
POG:=REF(HHV(神龙线,120),1);
POG1:=CROSS(神龙线,POG);
POG2:=FILTER(POG1,5);
{新低}
LL:=REF(LLV(神龙线,42),1);
LL1:=CROSS(LL,神龙线);
LL2:=FILTER(LL1,5);
LL0:=REF(LLV(神龙线,120),1);
LL11:=CROSS(LL0,神龙线);
LL12:=FILTER(LL11,5);
{选股};
{多头形态}
多头:=((REF(COUNT(LL11,30)>=1,1) OR REF(COUNT(LL1,30)>=1,1))) AND REF(COUNT(CROSS(神龙线,0),30)>=1,1);
多头1:=REF(COUNT(CROSS(-1.38,神龙线),20)>=1,1) AND REF(COUNT(TLL1,30)>=1,1) AND REF(COUNT(CROSS(-6.5,散户),25)>=1,1);
多头2:=REF(COUNT(主力>1.6,20)>=1,1) AND REF(仓位5日>75,1) AND REF(天龙攻击<21,1) AND REF(J<63,1);
多头3:=CROSS(神龙线,0) AND 主力>1.61 AND 散户>-3.6;
多头4:=多头 AND 多头1 AND 多头2 AND 多头3;
多头5:=FILTER(多头4,5);
DRAWTEXT(多头5,L*0.98,'←预警'),COLOR00FF00;
{多头预警2}
多头6:=REF(季线,1)>46 AND ((REF(COUNT(LL11,30)>=1,1) OR REF(COUNT(LL1,30)>=1,1) OR REF(COUNT(TLL1,30)>=1,1)) AND REF(COUNT(CROSS(神龙线,0),10)>=1,1) );
多头7:=(LPOX2 OR LPOL2 OR LPOG2) AND 主力>1.8 AND 多头6;
多头8:=FILTER(多头7,5);
DRAWTEXT(多头8,L*0.98,'←预警2'),COLOR00FF00;
{预警确认}
确认:=REF(COUNT(多头4,5)>=1,1) AND ( LPOX1 OR LPOL1 OR LPOG1) ;
确认1:=REF(COUNT(多头4,5)>=1,1) AND CROSS(主力,3.5)OR REF(COUNT(多头4,5)>=1,1) AND CROSS(神龙线,1.4);
确认2:=REF(COUNT(多头5,63)>=1,1) AND CROSS(主力,5.5);
确认3:=IF(确认,确认,确认1 OR 确认2 );
确认4:=FILTER(确认3,5);
DRAWTEXT(确认4,L*0.98,'←启爆'),COLOR00FFFF;
{强势狙击}
强势:=多头 AND REF(COUNT(CROSS(-1.38,神龙线),20)>=1,1) AND REF(仓位5日>75,1);
强势1:=REF(COUNT(POL1,30)>=1,1) OR REF(COUNT(POG1,30)>=1,1) OR REF(COUNT(LPOX1,30)>=1,1)
OR REF(COUNT( LPOL1,30)>=1,1) OR REF(COUNT(LPOG1,30)>=1,1) ;
强势2:=REF(COUNT(CROSS(42,天龙攻击),30)>=1,1) AND 主力>1.9;
强势X1:=(LPOX1 OR LPOL1 OR LPOG1) AND 强势 AND 强势1 AND 强势2 ;
强势X2:=(CROSS(主力,4.5) AND 强势 AND 强势1) OR( CROSS(主力,3) AND 强势 AND 强势1 AND 强势2 );
强势X3:=强势X1 OR 强势X2;
强势X4:=FILTER(强势X3,5);
DRAWTEXT(强势X4,L*0.97,'←狙击'),COLOR00FFFF;
{天龙选股}
龙DT:=龙量比>7 AND 净流入>20 AND REF(COUNT(CROSS(-1.38,神龙线),20)>=1,1);
DRAWTEXT(龙DT,3.5,'←强行建仓'),COLOR00FF00;
龙FLZ:=龙量比>1.7 AND 净流入>5 AND 主力>2.5 AND REF(COUNT(TLL2,20)>=1,1);
龙FLZ1:= CROSS(天龙攻击,42) AND 龙FLZ;
DRAWTEXT(龙FLZ1,L*0.99,'←起涨'),COLOR00FF00;
启爆Z:=REF(COUNT(CROSS(仓位13日,天龙攻击),9)>=1,1) AND 仓位13日>50 AND REF(LLV(仓位13日,9)>45,1);
启爆Z1:=CROSS(天龙攻击,仓位13日) AND 启爆Z AND 季线>48;
启爆Z2:=FILTER(启爆Z1,3);
DRAWTEXT(启爆Z2,L*0.99,'←神龙'),COLOR00FFFF;
放量起涨:=REF(COUNT(CROSS(50,天龙攻击),13)>=1,1) AND 仓位13日>46;
放量:=CROSS(天龙攻击,50) AND 放量起涨 AND 龙量比>1.5 AND 净流入>5 AND 主力>2.0;
DRAWTEXT(放量,L,'←放量'),COLOR00FFFF;
龙回头:=REF(COUNT(CROSS(仓位5日,天龙攻击),18)>=1,1) AND 仓位5日>70;
龙回头1:=CROSS(天龙攻击,50) AND 龙回头;
龙回头2:=FILTER(龙回头1,3);
DRAWTEXT(龙回头2,L*0.97,'←龙回头'),COLOR00FF00;
底部起涨:=操盘线>牛熊线 AND 攻击线> 牛熊线;
底部起涨1:=季线>50 AND REF(COUNT(CROSS(仓位5日,天龙攻击),63)>=1,1) AND 仓位5日>63 AND 天龙攻击< 仓位13日;
底部起涨2:=( LPOX1 OR LPOL1 OR LPOG1) AND 底部起涨 AND 底部起涨1;
底部起涨3:=FILTER(底部起涨2,5);
DRAWTEXT(底部起涨3,L*0.98,'←主升'),COLOR00FFFF;
{画横线};
ZT1:=C/REF(C,1)>1.095 AND C=H;{10%涨停}
ZT2:=C/REF(C,1)>1.19 AND C=H;{20%涨停}
CYB:=CODELIKE('30');{创业板股票}
KCB:=CODELIKE('68');{科创板股票}
ZTT:=IF(CYB OR KCB, ZT2, ZT1),NODRAW;{如果是创业板、科创板股票,20%涨停,否则10%涨停}
DJB:=BARSLASTCOUNT(C/REF(C,1)>1.096);
AAA:=(3*C+H+L+O)/6;
GUP1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
GUP2:=(HHV(GUP1,2)+HHV(GUP1,4)+HHV(GUP1,8))/3;
GUP3:=(HHV(GUP2,2)+HHV(GUP2,4)+HHV(GUP2,8))/3;
起涨点:=CROSS(C,GUP3) AND ZTT;
DRAWTEXT(起涨点,L,'LIVEMORE'),COLORYELLOW;
ZDZT:=C=H AND C>=ZTPRICE(REF(C,1),IF(CODELIKE('60') OR CODELIKE('00'),0.1,IF(CODELIKE('30') OR CODELIKE('68'),0.2,10)));
ZDN1:=BARSLAST(DATE=1240205);
ZDN2:=BARSLAST(DATE=1240412);
ZDN3:=BARSLAST(DATE=1240220);
ZDT1:=HHV(C,ZDN2)<REF(HHV(H,ZDN1),ZDN2) AND LLV(L,ZDN2)>REF(LLV(L,ZDN1),ZDN2);
ZDT2:=NOT(REF(ZDZT AND H=L AND C=O,1)) AND NOT(REF(EVERY(ZDZT,2),1));
ZD突破:=C>=REF(HHV(H,ZDN1),ZDN2) AND REF(ZDT1,1) AND ZDT2;
STICKLINE(DATE>=1240218,REF(LLV(L,10),ZDN3),REF(LLV(L,10),ZDN3),2,0),COLORRED;
STICKLINE(DATE>=1240412,REF(HHV(H,ZDN1),ZDN2),REF(HHV(H,ZDN1),ZDN2),6,0),COLORYELLOW;
ZDN4:=BARSLAST(FILTERX(H=HHV(H,ZDN1),40) AND DATE<1240412);
DRAWICON(ZD突破,L,1);
DRAWSL(DATE=1240412,REF(HHV(H,ZDN1),ZDN2),0,HHVBARS(H,ZDN1),1),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=5,REF(HHV(H,ZDN1),ZDN2),REF(HHV(H,ZDN1),ZDN2)),COLORRED;
MA5:=MA(CLOSE,5);
MA20:=MA(CLOSE,20);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);macd1:=(DIF-DEA)*2;
RSVX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KX:=SMA(RSVX,3,1);
DX:=SMA(KX,3,1);
JX:=3*KX-2*DX;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/MTR;
mdi:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
roc:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
MAROC:=MA(ROC,6);
AA:=ROC>MAROC AND PDI>ADXR AND PDI>ADX AND PDI>MDI AND KX>DX AND DIF>DEA AND C>REF(C,1) AND REF(H,1)>REF(C,2);
DRAWTEXT(AA AND CROSS(MA5,MA20) AND MA20>=REF(MA20,1),L*0.9,'低位降妖'),COLORRED;
F:=(C-REF(C,1))/REF(C,1)*100;
ZTB:=C/REF(C,1)>=1.098 AND C=H;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
HZ:=VAR5>REF(VAR5,1);
LZ:=VAR5< REF(VAR5,1);
洗:=COUNT(LZ,2)=2 AND COUNT(HZ,2)=0 AND C=LLV(C,3) AND L=LLV(L,3) AND C!=L AND C< O AND C< REF(LLV(L,3),1);
涨停回踩:=洗 AND COUNT(ZTB,13)=1,COLORYELLOW;
DRAWTEXT(涨停回踩,LOW*0.975,'回踩'),COLORYELLOW;
捉牛突破1:=SMA(H,21,2)*1.05;
捉牛突破2:= O>REF(C,1);
捉牛突破3:= C>=REF(C,1)*1.08;
捉牛突破4:= 捉牛突破1 AND 捉牛突破2 AND 捉牛突破3;
捉牛突破5:=(C-MA(C,30))/MA(C,30)*100;
捉牛突破6:=CROSS(0,(C-MA(C,5))/MA(C,5)*100);
捉牛突破7:=MA(C,10)>REF(MA(C,10),1);
捉牛突破8:=捉牛突破6 AND 捉牛突破5 AND 捉牛突破7;
捉牛突破9:=FILTER(捉牛突破8,10);
捉牛突破10:=REF(MA(C,13),13/2+1);
捉牛突破11:=CROSS(SMA(C,2,1),SMA(LOW,5,1));
捉牛突破12:=SMA(H,21,2)*1.05*1.05;
捉牛突破13:=IF(捉牛突破11,捉牛突破12,SMA(LOW,5,1));
捉牛突破14:=CROSS(SMA(C,2,1),捉牛突破1);
捉牛突破15:=IF(捉牛突破14,SMA(H,21,2)*1.05*1.1,SMA(LOW,21,2)*0.95);
捉牛突破16:=捉牛突破13>SMA(LOW,5,1) AND CROSS(C,捉牛突破10) AND VOL>0;
捉牛突破17:=REF(H/OPEN< 1.02,1) AND REF(C< OPEN,1);
神牛股:=捉牛突破15>SMA(LOW,21,2)*0.95 OR 捉牛突破16 AND 捉牛突破17;
DIFS:=EMA(C,12)-EMA(C,26);
DEAS:=EMA(DIFS,9);
MACDS:=(DIFS-DEAS)*2;
XG6:=MACDS>0;
主力突破1:=VOL/REF(VOL,1);
主力突破2:=REF(C,1)/REF(C,8);
主力突破3:=HHV(REF(C,1),12)/LLV(REF(C,1),12);
主力突破4:=主力突破1>=2.70 AND C>REF(C,1);
主力突破5:=COUNT(REF(C/OPEN>=1.095,1),8)< 1;
主力突破6:=主力突破3<=1.10 AND C/OPEN>=1 AND 主力突破2>=0.9;
主力突破8:=COUNT(REF(C/OPEN>=1.04,1),8)< 1;
主力突破9:=COUNT(REF(C/OPEN<=0.95,1),8)< 1;
HSL:=V/CAPITAL*100>5 ;
神牛1号:=主力突破8 AND 主力突破9 AND HSL AND 主力突破4 AND 主力突破5 AND 主力突破6 AND XG6;
DRAWTEXT(神牛1号,H*1.0222,'一号'),COLORGREEN;