多空 资金密码 机构利器
下三个指标是我自己用的结合起来看盘用的,是我同花顺改编而来,如果有需要同花顺的可以找我要同花顺版本的
指标结合了趋势和量能,还有短线的买卖入场,包括建仓时机
{机构利器}
超买:3.2,COLORYELLOW;
超卖:0.5,COLORYELLOW;
最小值:=LLV(LOW,10);
最大值:=HHV(HIGH,25);
波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4);
平均线:EMA(波动线,3);
信息:=平均线>=REF(平均线,1);
走强:=CLOSE>MA(CLOSE,20)AND CLOSE>MA(CLOSE,5);
走弱:=CLOSE<MA(CLOSE,10)AND CLOSE<MA(CLOSE,5);
量:=VOL>MA(VOL,5);
STICKLINE(平均线>=REF(平均线,1),波动线,REF(波动线,1),2,0),COLORRED;
STICKLINE(平均线<REF(平均线,1),波动线 ,REF(波动线,1),2,0),COLORGREEN;
D:=信息=1 AND REF(信息,1)=0 AND (REF(信息,2)+REF(信息,3)=0) AND 平均线<0.5;
S:=信息=1 AND REF(信息,1)=0 AND (REF(信息,2)+REF(信息,3)=0) AND 走强=1 AND REF(走强,1)=0 AND 量=1;
DD:=平均线>2 AND (信息=0 AND REF(信息,1)=1) AND (REF(信息,2)+REF(信息,3)=2);
TZ:=(信息=0 AND REF(信息,1)=1) AND (REF(信息,2)+REF(信息,3)=2) AND 走弱=1 AND 平均线>1;
DRAWTEXT(D=1,1.75,'极底'),COLORRED;
DRAWTEXT(S=1,平均线,'升');
DRAWTEXT(DD=1,平均线,'顶');
DRAWTEXT(TZ=1,平均线,'下');
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
ZCJL:=(RSI5 - WR10);
最佳买入:=(AV + ZCJL);
最佳买入选股:=IF(CROSS(最佳买入,0),1,0);
VAR5:=SMA(最佳买入选股,3,1);
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
建仓买点:=IF(CROSS(VAR6,VAR7) AND (VAR6<40),5,0);
DRAWTEXT(建仓买点,0.75,'建仓'),COLORRED;
VAR8:=REF(CLOSE,2);
会员:=SMA(MAX(CLOSE-VAR8,0),7,1)/SMA(ABS(CLOSE-VAR8),7,1)*100;
逃亡:=IF(会员< REF(会员,1) AND 会员>79,会员,0);
DRAWTEXT(逃亡,3.1,'逃'),COLORYELLOW;
DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C<REF(O,1)AND C/O>=1.01,1,'见底'),COLORLIRED;
DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),1,'绝底'),COLORRED;
VAR11:=REF(LOW,1);
VAR12:=SMA(ABS(LOW-VAR11),3,1)/SMA(MAX(LOW-VAR11,0),3,1)*100;
VAR13:=EMA(IF(CLOSE*1.2,VAR12*10,VAR12/10),3);
VAR14:=LLV(LOW,38);
VAR15:=HHV(VAR13,38);
VAR16:=IF(LLV(LOW,90),1,0);
VAR17:=EMA(IF(LOW<=VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16;
CDXS:=HHV(VAR17,0)/2.6;
STICKLINE(VAR17,0.53,VAR17/CDXS+0.53,1,0),COLORWHITE;
HUA:=(CLOSE - LLV(LOW,14)) / (HHV(HIGH,14) - LLV(LOW,14)) * 1.2 * CLOSE;
NV1:=EMA(HUA,4);
NV2:=EMA(HUA,8);
DRAWICON(CROSS(NV1,NV2) AND CLOSE/OPEN>1.05,0.5,1);
DRAWICON(CROSS(NV2,NV1) AND COUNT(CROSS(NV1,NV2) AND CLOSE/OPEN>1.05 ,20) ,3.2,2);
HUA2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),16,2)/SMA(ABS(CLOSE/REF(CLOSE,1)),16,2)*100;
XIAN:=SMA(HUA2,3,1);
NV3:=SMA(XIAN,3,1);
XINV:=3*XIAN-2*NV3;
买入条件:=CROSS(XINV,NV3);
卖出条件:=CROSS(NV3,XINV);
DRAWICON( 卖出条件,3.3,2),COLORYELLOW;
DRAWICON(买入条件,0.4,222),COLORWHITE;
HXN:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
DRAWTEXT(HXN>90 AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1) AND COUNT(HXN>90,30)=1,平均线-0.25, '见涨'),,COLORLIRED;
HXJZ:=MA((2*CLOSE+HIGH+LOW)/4,5);
BZTD:=HXJZ*89/100;
DRAWTEXT(CROSS(LOW,BZTD),1.25,'必涨'),COLORRED;
花:=EMA(SLOPE(1,1)+C,3),COLORRED;
女:=EMA(SLOPE(1,1)+C,7),COLORBLUE;
STICKLINE(花>女 ,0.5,0.53,12,0) ,COLORRED;
STICKLINE(花<=女 ,0.5,0.53,12,0),COLORGREEN;
RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相对强弱:=0.5*RSI1+0.31*RSI2+0.19*RSI3;
WAVE1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
WAVE2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
WAVE3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
短线波段:=0.5*WAVE1+0.31*WAVE2+0.19*WAVE3;
风险系数:=0.5*相对强弱+0.5*短线波段,COLORYELLOW;
CD1:=IF(风险系数<20 AND CLOSE>OPEN,1,0);
CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW ,1,0);
CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);
SIGNALBUY:=(CD1=1 OR CD2=1 OR CD3=1);
CD:=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1);
DRAWTEXT(CD,0.5,'抄底'),COLOR0099FF;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:=EMA(DIF,9);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,3);
DDR:=SMA(K,9,3);
GZ:=CROSS(DIF,DEA) AND CROSS(K,DDR);
DRAWTEXT(GZ,2,'金叉'),COLOR0099FF;
大单净差BBD:=LARGEINTRDVOL-LARGEOUTTRDVOL;
DIFF:=EMA(大单净差BBD,2) - EMA(大单净差BBD,4),COLORYELLOW;
DIFF2:=EMA(大单净差BBD,6) - EMA(大单净差BBD,12),COLORYELLOW;
M34:=MA(C,34);
M5:=MA(C,5);
R5:=COUNT(大单净差BBD>0,5);
R6:=COUNT(大单净差BBD>0,6);
A1:=IF(C<REF(C,2)*1.0200,1,0);
A2:=IF(C<REF(C,2)*1.0050,1,0);
A3:=IF(C<REF(C,2)*0.0985,1,0);
A4:=IF(C<REF(C,2)*0.0970,1,0);
A5:=IF(DIFF>0,2,0);
A6:=IF(DIFF2>0,2,0);
A7:=IF(C>M34,2,0);
A8:=IF(C>M5,2,0);
A9:=IF(R5>3,2,0);
A10:=IF(R6>3,1,0);
AZ:=A1+A2+A3+A4+A5+A6+A7+A8+A9+A10;
{资金密码}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,6);
STICKLINE(C>牛线,2.5,4,2,0),COLORLIRED,LINETHICK1;
STICKLINE(C<马线,2.5,4,2,0),COLORLIGREEN,LINETHICK1;
STICKLINE(牛线>=C AND C>=马线,2.5,4,2,0),COLORGREEN,LINETHICK1;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>=A,0.5,2,2,0),COLORLIRED,LINETHICK1;
STICKLINE(C<=B,0.5,2,2,0),COLORLIGREEN,LINETHICK1;
STICKLINE(A>=C AND C>=B,0.5,2,2,0),COLORGREEN,LINETHICK1;
R:=0;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C>E,-1.5,0,2,0),COLORLIRED,LINETHICK1;
STICKLINE(C<F,-1.5,0,2,0),COLORLIGREEN,LINETHICK1;
STICKLINE(E>=C AND C>=F,-1.5,0,2,0),COLORGREEN,LINETHICK1;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>J,-3.5,-2,2,0),COLORLIRED,LINETHICK1;
STICKLINE(C<K,-3.5,-2,2,0),COLORLIGREEN,LINETHICK1;
STICKLINE(J>=C AND C>=K,-3.5,-2,2,0),COLORGREEN,LINETHICK2;
MA5:=MA(C,5);
MA13:=MA(C,13);
MA21:=MA(C,21);
MA34:=MA(C,34);
MA55:=MA(C,55);
MA89:=MA(C,89);
MA144:=MA(C,144);
MA233:=MA(C,233);
TMP1:=IF(C>MA5,1,0);
TMP2:=IF(C>MA13,1,0);
TMP3:=IF(C>MA21,1,0);
TMP4:=IF(C>MA34,1,0);
TMP5:=IF(C>MA55,1,0);
TMP6:=IF(C>MA89,1,0);
TMP7:=IF(C>MA144,1,0);
TMP8:=IF(C>MA233,1,0);
强弱钝化线:TMP1+TMP2+TMP3+TMP4+TMP5+TMP6+TMP7+TMP8+-3.8,COLORYELLOW,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) *89.06);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),-4,'↖底'),COLORLIRED;
RSI1:=((SMA(MAX((CLOSE - (REF(CLOSE,1))),0),3,1) / SMA(ABS((CLOSE - (REF(CLOSE,1)))),3,1))*89.06);
DRAWTEXT(CROSS(88,RSI1) AND (MA(C,3))>(EMA(C,3)) ,4,'↙顶'),COLORGREEN;
AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
DRAWTEXT((B1 = 1),-4,'↖跟进'),COLORYELLOW;
DRAWTEXT((B2 = 1),-4,'↖加码'),COLORFFAAFF;
{多空}
强势线:80,DOTLINE,COLORLICYAN;
分水岭:50,DOTLINE,COLORLICYAN;
弱势线:20,DOTLINE,COLORLICYAN;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(RSV,3,1);
B:=SMA(A,3,1);
E:=3*A-2*B;
IF(A<0,0,A);
IF(A>100,100,A);
IF(B<0,0,B);
IF(B>100,100,B);
K:A,NODRAW;
D:B,NODRAW;
STICKLINE(K>=D,K,D,1.5,0), COLORMAGENTA;
STICKLINE(K<D,K,D,1.5,0), COLORGREEN;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
主力吸货:VAR7,COLORRED,NODRAW;
STICKLINE(主力吸货,50,80,0.02,0), COLORRED;
NVAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
NVAR2:=LLV(LOW,34);
NVAR3:=HHV(HIGH,34);
SK: EMA((NVAR1-NVAR2)/(NVAR3-NVAR2)*100,13),COLORYELLOW;
SD: EMA(SK,3),COLORLIBLUE;
DRAWTEXT(CROSS(SD,SK) AND SK>80,90,'大顶'),COLORYELLOW;