请问怎样把大智慧公式指标转换成通达信公式指标?
工作线:EMA(CLOSE,9),COLORGREEN;
AA:=REF(H,N)=HHV(H,2*N+1);
AAA:=FILTER(AA,N);
BB:=BACKSET(AAA,N+1);
CC1:=FILTER(BB,N);
CC:=CC1 OR BARSTATUS=2;
AA2:=REF(L,N)=LLV(L,2*N+1);
AAA2:=FILTER(AA2,N);
BB2:=BACKSET(AAA2,N+1);
CC22:=FILTER(BB2,N);
CC2:=CC22 AND NOT(CC1);
EA:=BACKSET(CC,REF(BARSLAST(CC2),1)+1);
EB:=EA>REF(EA,1);
EE:=BACKSET(EB,2);
FF1:=EE>REF(EE,1);
EE2:=BACKSET(FF1 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF2:=EE2>REF(EE2,1);
EE3:=BACKSET(FF2 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF3:=EE3>REF(EE3,1);
JS:=IF(CC,COUNT(CC2,REF(BARSLAST(CC),1)+1),0);
G1:=IF(JS=1 AND CC,BARSLAST(FF1),0);
GA:=IF(CC AND REF(L,BARSLAST(FF1))>=REF(L,BARSLAST(FF2)),BARSLAST(FF2),BARSLAST(FF1));
G2:=IF(JS=2 AND CC,GA,0);
G3:=IF(JS>=3 AND CC,IF(CC AND REF(L,GA)>=REF(L,BARSLAST(FF3)),BARSLAST(FF3),GA),0);
GG:=G1+G2+G3;
JA:=BACKSET(CC,GG);
JB:=JA>REF(JA,1);
JJ:=BACKSET(JB,2);
LD:=JJ>REF(JJ,1);
LD1:=LD OR BARSTATUS=2;
HEA:=BACKSET(LD1,REF(BARSLAST(CC),1)+1);
HEB:=HEA>REF(HEA,1);
HEE:=BACKSET(HEB,2);
HFF1:=HEE>REF(HEE,1);
HEE2:=BACKSET(HFF1 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF2:=HEE2>REF(HEE2,1);
HEE3:=BACKSET(HFF2 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF3:=HEE3>REF(HEE3,1);
HJS:=IF(LD1,COUNT(CC1,REF(BARSLAST(LD1),1)+1),0);
HG1:=IF(HJS=1 AND LD1,BARSLAST(HFF1),0);
HGA:=IF(LD1 AND REF(H,BARSLAST(HFF1))<=REF(H,BARSLAST(HFF2)),BARSLAST(HFF2),BARSLAST(HFF1));
HG2:=IF(HJS=2 AND LD1,HGA,0);
HG3:=IF(HJS>=3 AND LD1,IF(LD1 AND REF(H,HGA)<=REF(H,BARSLAST(HFF3)),BARSLAST(HFF3),HGA),0);
HGG:=HG1+HG2+HG3;
HJA:=BACKSET(LD1,HGG);
HJB:=HJA>REF(HJA,1);
HJJ:=BACKSET(HJB,2);
HD:=HJJ>REF(HJJ,1);
X1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
X2:=X1>REF(X1,1);
Y1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
Y2:=Y1>REF(Y1,1);
Z1:=IF(BARSLAST(X2)<BARSLAST(Y2),X2,Y2);
Z2:=IF(BARSLAST(X2)<BARSLAST(Y2),L,H);
DRAWLINE(Z1,Z2,BARSTATUS=2,C,0),POINTDOT,COLORFF9900;
UU:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
DRAWLINE(XX,L,VV,L,1),COLOR00FFFF;
UU2:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
DRAWLINE(XX2,H,VV2,H,1),COLOR00FFFF;
DRAWICON(HD AND XX2,H*1.01,10),ALIGN1;
DRAWICON(LD AND XX,L*1.01,9),ALIGN1;
高1:REF(H,BARSLAST(VV2)),POINTDOT,COLOR99FF66,LINETHICK3;
高2:REF(H,BARSLAST(XX2)),POINTDOT,COLORFF66FF,LINETHICK3;
低1:REF(L,BARSLAST(VV)),POINTDOT,COLOR99FF66,LINETHICK3;
低2:REF(L,BARSLAST(XX)),POINTDOT,COLORFF66FF,LINETHICK3;
OK:=MA(O,5);
CG:=MA(C,10);
PDU:=IF(OK>REF(OK,1) AND CG>REF(CG,1),1,0);
PDD:=IF(OK<REF(OK,1) AND CG<REF(CG,1),1,0);
PDM:=IF(PDU=0 AND PDU=0,1,0);
Z1:=MA(C,M);
ZX:=REF(Z1,M/2+1);
顶选:CROSS(C,ZX),LINETHICK0;
LIFE:=(MA(C,5)+MA(C,10))/2;
VAR1:=(2*C+H+L)/4;
SNOOK:=MA(VAR1,99)*0.91; 展开
N:=10;
生命线:MA(CLOSE,3),COLORRED;
工作线:EMA(CLOSE,9),COLORGREEN;
AA:=REF(H,N)=HHV(H,2*N+1);
AAA:=FILTER(AA,N);
BB:=BACKSET(AAA,N+1);
CC1:=FILTER(BB,N);
CC:=CC1 OR BARSTATUS=2;
AA2:=REF(L,N)=LLV(L,2*N+1);
AAA2:=FILTER(AA2,N);
BB2:=BACKSET(AAA2,N+1);
CC22:=FILTER(BB2,N);
CC2:=CC22 AND NOT(CC1);
EA:=BACKSET(CC,REF(BARSLAST(CC2),1)+1);
EB:=EA>REF(EA,1);
EE:=BACKSET(EB,2);
FF1:=EE>REF(EE,1);
EE2:=BACKSET(FF1 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF2:=EE2>REF(EE2,1);
EE3:=BACKSET(FF2 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF3:=EE3>REF(EE3,1);
JS:=IF(CC,COUNT(CC2,REF(BARSLAST(CC),1)+1),0);
G1:=IF(JS=1 AND CC,BARSLAST(FF1),0);
GA:=IF(CC AND REF(L,BARSLAST(FF1))>=REF(L,BARSLAST(FF2)),BARSLAST(FF2),BARSLAST(FF1));
G2:=IF(JS=2 AND CC,GA,0);
G3:=IF(JS>=3 AND CC,IF(CC AND REF(L,GA)>=REF(L,BARSLAST(FF3)),BARSLAST(FF3),GA),0);
GG:=G1+G2+G3;
JA:=BACKSET(CC,GG);
JB:=JA>REF(JA,1);
JJ:=BACKSET(JB,2);
LD:=JJ>REF(JJ,1);
LD1:=LD OR BARSTATUS=2;
HEA:=BACKSET(LD1,REF(BARSLAST(CC),1)+1);
HEB:=HEA>REF(HEA,1);
HEE:=BACKSET(HEB,2);
HFF1:=HEE>REF(HEE,1);
HEE2:=BACKSET(HFF1 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF2:=HEE2>REF(HEE2,1);
HEE3:=BACKSET(HFF2 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF3:=HEE3>REF(HEE3,1);
HJS:=IF(LD1,COUNT(CC1,REF(BARSLAST(LD1),1)+1),0);
HG1:=IF(HJS=1 AND LD1,BARSLAST(HFF1),0);
HGA:=IF(LD1 AND REF(H,BARSLAST(HFF1))<=REF(H,BARSLAST(HFF2)),BARSLAST(HFF2),BARSLAST(HFF1));
HG2:=IF(HJS=2 AND LD1,HGA,0);
HG3:=IF(HJS>=3 AND LD1,IF(LD1 AND REF(H,HGA)<=REF(H,BARSLAST(HFF3)),BARSLAST(HFF3),HGA),0);
HGG:=HG1+HG2+HG3;
HJA:=BACKSET(LD1,HGG);
HJB:=HJA>REF(HJA,1);
HJJ:=BACKSET(HJB,2);
HD:=HJJ>REF(HJJ,1);
X1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
X2:=X1>REF(X1,1);
Y1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
Y2:=Y1>REF(Y1,1);
Z1:=IF(BARSLAST(X2)<BARSLAST(Y2),X2,Y2);
Z2:=IF(BARSLAST(X2)<BARSLAST(Y2),L,H);
DRAWLINE(Z1,Z2,BARSTATUS=2,C,0),POINTDOT,COLORFF9900;
UU:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
DRAWLINE(XX,L,VV,L,1),COLOR00FFFF;
UU2:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
DRAWLINE(XX2,H,VV2,H,1),COLOR00FFFF;
DRAWICON(HD AND XX2,H*1.01,2);
DRAWICON(LD AND XX,L*1.01,1);
高1:REF(H,BARSLAST(VV2)),POINTDOT,COLOR99FF66,LINETHICK3;
高2:REF(H,BARSLAST(XX2)),POINTDOT,COLORFF66FF,LINETHICK3;
低1:REF(L,BARSLAST(VV)),POINTDOT,COLOR99FF66,LINETHICK3;
低2:REF(L,BARSLAST(XX)),POINTDOT,COLORFF66FF,LINETHICK3;
OK:=MA(O,5);
CG:=MA(C,10);
PDU:=IF(OK>REF(OK,1) AND CG>REF(CG,1),1,0);
PDD:=IF(OK<REF(OK,1) AND CG<REF(CG,1),1,0);
PDM:=IF(PDU=0 AND PDU=0,1,0);
M:=10;
Z1A:=MA(C,M);
ZX:=REF(Z1A,M/2+1);
顶选:CROSS(C,ZX),NODRAW;
LIFE:=(MA(C,5)+MA(C,10))/2;
VAR1:=(2*C+H+L)/4;
SNOOK:=MA(VAR1,99)*0.91;
感谢。不好意思,感少复制了一句INPUT: N(4,1,100),M(255,1,255);
N:=4;M:=255;
2023-06-12 广告