高手把大智慧指标改成通达信能通过的

2024-11-07 23:59:24
推荐回答(2个)
回答1:

TJ1:=REF(VOL,3)-REF(VOL,2)>=0;
TJ2:=REF(VOL,3)-REF(VOL,1)>=0;
TJ3:=REF(VOL,3)-VOL>=0;
TJ4:=REF(CLOSE,1)-REF(OPEN,3)>=0;
TJ5:=REF(CLOSE,2)-REF(OPEN,3)>=0;
TJ6:=CLOSE-REF(OPEN,3)>=0;
TJ7:=(REF(CLOSE ,3)>REF(CLOSE ,4));
TJ:=TJ1+TJ2+TJ3+TJ4+TJ5+TJ6+TJ7=7;
DRAWTEXT(TJ,REF(OPEN,3),'1'),COLORFFFFFF;
黄金底: REF(REF(OPEN,3),BARSLAST(TJ)),COLORFFFFFF,POINTDOT;
STICKLINE(REF(OPEN,3),黄金底,黄金底,3,0),COLORFFFFFF,LINETHICK1;
DRAWTEXT(TJ,REF(CLOSE,3),'2'),COLOR00FFFF;
黄金顶: REF(REF(CLOSE,3),BARSLAST(TJ)),COLOR00FFFF,POINTDOT;
STICKLINE(REF(CLOSE,3),黄金顶,黄金顶,4,0),COLOR00FFFF,LINETHICK4;
DRAWTEXT(TJ,LLV(OPEN,3),'3'),COLORFF00FF;
黄金大底: REF(LLV(OPEN,3),BARSLAST(TJ)),COLORFF00FF,POINTDOT;
STICKLINE((LLV(OPEN,3)),黄金大底,黄金大底,4,0),COLORFF00FF,LINETHICK1;
DRAWTEXT(TJ,LLV(LOW,3),'金'),COLORFFFFFF;
黄金虚底: REF(LLV(LOW,3),BARSLAST(TJ)),COLOR00FF00,POINTDOT;
STICKLINE((LLV(LOW,3)),黄金虚底,黄金虚底,4,0),COLOR00FF00,LINETHICK1;
DRAWTEXT((CLOSE>REF(OPEN ,1)AND(VOL>REF(VOL,1))),LOW*0.99,'进'),COLORYELLOW;
DRAWTEXT((CLOSEREF(VOL ,1)AND(REF(CLOSE ,1)>REF(OPEN ,1)))),HIGH*1.01,'出'),COLOR00FF00;
DRAWICON((CLOSE>REF(OPEN ,1)AND(VOL>REF(VOL ,1))AND(REF(CLOSE,1)DRAWICON((CLOSEREF(VOL ,1))AND(REF(CLOSE,1)>REF(OPEN ,1))),HIGH*1.03,2);
TJJJ:=BETWEEN(VOL/REF(VOL,1),1.8,2.5)AND(CLOSE>REF(CLOSE,1));
DRAWTEXT(TJJJ,HIGH*1.035,'倍'),COLORRED;
高量:=(VOL=HHV(VOL,18));
DRAWTEXT(高量,HIGH*1.03,'高'),COLOR00FF00;
攻击:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>4.45));
DRAWTEXT(攻击,HIGH*1.02,'攻'),COLORWHITE;
跳空:=LOW-REF(HIGH,1)>0;
DRAWTEXT(跳空,REF(CLOSE,1),'跳'),COLORFFFF00;
跳空梯: REF(REF(CLOSE,1),BARSLAST(跳空)),COLORFFFF00,POINTDOT;
STICKLINE(REF(CLOSE,1),跳空梯,跳空梯,4,0),COLORFFFF00,LINETHICK1;
DRAWTEXT(TJ,REF(LOW,3),'5'),COLORFF00FF;
黄金柱底: REF(REF(LOW,3),BARSLAST(TJ)),COLORRED,POINTDOT;
STICKLINE(REF(LOW,3),黄金柱底,黄金柱底,5,0),COLORRED,LINETHICK1;
AAG:STICKLINE((HIGH=HHV(HIGH,18)),OPEN,CLOSE,2,0),COLORWHITE,LINETHICK1;

如果复制粘贴过程中系统不能识别中文字,出现问号的现象,请自己对着源码手动输入。

回答2:

你这个公式用到未来函数,结果是会随收盘价不同而变化的。 N:=8;
XA1:=REF(H,N)=HHV(H,2*N+1);
XB1:=FILTER(XA1,N);
XC1:=BACKSET(XB1,N+1);
XD1:=FILTER(XC1,N);
A2:=REF(L,N)=LLV(L,2*N+1);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;
E2:=(H+L)/2;
XH1:=(XD1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
XL1:=(D2 AND NOT(XD1 AND E1XH2:=XD1 AND NOT(D2 AND E1>=E2);
XX1:=REF(BARSLAST(XH1),1)+1;
F1:=BACKSET(XH1 AND COUNT(XL1,XX1)>0,LLVBARS(IF(XL1,L,10000),XX1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
XL2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
XX2:=REF(BARSLAST(XL2),1)+1;
F2:=BACKSET(XL2 AND COUNT(XH2,XX2)>0,HHVBARS(IF(XH2,H,0),XX2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
R1:=BACKSET(ISLASTBAR ,BARSLAST(HD)+1);
XS1:=R1>REF(R1,1);
T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
U1:=T1>REF(T1,1);
R2:=BACKSET(XS1,REF(BARSLAST(HD),1)+2);
XS2:=R2>REF(R2,1);
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T2>REF(T2,1);
T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);
U3:=T3>REF(T3,1);
R3:=BACKSET(XS2,REF(BARSLAST(HD),1)+2);
XS3:=R3>REF(R3,1); 短压:DRAWLINE(XS2,H,XS1,H,1),LINETHICK2;
短撑:DRAWLINE(U2,L,U1,L,1),LINETHICK2;DRAWTEXT(XS2,H*1.02,H),COLORMAGENTA;
DRAWTEXT(XS1,H*1.02,H),COLORMAGENTA;
DRAWTEXT(XS3,H*1.02,H),COLORMAGENTA;
DRAWTEXT(U1,L*0.98,L),COLORCYAN;
DRAWTEXT(U2,L*0.98,L),COLORCYAN;
DRAWTEXT(U3,L*0.98,L),COLORCYAN;