與DDE有關的指標集錦
大智慧L-2 ddy input:p1(60),p2(5),p3(10); DDy:(ORDER(2)-ORDER(1))/CAPITAL*100,COLORSTICK,linethick2; DDy1:ema(DDy,p1)*p1; DDy2:MA(DDy1,p2); DDy3:MA(DDy1,p3); 0.1,DOTLINE,colorblue; DRAWTEXTABS(0,0,'漲跌動因'); ddx input:p1(60),p2(5),p3(10); refline:0; DDX:(BIGORDER(1)-BIGORDER(2))*VOL/CAPITAL*100,COLORSTICK,linethick2; DDX1:ema(DDX,p1)*60.177; DDX2:MA(DDX1,p2); DDX3:MA(DDX1,p3); DRAWTEXTABS(0,0,'大單動向'); ddz DDZ:=(ORDER(2)-ORDER(1))/(ORDER(2)+ORDER(1))*200; DDZ1:=(ORDER(2)-ORDER(1))/(ORDER(2)+ORDER(1))*170; FILLRGN(DDZ,DDZ1,DDZ> DDZ1,RGB(255,0,0),DDZ<DDZ1,RGB(0,255,0)); DRAWTEXTABS(0,0,'大單分差'); L2公式 {DDX多頭排列源代碼} input:最少幾天(6); last("ddx.ddx1"> "ddx.ddx2" and "ddx.ddx2"> "ddx.ddx3")> =最少幾天; {DDX連紅源代碼} input:n(3); last("ddx.ddx"> 0)> =n; {DDX連增源代碼} input:n(3); last("ddx.ddx"> REF("ddx.ddx",1))> =n; {M天內N天紅源代碼} input:n(10),m(5); count("ddx.ddx"> 0,n)> =m; {N天內飄紅連紅指標DDC} input:n(10); N天飄紅天數(shù):count("ddx.ddx"> 0,n),PRECIS0; 連紅天數(shù):last("ddx.ddx"> 0),PRECIS0; 下面幾個指標與DDE無關: {尋找短線放量啟動的股票} input:N(5,1,100),M(30,0,100),X(3,0,100); VOL/240> MA(VOL,N)/240 AND CLOSE> OPEN*(1+X/100) AND CLOSE<MA(CLOSE,30)*1.3; {震蕩上行的股票} input:N(9,1,100),M1(3,1,100),M2(3,1,100),X(12,0,100); Var1:=1; Var2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var3:=SMA(Var2,M1,1); Var4:=SMA(Var3,M2,1); Var5:=3*Var3-2*Var4; Var4<100 AND Var5> Var3*1.008 AND Var3> Var4 AND Var4> REF(Var4,1)*1.001 AND Var3> REF(Var3,1)*1 AND Var4> REF(Var4,1)*1 AND CLOSE> OPEN*(1+X/100); {底部反彈的股票} CLOSE<5 AND CLOSE<MA(CLOSE,30)*0.8 AND CLOSE> MA(CLOSE,3) AND MA(CLOSE,3)> MA(CLOSE,5); |
|