SV決策圖
TODAY:="ddx.ddx"=0;{判斷是否有正版數(shù)據(jù)}
TODAY1:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT and (ORDER(1)=0 and ORDER(2)=0);
Ddmr:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(2,2)),(bigorder(1,2)-bigorder(2,2)));
Ddmrs:=sum(Ddmr,0);
{CY}
主單買:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,2),SELFDATA('特大買入')+SELFDATA('大單買入')),bigorder(1,2))*V/CAPITAL;
主單賣:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,2),SELFDATA('特大賣出')+SELFDATA('大單賣出')),bigorder(2,2))*V/CAPITAL;
特單買:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(1,3),SELFDATA('特大買入')),bigorder(1,3))*V/CAPITAL;
特單賣:=IF(TODAY,IF(TODAY1,"DDEDATA@BIGORDER"(2,3),SELFDATA('特大賣出')),bigorder(2,3))*V/CAPITAL;
大單買:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),SELFDATA('大單買入')),(bigorder(1,2)-bigorder(1,3)))*V/CAPITAL;
大單賣:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),SELFDATA('大單賣出')),(bigorder(2,2)-bigorder(2,3)))*V/CAPITAL;
中單買:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),SELFDATA('中單買入')),(bigorder(1,1)-bigorder(1,2)))*V/CAPITAL;
中單賣:=IF(TODAY,IF(TODAY1,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),SELFDATA('中單賣出')),(bigorder(2,1)-bigorder(2,2)))*V/CAPITAL;
小單買:=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(1,1)),1-(SELFDATA('特大買入')+SELFDATA('大單買入')+SELFDATA('中單買入'))),1-(bigorder(1,1)))*V/CAPITAL;
小單賣:=IF(TODAY,IF(TODAY1,1-("DDEDATA@BIGORDER"(2,1)),1-(SELFDATA('特大賣出')+SELFDATA('大單賣出')+SELFDATA('中單賣出'))),1-(bigorder(2,1)))*V/CAPITAL;
MA157:eMA(CLOSE,157),colorFF7676;
MA5:eMA(CLOSE,5),COLORFFAA66;
MA11:eMA(CLOSE,11),COLORFFFFCC;
MA24:eMA(CLOSE,24),Color9DFFFF;
MA38:eMA(CLOSE,38),ColorABFF46;
MA55:eMA(CLOSE,55),Color8000FF;
MA96:MA(CLOSE,96),POINTDOT,linethick4,colorYellow;
MA191:eMA(CLOSE,191),Colorffffff;
MA262:eMA(CLOSE,262),colorfaabec;
MA314:eMA(CLOSE,314),color00ff00;
MA453:eMA(CLOSE,453),colorCyan;
DRAWGBK(c,'7' );
Var3:=LLV(H,240);
Var4:=100*(C-Var3)/Var3;
Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;
Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;
Var7:=0;
Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;
Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;
VarA:=BARSCOUNT(C);
VarB:=Var8<20 AND Var9<23 AND VarA>35;
VarC:=VarB AND COUNT(VarB,1)=1;
VarD:=EMA(C,21)-EMA(C,8);
VarE:=EMA(VarD,5);
VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);
Var10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);
Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)<REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1)AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)<REF(ZIG(3,22),1)AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1)AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)<REF(ZIG(3,51),1)AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(C,2)-EMA(C,150);
Var1A:=EMA(Var19,100);
Var1B:=2*(Var19-Var1A);
Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);
Var1D:=SQRT(SQRT(L*H*O*C));
Var1E:=EMA(Var1D*0.97,3);
Var1F:=(H+L+C)/3;
Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));
Var21:=CROSS(Var1E,L);
買點1:=Var10;
買點2:=(Var11+Var13+Var15+Var17);
賣點1:=(Var12+Var14+Var16+Var18);
Var22:=買點1 AND VarF AND VarC AND Var21 AND Var4<0AND Var5=0 AND Var6=0 AND Var20<(-110);
DRAWTEXT(買點1>0,L-0.15,'多'),LINETHICK2,ALIGN1,colorred;
DRAWTEXT(買點2>0,L-0.15,'多'),LINETHICK2,ALIGN1,ColorRed;
DRAWTEXT(賣點1>0,H+0.35,'空'),LINETHICK2,ALIGN1,COLOR33FF33;
x1:=(C+L+H)/3;
x2:=EMA(x1,6);
x3:=EMA(x2,5);
(南方財富網(wǎng)SOUTHMONEY.COM)