|
|
楼主 |
发表于 2009-9-21 10:14
|
显示全部楼层
cdl
{S 7 1 15 1,Z 2 1 4 1}
买:c,colorFFFFFF;
止:买/(1+0.005+z/100-s/1000),color00ff00;
平:买*(1+s/1000),coloryellow;
二:买*(1.02+s/1000),COLORFFFFFF;
三:买*(1.03+s/1000),COLORRED;
四:买*(1.04+s/1000),color00ff00;
五:买*(1.05+s/1000),COLORFFFFFF;
十:买*(1.10+s/1000),color00ff00;
最高:H,COLORMAGENTA;
逃命:H/1.11,COLORFFFFFF;
E10:cross(EMA(CLOSE,1),EMA(CLOSE,10))*50000,COLORFFFFFF;
Var8:=MA(CLOSE,27);
Var9:=(CLOSE-Var8)/Var8*100;
VarA:=MA(Var9,2);
VarB:=BARSLAST(CROSS(-10,VarA)=1);
VarD:=VarA<-10 AND VarB>3;
VarC:=BARSLAST(CROSS(VarA,10)=1);
VarE:=VarA>10 AND VarC>3;
黄金坑: REVERSE( IF(VarD,0.5,0))*40000,LINESTICK ,LINETHICK2, COLORYELLOW;
E40:=EMA(C,40);
E40:(C>E40)*0.2*100000,COLORRED;
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);
KK:=INTPART(SMA(RSV,3,1));
DD:=INTPART(SMA(K,3,1));
JJ:=INTPART(3*K-2*D);
JJ1:=REF(jj,1);
A:=KK-DD;
A1:=REF(KK-DD,1);
A2:=REF(KK-DD,2);
A3:=REF(KK-DD,3);
A4:=REF(KK-DD,4);
A5:=REF(KK-DD,5);
A6:=REF(KK-DD,6);
A7:=REF(KK-DD,7);
B:=A1-A;
B1:=REF(A1-A,1);
B2:=REF(A1-A,2);
B3:=REF(A1-A,3);
B4:=REF(A1-A,4);
B5:=REF(A1-A,5);
B6:=REF(A1-A,6);
CC:=B+B1+B2;
CC1:=REF(B+B1+B2,1);
CC2:=REF(B+B1+B2,2);
CC3:=REF(B+B1+B2,3);
CC4:=REF(B+B1+B2,4);
CC5:=REF(B+B1+B2,5);
CC6:=REF(B+B1+B2,6);
AD:=CC-B2;
AD1:=REF(CC-B2,1);
AD2:=REF(CC-B2,2);
AD3:=REF(CC-B2,3);
AD4:=REF(CC-B2,4);
AD5:=REF(CC-B2,5);
AD6:=REF(CC-B2,6);
N:=KK+DD;
N1:=REF(N,1);
N2:=REF(N,2);
N3:=REF(N,3);
N4:=REF(N,4);
N5:=REF(N,5);
N6:=REF(N,6);
N7:=REF(N,7);
N8:=REF(N,8);
bi:=(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100< -6.1;
x1:=(a2=0) and (n3-n1=20 or n3-n1=10) and (b1>0 and (b=-1 or b2=-1));
x2:=bi AND A1=0 and n6>18 and a2+b2=a4 and b4=a2 and (b2<0 or a2>0);
p:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100<-10;
p1:=C/COST(8)<0.8;
p2:=((c-(dma(((3*h+l+o+2*c)/7),v/(sum(amount,13)/(amount/v/100)/100))))/(dma(((3*h+l+o+2*c)/7),v/(sum(amount,13)/(amount/v/100)/100))))*100 ;
p3:=p2<-14 and FINANCE(34)>=1.5;
p4:=("EXPLORER.boll") or ("EXPLORER.kdj") or ("EXPLORER.c-102");
x3:=p and p1 and (p3 or p4);
x4:=((b3=0 and cc3<0 and b1>0 and cc2<0) or (b4=0 and ad1=-1 and ad3<0) or (b1=0 and ad3>0 and a4<0 and b3>=0 and (cc1<0 or cc3<0)));
gg:=(bi AND A1=0 and b5-b4=a3 and ad4<>-3 and ad4<>-1 and cc4<>-3
and n6<60 and n1-n<6 and n6>15) or (ref(x2,1)) or (bi and x1) or (x3 and x4);
kx:=n<25;
kx1:=ref(kx,29);
xx:=n<18;
xx1:=ref(xx,31);
xxx:=n<23;
xxx1:=ref(xxx,198);
kp:=(kx1 or xx1 or xxx1);
ka1:=ref(close,2)/ref(open,2)<0.95
and ref(c,2)<ref(c,3);
ka2:=ref(open,1)<ref(close,2) and
ref(close,1)>ref(close,2) and
ref(close,1)>(ref(close,2)+ref(open,2))/2;
ka3:=close>ref(close,1);
ka4:=llv(low,13)=ref(low,1);
kp1:=backset(ka1 and ka2 and ka3 and ka4,3);
kp2:=ref(kp1,2);
t:=n<25;
t1:=ref(t,31);
w:=LLV(L,3)=LLV(L,0) AND BARSCOUNT(C)>=3;
w1:=OPEN<CLOSE AND OPEN/REF(C,1) <= 1-2/100 AND CLOSE/OPEN>=1+3/100;
w2:=CROSS(CLOSE,"BOLL.LOWER"(26,2)) and n<25;
w3:=CROSS("KDJ.J"(9,3,3),0) and t1 and ad<>-4;
gg1:=w and w1 and (w2 or w3) and ad1<>1;
w4:=COST(10)/C>1.15;
w5:=((CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100)<-19;
gg2:=bi and w and t and w4 and w5 and ad1>0;
kkddj1:=(kp and kp2) or gg or gg1 or gg2;
A01:kkddj1*60000,LINETHICK2,COLORred;
不知以上的代码哪里出错~~~通达信的提示
当前公式 : CDLL (指标画线公式)
错误句 :
E40:(C>E40)*0.2*100000,COLORRED
详细信息 : 输出变量 E40 定义重复!
错误起始位置 : 662 ; 长度: 3
大智慧的就提示:
未定义的变量FINANCE
语法错误:“(” |
|
|