文章目录:
如何看大智慧自编指标的源码
依次点击:功能——自编指标--选择你要的指标双击!弹出窗口可以看到源码,复制就可以了.但不知道你用什么软件,源码不一定通用的!
大智慧主力进出线指标的源码代码与计算方法
{主力进出 N:1,100,8;M:1,100,13:1,100,60;S:1,100,3}
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力开始出: IF(V4=0,V4,0),COLOR00FF00,LINETHICK2;
主力开始进: IF(V4=0,V4,0),COLORFF00FF,LINETHICK2;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场: IF(VB=0,VB,0),COLORRED,LINETHICK2;
大资金撤走: IF(VB=0,VB,0),COLORBLUE,LINETHICK2; 答案被采纳可获得悬赏分和额外20分奖励。
求高手将大智慧指标修改成通达信指标,源码如下,谢谢!!
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
M5:MA(C,5);
M10:MA(C,10),COLORYELLOW;
IF(m5,m5=REF(m5,1),RGB(255,0,255),m5=REF(m5,1),RGB(255,255,0)),LINETHICK1;
STICKLINE( O=MID AND C=MID AND V=MA(V,5),OPEN,(C+O)/2,5,0),COLORRED;
STICKLINE(C=MID AND V=REF(V,1)*2,OPEN,(C+O)/2,5,0),COLORRED;
IF(m10,m10=REF(m10,1),RGB(255,0,0),m10=REF(m10,1),RGB(50,210,20)),LINETHICK1;
求大智慧的买卖点源代码.
趋势买卖点位提示
N:= 5 ; M:=13 ;
MA5:MA(C,N),COLORWHITE;
MA18:=MA(CLOSE,18);
MA13:MA(C,M),COLORGREEN,LINETHICK2;
VAR1:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR2:=C=LLV(C,4) AND (REF(C,1)REF(C,2) OR REF(C,1)REF(C,3)) OR REF(C,1)=LLV(C,4) AND CREF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND CREF(C,1) OR REF(C,3)=LLV(C,4) AND CREF(C,1) AND CREF(C,2);
VAR3:=REF(C,1)=LLV(C,4) AND C=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=REF(C,3) AND REF(C,2)REF(C,4) AND C=REF(C,1);
A:=(3*C+L+O+H)/6;
VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(VAR4,13);
{红}
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLOR0000FF;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
{蓝}
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0),COLORFF9900;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,0.5,0),COLORFFCC00;
{粉}
STICKLINE(VAR1,C,(O+C)/2,3,0),COLORFF11FF;
STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;
{灰}
STICKLINE(VAR2,C,(O+C)/2,3,0),COLOR999999;
STICKLINE(VAR2,C,(O+C)/2,0.5,0),COLORFFBBFF;
{绿}
STICKLINE(VAR3,O,(O+C)/2,3,0),COLOR00BB00;
STICKLINE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;
卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX50,2) AND CROSS(MA(DX,2),DX);
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORGREEN;
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;
加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.03,'加'),COLORWHITE;
跟:=MA18=REF(MA18,3) AND CROSS(CLOSE,MA18);
DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;
趋势射线3X: DRAWLINE(L=LLV(L,3),L,C=HHV(C,3),L,0),LINETHICK3,COLOR9A90FF;
趋势射线7: DRAWLINE(H=HHV(H,7),H,L=LLV(L,7),L,0),LINETHICK3,COLOR9AFF89;
射线7X: DRAWLINE(L=LLV(L,7),L,H=HHV(H,7),L,0),LINETHICK3,COLOR9AFF89;
趋势射线21: DRAWLINE(H=HHV(H,21),H,L=LLV(L,21),L,0),LINETHICK3,COLORC100FF;
射线21X: DRAWLINE(L=LLV(L,21),L,H=HHV(H,21),L,0),LINETHICK3,COLORC100FF;
趋势射线35: DRAWLINE(H=HHV(H,35),H,L=LLV(L,35),L,0),LINETHICK3,COLORC1005B;
射线35X: DRAWLINE(L=LLV(L,35),L,H=HHV(H,35),L,0),LINETHICK3,COLORC1005B;
趋势射线49: DRAWLINE(H=HHV(H,49),H,L=LLV(L,49),L,0),LINETHICK3,COLORYELLOW;
射线49X: DRAWLINE(L=LLV(L,49),L,H=HHV(H,49),L,0),LINETHICK3,COLORYELLOW;
N,0.5,0),COLORFFCC00;{粉} STICKLINE(VAR1,C,(O+C)/2,3,0),COLORFF11FF; STICKLINE(VAR1,C,(O+C)/2,0.5,0),COLORFFDDFF;{灰} STICKLINE(VAR2,C,(O+C)/2,
MID - P*STD(CLOSE,N);M5:MA(C,5);M10:MA(C,10),COLORYELLOW;IF(m5,m5=REF(m5,1),RGB(255,0,255),m5=REF(m5,1),RGB(255,255,
NE(VAR3,O,(O+C)/2,0.5,0),COLOR00FF00;卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX50,2) AND C
F(C,1)REF(C,2) OR REF(C,1)REF(C,3)) OR REF(C,1)=LLV(C,4) AND CREF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND CREF(C,1) OR REF(C,3)=LLV(C,4
A(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;主力开始出: IF(V4=0,V4,0),COLOR00FF00,LINETHICK2;主力开始进: IF(V4=0,V4,0),COLORFF00