以下是通达信主力资金动向指标源码
通达信主力资金动向指标源码:
80,colorred;
20,coloryellow;
短波:(c-llv(l,11))/(hhv(h,11)-llv(l,11))*100,Color00FFFF,linethick1;
Var1:=HHV(HIGH,9)-LLV(LOW,9);
Var2:=HHV(HIGH,9)-CLOSE;
Var3:=CLOSE-LLV(LOW,9);
Var4:=Var2/Var1*100-70;
Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var6:=(2*CLOSE+HIGH+LOW)/4;
Var7:=SMA(Var3/Var1*100,3,1);
Var8:=LLV(LOW,34);
Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);
VarA:=IF(Var9>100,Var9-100,0);
VarB:=HHV(HIGH,34);
VarC:=EMA((Var6-Var8)/(VarB-Var8)*100,13);
VarD:=EMA(0.667*REF(VarC,1)+0.333*VarC,2);
VarD,colorred;
百万牛:STICKLINE(VarC-VarD>0,VarC,VarD,8,0),colorred;
百万熊:STICKLINE(VarC-VarD<0,VarC,VarD,8,0),colorgreen;
差值:(VarC-VarD)*5,colorgreen;
STICKLINE(差值>=0,0,差值,4,0),coloryellow;
STICKLINE(差值>=0,0,差值*0.8,4,0),colorff9900;
STICKLINE(差值>=0,0,差值*0.6,4,0),colorffcc00;
STICKLINE(差值>=0,0,差值*0.4,4,0),colorffcccc;
STICKLINE(差值>=0,0,差值*0.2,4,0),colorffccff;
STICKLINE(差值<=0,0,差值*1,4,0),color00ff00;
STICKLINE(差值<=0,0,差值*0.8,4,0),color00cc00;
STICKLINE(差值<=0,0,差值*0.6,4,0),color009900;
STICKLINE(差值<=0,0,差值*0.4,4,0),color006600;
STICKLINE(差值<=0,0,差值*0.2,4,0);
aa:=WINNER(CLOSE+CLOSE*15/100)*100;
bb:=WINNER(CLOSE+CLOSE*0/100)*100;
cc:=aa-bb;
dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
ee:=cc<3anddd<0.5andOPEN<>LOW;
a1:=DYNAINFO(6);
a2:=IF(LOW>a1,0,IF(HIGH0ora2=1;
a8:=a7anda3/REF(a3,3)>=3anda6<80;
a9:=REF(a8,1)orREF(a8,2)orREF(a8,3)orREF(a8,4);
a10:=a8anda9;
a11:=IF(FILTER(a8,3),5,0);
a12:=IF(FILTER(a10,3)oree,10,0);
资金进场日:IF(a11,50,0),LINETHICK0;
STICKLINE(a12,0,50,5,0),colorff00ff;
资金加仓日:IF(a12,88,0),LINETHICK0;
STICKLINE(a12,0,250,5,0),colorff00ff;
STICKLINE(a11,0,5,5,0),colorff7700;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
200;
100;
0;
-100;
-200;
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
ZZLJJ:=EMA(ZZLKP,89);
ZJLRQD:=ZZLKP-ZZLJJ;
AA:=EMA(ZJLRQD,3);
BB:=EMA(AA,5);
CC:=AA-BB;
STICKLINE(CC<REF(CC,2),CC,0,1,1),COLOR00FF00;
STICKLINE(CC>REF(CC,2),CC,0,1,1),COLORRED;
资金进场:IF(CROSS(AA,BB),3,0),STICK,LINETHICK3,COLORFF00FF;
资金出场:IF(CROSS(BB,AA),-3,0),STICK,LINETHICK3,COLOR00FF00;
DRAWICON(资金进场>0,4,1);
DRAWICON(资金出场<0,-4,2);
A4:=MA(CLOSE,20);DRAWTEXTREL(2,980.5,’底部区域:’+NUMTOSTR(COST(0.33))),Color0000FF;
DRAWTEXTREL(128,980.5,’安全区域:’+NUMTOSTR(COST(5))),Colorff00FF;
DRAWTEXTREL(2,930.5,’投机区域:’+NUMTOSTR(COST(15))),Color00DDFF;
DRAWTEXTREL(128,930.5,’风险区域:’+NUMTOSTR(COST(55))),COLOR00FF00;
A5:=(CLOSE>MA(CLOSE,5));DRAWTEXTREL(310,50,’放量下跌要减仓’),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(310,110,’缩量下跌是底像’),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(310,170,’增量回升是关键’),LINETHICK3,COLORYELLOW;
DRAWTEXTREL(310,230,’回头确认要进场’),LINETHICK3,COLORYELLOW;
A6:=(MA(CLOSE,5)>MA(CLOSE,10));DRAWTEXTREL(500,80,’千股千评:’+SELFSTRING(‘千股千评’)),colorYellow,LINETHICK2;
A7:=(CLOSE>MA(CLOSE,10));
A8:=(MA(CLOSE,5)>MA(CLOSE,20));
A9:=(CLOSE>MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4>A10);
AVX:=(((((IF(A5,10,(0-10))+IF(A6,10,(0-10)))+IF(A7,10,(0-10)))+IF(A8,10,(0-10)))+IF(A9,10,(0-10)))+IF(A11,10,(0-10)));
DSLX:=(CLOSE/INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);
mc:=REF(c,1);
阻力位:=IF((CLOSE>200),(CLOSE*1.01),(CLOSE*1.07));
阻力位1:=IF((CLOSE<10),(CLOSE*1.05),阻力位);
止损位:=IF((CLOSE>200),(CLOSE*0.99),(CLOSE*0.93));
止损位1:=IF((CLOSE<10),(CLOSE*0.95),止损位);
阻力位a:=IF((mc>200),(mc*1.01),(mc*1.07));
阻力位2:=IF((mc<10),(mc*1.05),阻力位a);
止损位b:=IF((mc>200),(mc*0.99),(mc*0.93));
止损位2:=IF((mc<10),(mc*0.95),止损位b);
TJTS1:=BARSTATUS=2andc<200;
TJTS2:=BARSTATUS=2andc>200;
DRAWTEXTABS(58,95,'[昨/今日止损位:’+NUMTOSTRn(止损位b,2)+’/’+NUMTOSTRn(止损位1,2)+’**]’),LINETHICK1,COLOR00FF00;
DRAWTEXTABS(58,125,'[昨/今日阻力位:’+NUMTOSTRn(阻力位2,2)+’/’+NUMTOSTRn(阻力位1,2)+’]’),LINETHICK1,colorFEBAF5;
PT:=REF(HIGH,1)-REF(LOW,1);
重心:=(HIGH+LOW+CLOSE)/3;
压力Ⅰ:=2*重心-LOW;
压力Ⅱ:=重心+PT;
支撑Ⅰ:=2*重心-HIGH;
支撑Ⅱ:=重心-PT;
DRAWTEXTABS(75,8,’《世旗操作》’),ColorFFFF00;
DRAWTEXTABS(150,8,’重心:’+重心),Color208FFF;
DRAWTEXTABS(75,27,’支撑’),ColorFFFFFF;
DRAWTEXTABS(75,44,”+支撑Ⅰ),ColorFFFFFF;
DRAWTEXTABS(75,62,”+支撑Ⅱ),ColorFFFFFF;
DRAWTEXTABS(75,27,’压力’),Color00FF00;
DRAWTEXTABS(75,44,”+压力Ⅰ),Color00FF00;
DRAWTEXTABS(75,62,”+压力Ⅱ),Color00FF00;
DRAWTEXTABS(75,5,’│’),Color00FFFF;
DRAWTEXTABS(75,17,’│’),Color00FFFF;
DRAWTEXTABS(75,29,’│’),Color00FFFF;
DRAWTEXTABS(75,41,’│’),Color00FFFF;
DRAWTEXTABS(75,53,’│’),Color00FFFF;
DRAWTEXTABS(75,65,’│’),Color00FFFF;
DRAWTEXTABS(218,5,’│’),Color00FFFF;
DRAWTEXTABS(218,17,’│’),Color00FFFF;
DRAWTEXTABS(218,29,’│’),Color00FFFF;
DRAWTEXTABS(218,41,’│’),Color00FFFF;
DRAWTEXTABS(218,53,’│’),Color00FFFF;
DRAWTEXTABS(218,65,’│’),Color00FFFF;
DRAWTEXTABS(146,25,’│’),Color00FFFF;
DRAWTEXTABS(146,29,’│’),Color00FFFF;
DRAWTEXTABS(146,41,’│’),Color00FFFF;
DRAWTEXTABS(146,53,’│’),Color00FFFF;
DRAWTEXTABS(146,65,’│’),Color00FFFF;
DRAWTEXTABS(80,0,’────────────’),Color00FFFF;
DRAWTEXTABS(80,20,’────────────’),Color00FFFF;
DRAWTEXTABS(80,37,’────────────’),Color00FFFF;
DRAWTEXTABS(80,54,’────────────’),Color00FFFF;
DRAWTEXTABS(80,71,’────────────’),Color00FFFF;
趋势1:EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),COLOR0000FF;
趋势2:EMA(REF(趋势1,1),3),COLOR00FFFF;
趋势3:EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),COLORFF0000;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VAR21:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
大顶:=FILTER(VAR21>20ANDFILTER(VAR21<REF(VAR21,1),5),5);
VAR1Q:=(OPEN+LOW+HIGH+CLOSE)/4;
MAN:=SMA(HIGH,21,2)*1.05;
短底2:=EMA(VAR1Q,5);
支撑:=HHV(短底2,60);
VAR4M:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR5M:=SMA(VAR4M,5,1);
VAR6M:=SMA(VAR5M,8,1);
VAR7M:=CROSS(VAR5M,VAR6M)ANDVAR6M<5;
VAR8M:=CLOSE>(LLV(CLOSE,60)+0.3*LLV(CLOSE,60))ANDVAR7M;
VAR9M:=IF(CLOSE>1000,VAR7M,VAR8M);
黑马起步:=VAR9M;
短期底部:=LLV(HIGH,30)*0.93;
逃:=FILTER((HIGH>支撑)AND(CLOSE<支撑)ANDCLOSE/OPEN>(0-1.06)ANDCLOSE<OPEN,5);
逃命:=黑马起步>0;
选逃:=FILTER(逃命OR逃ORCROSS(84,RSI)OR大顶,3);
STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLOR0000FF;
STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),COLOR0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000EE;
STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORBBBB00;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORCCCC00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLOREEEE00;
STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00;
DRAWTEXT(选逃,HIGH*1.03,’逃’),COLOR00FFFF;
DRAWTEXT(BU,LOW*0.996,’世旗买’),COLOR0000FF;
DRAWTEXT(SEL,HIGH*1.02,’世旗卖’),COLOR00FFFF;
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),5);
主力进场:=FILTER(VAR5>REF(VAR5,1),5);
DRAWTEXT(FILTER(VAR5>REF(VAR5,1),5),LOW*0.995,’↑’),COLORFF0000;
DRAWTEXT(FILTER(VAR5>REF(VAR5,1),5),LOW*0.96,’主力’),COLORFF0000;
STICKLINE(FILTER(VAR5>REF(VAR5,1),5),CLOSE,OPEN,5,0),COLORFF0000;
STICKLINE(FILTER(VAR5>REF(VAR5,1),5),LOW,HIGH,1,0),COLORFF0000;
指數位置:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
抄底:=CROSS(指數位置,10);
STICKLINE(CROSS(买线,卖线)ORCROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;
STICKLINE(BU,MAX(CLOSE,OPEN)*0.995,MIN(CLOSE,OPEN)*1.005,2.5,0),COLOR0000FF;
VAR6:=REF(CLOSE,1);
VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;
VAR8:=LLV(LOW,5)=LLV(LOW,45)ANDCLOSE>=OPEN*1.04;
VAR9:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR10:=VAR8ANDVAR9;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=LLV(LOW,13);
VAR13:=HHV(HIGH,13);
VAR14:=LLV(LOW,1)=LLV(LOW,35)ANDCLOSE>=OPEN*1.04;
VAR15:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR16:=EMA((VAR11-VAR12)/(VAR13-VAR12)*100,13);
VARA:=EMA(0.667*REF(VAR16,1)+0.333*VAR16,2);
多:=VAR16;
空:=EMA(0.382*REF(VAR16,2)+0.618*VAR16,12);
A1:=VOL=HHV(VOL,120);
A2:=CLOSE/OPEN>1.05;
TJ:=A1ANDA2;
龙:=VAR10;
买4:=VAR14;
AA1:=AMOUNT/VOL;
BB1:=LOW<AA1*0.9;
CC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
DD1:=LOW<MA(CLOSE,5)*0.921;
EE1:=VOL<MA(VOL,5)*1.5;
FF1:=BB1ANDCC1ANDDD1ANDEE1;
买3:=FILTER(FF1,3);
二十天最低跌幅:=HHV(CLOSE,20)/LLV(CLOSE,20);
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;
X:=LLV(J,2)=LLV(J,8);
买1:=CROSS(J,REF(J+0.01,1))ANDXANDJ<20AND二十天最低跌幅>=1.3;
长期底部:=LLV(HIGH,30);
上:=SMA(LOW,5,2)*0.96;
选底:=FILTER(LOW<=上ANDHIGH>=短期底部ANDCLOSE>=长期底部ANDCLOSE/OPEN/1.03,3);
DRAWTEXT(IF(选底,100,0),LOW*0.95,’底’),COLOR399C71;
DRAWTEXT(IF(选底,100,0),LOW*0.995,’↑’),COLOR399C71;
STICKLINE(IF(选底,100,0),CLOSE,OPEN,5,0),COLOR399C71;
STICKLINE(IF(选底,100,0),LOW,HIGH,1,0),COLOR399C71;
选买:=FILTER(买3OR选底,3)ANDCOUNT(买1+买4+龙,3)>0;
STICKLINE(选买,HIGH,HHV(HIGH,90)*0.95,0.2,0),COLORFF0000;
DRAWTEXT(选买,HHV(HIGH,90)*1,’稳赚’),COLORFF0000;
DRAWTEXT(选买,HHV(HIGH,90)*0.97,’10%买’),COLORFF0000;
通达信主力资金动向指标截图
评论(0)