六联体卦六亲动变解盘
AA:=IF(CLOSE>OPEN,1,IF(CLOSE<OPEN,-1,0));
AA1:=IF(CLOSE>REF(CLOSE,1),1,IF(CLOSE<REF(CLOSE,1),-1,0));
AA2:=IF(VOL>REF(VOL,1),1,IF(VOL<=REF(VOL,1),-1,0));
BB:=IF(AA=0,AA1,AA);
CC:=IF(BB=0,AA2,BB);
S1:=IF(REF(CC,5)>0 AND REF(CC,4)>0 AND REF(CC,3)>0,1,0);
S2:=IF(REF(CC,5)<0 AND REF(CC,4)>0 AND REF(CC,3)>0,2,0);
S3:=IF(REF(CC,5)>0 AND REF(CC,4)<0 AND REF(CC,3)>0,3,0);
S4:=IF(REF(CC,5)<0 AND REF(CC,4)<0 AND REF(CC,3)>0,4,0);
S5:=IF(REF(CC,5)>0 AND REF(CC,4)>0 AND REF(CC,3)<0,5,0);
S6:=IF(REF(CC,5)<0 AND REF(CC,4)>0 AND REF(CC,3)<0,6,0);
S7:=IF(REF(CC,5)>0 AND REF(CC,4)<0 AND REF(CC,3)<0,7,0);
S8:=IF(REF(CC,5)<0 AND REF(CC,4)<0 AND REF(CC,3)<0,8,0);
SS:=S1+S2+S3+S4+S5+S6+S7+S8;
X1:=IF(REF(CC,2)>0 AND REF(CC,1)>0 AND CC>0,1,0);
X2:=IF(REF(CC,2)<0 AND REF(CC,1)>0 AND CC>0,2,0);
X3:=IF(REF(CC,2)>0 AND REF(CC,1)<0 AND CC>0,3,0);
X4:=IF(REF(CC,2)<0 AND REF(CC,1)<0 AND CC>0,4,0);
X5:=IF(REF(CC,2)>0 AND REF(CC,1)>0 AND CC<0,5,0);
X6:=IF(REF(CC,2)<0 AND REF(CC,1)>0 AND CC<0,6,0);
X7:=IF(REF(CC,2)>0 AND REF(CC,1)<0 AND CC<0,7,0);
X8:=IF(REF(CC,2)<0 AND REF(CC,1)<0 AND CC<0,8,0);
XX:=X1+X2+X3+X4+X5+X6+X7+X8;
YUI:=MOD(SS+XX+时辰,6);
DD:=IF(YUI=0,6,YUI);
NO:=IF(SS=5,2,IF(SS=6,2,0))+IF(SS<=2,2,IF(SS>=7,0,0));
NP:=IF(SS>4,0,1);
NK:=IF(XX=5,2,IF(XX=6,2,0))+IF(XX<=2,2,IF(XX>=7,0,0));
NJ:=IF(XX>4,0,1);
NI:=(SS-INTPART(SS/2)*2)*4;
NL:=(XX-INTPART(XX/2)*2)*4;
XXX:=IF(NK=NO,2,0)+IF(NJ=NP,1,0)+IF(NL=NI,4,0);
L6:=IF(DD=6,IF(DD=6 AND NI=0,4,0),NI);
L5:=IF(DD=5,IF(DD=5 AND NO=0,2,0),NO);
L2:=IF(DD=2,IF(DD=2 AND NK=0,2,0),NK);
L4:=IF(DD=4,IF(DD=4 AND NP=0,1,0),NP);
L3:=IF(DD=3,IF(DD=3 AND NL=0,4,0),NL);
L1:=IF(DD=1,IF(DD=1 AND NJ=0,1,0),NJ);
LA:=L6+L5+L4;
LB:=L3+L2+L1;
DL1:=IF(LA=4,7,IF(LA=0,8,0));
BL1:=IF(LA=5,3,IF(LA=1,4,0));
AL1:=IF(LA=7,1,IF(LA=3,2,0));
CL:=IF(LB=6,5,IF(LB=2,6,0));
DL:=IF(LB=4,7,IF(LB=0,8,0));
CL1:=IF(LA=6,5,IF(LA=2,6,0));
AL:=IF(LB=7,1,IF(LB=3,2,0));
BL:=IF(LB=5,3,IF(LB=1,4,0));
XXS:=AL+BL+CL+DL;
SSX:=AL1+BL1+CL1+DL1;
LC:=IF(DATE>LSOLARTERMDATE(3),1,0);
A:=LC+IF(DATE>LSOLARTERMDATE(5),1,0)+IF(DATE>LSOLARTERMDATE(7),1,0);
A3:=IF(DATE>LSOLARTERMDATE(9),1,0)+IF(DATE>LSOLARTERMDATE(11),1,0)+IF(DATE>LSOLARTERMDATE(13),1,0);
A6:=IF(DATE>LSOLARTERMDATE(15),1,0)+IF(DATE>LSOLARTERMDATE(17),1,0)+IF(DATE>LSOLARTERMDATE(19),1,0);
A9:=IF(DATE>LSOLARTERMDATE(21),1,0)+IF(DATE>LSOLARTERMDATE(23),1,0)+IF(LC=0,12,0);
YL:=A3+A6+A9+A;
-0.7,POINTDOT,color10000;
PO:=SYSPARAM(1)=BARPOS;
DRAWTEXT(YL=11 AND PO,8,'子 '),ALIGN2,colorFF;
DRAWTEXT(YL=12 AND PO,8,'丑 '),ALIGN2,colorFF;
DRAWTEXT(YL=1 AND PO,8,'寅 '),ALIGN2,colorFF;
DRAWTEXT(YL=2 AND PO,8,'卯 '),ALIGN2,colorFF;
DRAWTEXT(YL=3 AND PO,8,'辰 '),ALIGN2,colorFF;
DRAWTEXT(YL=4 AND PO,8,'巳 '),ALIGN2,colorFF;
DRAWTEXT(YL=5 AND PO,8,'午 '),ALIGN2,colorFF;
DRAWTEXT(YL=6 AND PO,8,'未 '),ALIGN2,colorFF;
DRAWTEXT(YL=7 AND PO,8,'申 '),ALIGN2,colorFF;
DRAWTEXT(YL=8 AND PO,8,'酉 '),ALIGN2,colorFF;
DRAWTEXT(YL=9 AND PO,8,'戌 '),ALIGN2,colorFF;
DRAWTEXT(YL=10 AND PO,8,'亥 '),ALIGN2,colorFF;
DRAWTEXT(XX=1 OR XX=4>0 AND PO,XX=1 OR XX=4,'子 '),ALIGN2,color808080;
SHUL:=IF(SS=7,5,IF(SS=6,6,0));
DRAWTEXT(SHUL>0 AND PO,SHUL,'子 '),ALIGN2,color808080;
HUL:=IF(XX=1,2,IF(XX=4,2,0))+IF(XX=6,1,0);
DRAWTEXT(HUL>0 AND PO,HUL,'寅 '),ALIGN2,colorFFFF00;
HL9:=IF(SS=7,6,0);
LWU:=IF(SS=1,4,IF(SS=4,4,0));
DRAWTEXT(HL9>0 AND PO,HL9,'寅 '),ALIGN2,colorFFFF00;
CLN:=IF(XX=1,3,IF(XX=4,3,0))+IF(XX=6,2,IF(XX=7,1,0));
DRAWTEXT(CLN>0 AND PO,CLN,'辰 '),ALIGN2,colorFFFF;
DRAWTEXT(LWU>0 AND PO,LWU,'午 '),ALIGN2,colorFF;
LK:=IF(XX=6,3,IF(XX=7,2,0));
DRAWTEXT(LK>0 AND PO,LK,'午 '),ALIGN2,colorFF;
VENA:=IF(SSX=1,5,IF(SSX=4,5,0))+IF(SSX=6,4,0);
DRAWTEXT(VENA>0 AND PO,VENA,'申 &n |