大智慧动态的DDX公式
input:p1(60),p2(5),p3(10);
TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT; {判断是否当天}
P:=MIN(COUNT(ORDER(2),0),P1);
P:=IF(P=0 and TODAY,1,P);
DD1:=BIGORDER(1)-BIGORDER(2);
DD2:="DDEDATA@BIGORDER"(1)-"DDEDATA@BIGORDER"(2);
DDX:IF(TODAY,DD2,DD1)*vol/capital*100,COLOR3D;
DDX1:EMA(DDX,p)*p,color00ffff,LINETHICK1;
DDX2:MA(DDX1,p2),colorff00ff,LINETHICK1;
DDX3:MA(DDX1,p3),color00ff00,LINETHICK1;
1,dotline,colorblue;
drawtextabs(0,0,'大单动向');