以下是通达信游资持仓副图指标源码和截图
通达信主力机构游资散户持仓共振副图指标源码:
短期线:Ema(CLOSE,6);
持股线:EMA(CLOSE,14),LINETHICK2;
双月线:EMA(CLOSE,56);
牛熊线:EMA(CLOSE,166);
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10),
EMA8,'∠35上升'),coloryellow;
支撑:MA(REF(LLV(C,30),1),2);
C1:=(CLOSE+LOW+HIGH)/3;
C2:=EMA(C1,6);
C3:=EMA(C2,5);
C4:=crOSS(C2,C3);
DRAWTEXT(C4,LOW/1.01,'★买'),colorred;
X:=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),68);
Y:=EMA(CLOSE,10);
LL:=REF(CLOSE,2);
MM:=((SMA(MAX((CLOSE-LL),0),6,1)/SMA(Abs((CLOSE-LL)),6,1))*100);
DB:=IF(((MM REF(MM,1))AND(MM 79)),MM,0);
DRAWTEXT(CROSS(Y,X),(LOW*0.985),'▲加仓'),LINETHICK2,colorred;
LC:=REF(CLOSE,1);
:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
stICKLINE(C =O,C,O,7.2,0),colorred;
STICKLINE(C =O,C,O,1.7,0),COLOR7040FF;
STICKLINE(C =O,C,O,0.5,0),coloryellow;
STICKLINE(C =O,C,O,7.2,0),COLORCC0000;
STICKLINE(C =O,C,O,1.7,0),COLORFF4411;
STICKLINE(C =O,C,O,0.5,0),COLORFFCC33;
MID9:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线1:=(20*MID9+19*REF(MID9,1)+18*REF(MID9,2)+17*REF(MID9,3)+16*REF(MID9,4)+15*REF(MID9,5)+14*REF(MID9,6)+13*REF(MID9,7)+12*REF(MID9,8)+11*REF(MID9,9)+10*REF(MID9,10)+9*REF(MID9,11)+8*REF(MID9,12)+7*REF(MID9,13)+6*REF(MID9,14)+5*REF(MID9,15)+4*REF(MID9,16)+3*REF(MID9,17)+2*REF(MID9,18)+REF(MID9,20))/210,COLORGREEN{COLORRED};
马线1:=MA(牛线1,6),COLORMAGENTA{COLORYELLOW};
STICKLINE(C 牛线1,-1.9,-0.4,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(C 马线1,-1.9,-0.4,4,0),COLOR017700{COLOR000099},LINETHICK2;
STICKLINE(牛线1 =CANDC =马线1,-1.9,-0.4,8,0),,COLOR017700{COLOR000099},LINETHICK2;
MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9)+10*REF(MID1,10)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1,14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1,20))/210,COLORGREEN{COLORRED};
马线:=MA(牛线,3),COLORMAGENTA{COLORYELLOW};
GB:=(C-牛线);
换手:=V*100/CAPITAL;
主:=MA(换手,5);
大:=MA(换手,12);
中:=MA(换手,34);
散:=MA(换手,55);
均:=(主+大+中+散)/4;
GBB:=(主-散);
GB1:=GB+GBB;
STICKLINE(GB1 =0,2.5,4,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(GB1 0,2.5,4,4,0),COLOR017700{COLOR000099},LINETHICK2;
AA:=MAX(MA(C,60),MA(C,120));
BB:=MIN(MA(C,60),MA(C,120));
:=V,COLORWHITE,LINETHICK0;
Q:=EMA(V,5);
Q1:=EMA(V,50);
OBV:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0);
OBV1:=EMA(OBV,5);
OBV2:=EMA(OBV,50);
W:=(Q-Q1)*0.00001;
W1:=(OBV1-OBV2)*0.000001;
W2:=W+W1;
STICKLINE(W2 =0,0.3,1.8,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(W2 0,0.3,1.8,4,0),COLOR017700{COLOR000099},LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(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;
MADKX:=MA(DKX,6);
MDD:=(DKX-MADKX)*1.2;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,6)-EMA(V1,55);
V3:=EMA(V2,6);
V4:=2*(V2-V3)*5.5;
V5:=(V2-V3)*0.06;
V6:=MDD+V5;
STICKLINE(V6 =0,-4.1,-2.6,4,0),COLOR000099{COLOR017700},LINETHICK2;
STICKLINE(V6 0,-4.1,-2.6,4,0),COLOR017700{COLOR000099},LINETHICK2;
BQIUV:(GB1),COLORWHITE,NODRAW;
BQIUSV:(W2),COLORYELLOW,NODRAW;
WWW:(C-牛线1),COLORYELLOW,NODRAW;
XEV:(V6),COLORGREEN,NODRAW;
XG:=CROSS(GB1+W2+V6+C 牛线1,0.5),NODRAW;
1:GB1 =0ANDW2 =0ANDV6 =0ANDC 牛线1,NODRAW;
选股2:XG,,NODRAW;
STICKLINE(XG,-4.2,4,3,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,IF(V =0,3.2,0),'散户'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR=1,IF(V =0,1,0),'游资'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR=1,IF(V =0,-3.4,0),'主力'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR=1,IF(V =0,-1,-0.4),'机构'),COLORFFFFFF;
WY1001:=(2*CLOSE+HIGH+LOW)/3;
WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0 =0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0 0,XYS0,0,2,0),COLORGREEN;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
STICKLINE(XYSHSL 6.1ANDCYS13 5,2,0,2,0),COLORGREEN;
STICKLINE(XYSHSL 3.8ANDCYS13 5,1.5,0,2,0),COLORYELLOW;
STICKLINE(XYSHSL 2.1ANDCYS13 5,1,0,2,0),COLORCYAN;
STICKLINE(XYSHSL 1.8ANDCYS13 5,0.5,0,2,0),COLORBLUE;
XYS2:MA(XYS0,2)LINETHICK2,COLORFFFFFF;
XYS1:MA(XYS0,1)LINETHICK3,COLORMAGENTA;
JJ:=(HIGH+LOW+CLOSE)/3,NODRAW;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW),NODRAW;
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW),NODRAW;
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN)),NODRAW;
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE)),NODRAW;
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ),NODRAW;
TD:=TD1-TD2,NODRAW;
DA:=DD1-DD2,NODRAW;
XD1:=1-(TD1+DD1),NODRAW;
XD2:=1-(TD2+DD2),NODRAW;
TZ:=V/SUM(V,60)*100,NODRAW;
DT:=((XD1-XD2)/1000000)/TZ,NODRAW;
散户持仓:SUM(DT,220),COLOR888888,LINETHICK1,NODRAW;
DX:=((TD1+DD1)-(TD2+DD2))/1000000,NODRAW;
主力持仓:SUM(DX,600),COLORWHITE,LINETHICK1,NODRAW;
DRAWRECTREL(400,0,635,320,RGB(0,100,0));
DRAWRECTREL(470,0,550,320,RGB(0,200,50));
DRAWRECTREL(470,0,470+CONST(主力持仓*150/400),320,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.020,0,STRCAT(STRCAT('主力持仓:',CON2STR(主力持仓,2)),'')),COLORYELLOW;
DRAWRECTREL(400,460,635,750,RGB(0,50,160));
DRAWRECTREL(470,460,550,750,RGB(0,200,50));
DRAWRECTREL(470,460,470+CONST(散户持仓*140/400),750,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.43,0,STRCAT(STRCAT('散户持仓:',CON2STR(散户持仓,2)),'')),COLORYELLOW;
通达信主力机构游资散户持仓共振副图指标截图