AJ:=IF(CLOSE=REF(CLOSE,1),AA-REF(AA,1),CLOSE-REF(CLOSE,1));
A1:=IF(P1=0,AI,AJ);
A2:=IF(P2=0,REF(A1,5),A1);
A3:=IF(P2=0,REF(A1,4),REF(A1,1));
A4:=IF(P2=0,REF(A1,3),REF(A1,2));
A5:=IF(P2=0,REF(A1,2),REF(A1,3));
A6:=IF(P2=0,REF(A1,1),REF(A1,4));
X1:=IF(P2=0,A1,REF(A1,5));
X2:=A2 0 AND A3 0 AND A4
X3:=A2 0 AND A3 0 AND A4
X4:=A2 0 AND A3 0 AND A4
X5:=A2 0 AND A3 0 AND A4
X6:=A2 0 AND A3 0 AND A4
X7:=A2 0 AND A3 0 AND A4
X8:=A2 0 AND A3 0 AND A4
S1:=A2 0 AND A3 0 AND A4
S2:=A5 0 AND A6 0 AND X1
S3:=A5 0 AND A6 0 AND X1
S4:=A5 0 AND A6 0 AND X1
S5:=A5 0 AND A6 0 AND X1
S6:=A5 0 AND A6 0 AND X1
S7:=A5 0 AND A6 0 AND X1
S8:=A5 0 AND A6 0 AND X1
M6:=A5 0 AND A6 0 AND X1
EXPLAIN(CLOSE 0,'●●●●●●●●●●'),ALIGN4,colorFF00;
EXPLAIN(CLOSE 0,STKLABEL+' '+STKNAME),ALIGN0,color4441FF;
EXPLAIN(CLOSE 0,'●●●●●●●●●●'),ALIGN4,colorFF00;
EXPLAIN(CLOSE 0,'八宫卦注解:'),ALIGN4,colorFF00;
EXPLAIN(CLOSE 0,'乾宫,加速推升密码'),ALIGN0,colorFF00FF;
EXPLAIN(CLOSE 0,'兑宫,低位转势密码'),ALIGN0,color4441FF;
EXPLAIN(CLOSE 0,'离宫,整理调整密码'),ALIGN0,colorFFFF;
EXPLAIN(CLOSE 0,'震宫,底部低位密码'),ALIGN0,colorFFFF00;
EXPLAIN(CLOSE 0,'巽宫,顶部高位密码'),ALIGN0,colorFFFF00;
EXPLAIN(CLOSE 0,'坎宫,整理调整密码'),ALIGN0,colorFFFF;
EXPLAIN(CLOSE 0,'艮宫,高位转势密码'),ALIGN0,color4441FF;
EXPLAIN(CLOSE 0,'坤宫,加速下跌密码'),ALIGN0,colorFF00FF;
EXPLAIN(CLOSE 0,'●●●●●●●●●●'),ALIGN4,colorFF00;
XX:=MA(CLOSE,6);
EXPLAIN(X2 AND S2,'乾为天--乾卦,乾宫八卦。卦词:乾,元,亨,利,贞。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,colorBE;
EXPLAIN(X2 AND S3,'泽天夬--夬卦,乾宫八卦。卦词:夬,扬于王庭,孚号。有厉告自邑,不利即戎,利有攸往。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,colorE4;
EXPLAIN(X2 AND S4,'火天大有--大有卦,乾宫八卦。卦词:大有,元亨。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,colorEA;
EXPLAIN(X2 AND S5,'雷天大壮--大壮卦,乾宫八卦。卦词:大壮,利贞。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,colorFF;
EXPLAIN(X2 AND S6,'风天小畜--小畜卦,乾宫八卦。卦词:小畜,亨。密云不语,自我西郊。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,color4441FF;
EXPLAIN(X2 AND S7,'水天需--需卦,乾宫八卦。卦词:需,有孚,光亨,贞吉。利涉大川。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,color436FFF;
EXPLAIN(X2 AND S8,'山天大畜--大畜卦,乾宫八卦。卦词:大畜,利贞,不家食,吉。利涉大川。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,color7A7DFF;
EXPLAIN(X2 AND M6,'地天泰--泰卦,乾宫八卦。卦词:泰,小往大来,吉,亨。属性:上涨(加速推升密码)。近期发展的可能方向为:(巽宫高位密码)。'),ALIGN0,color7A91FF;
EXPLAIN(X3 AND S2,'天泽履--履卦,兑宫八卦。卦词:履虎尾,不人。亨。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorA300;
EXPLAIN(X3 AND S3,'兑为泽--兑卦,兑宫八卦。卦词:兑,亨,利贞。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND S4,'火泽睽--睽卦,兑宫八卦。卦词:睽,小事吉。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND S5,'雷泽归妹--归妹卦,兑宫八卦。卦词:归妹,征凶,无攸利。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND S6,'风泽中孚--中孚卦,兑宫八卦。卦词:中孚,豚鱼吉,利涉大川,利贞。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND S7,'水泽节--节卦,兑宫八卦。卦词:节,亨。苦节,不可贞。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND S8,'山泽损--损卦,兑宫八卦。卦词:损,有孚,元吉,无咎,可贞,利有攸往。之用?二簋可用亨。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X3 AND M6,'地泽临--临卦,兑宫八卦。卦词:临,元亨利贞。至于八月有凶。属性:底转折(低位转势密码)。近期发展的可能方向为:(乾宫加速推升密码)及(巽宫高位密码)。'),ALIGN0,colorFF00;
EXPLAIN(X4 AND S2,'天火同人--同人卦,离宫八卦。卦词:同人于野,亨,利涉大川,利君子贞。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S3,'泽火革--革卦,离宫八卦。卦词:革,巳日乃孚,元亨利贞,悔亡。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S4,'离为火--离卦,离宫八卦。卦词:离,利贞,亨,畜牝牛吉。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S5,'雷火丰--丰卦,离宫八卦亨。卦词:丰,王假之,勿忧,宜日中。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S6,'风火家人--家人卦,离宫八卦。卦词:家人,利女贞。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S7,'水火既济--既济卦,离宫八卦。卦词:既济,亨。小利贞,初吉终乱。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND S8,'山火贲--贲卦,离宫八卦,亨。卦词:贲,小利有攸往。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X4 AND M6,'地火明夷--明夷卦,离宫八卦。卦词:明夷,利艰贞。属性:整理(调整密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorFFFF;
EXPLAIN(X5 AND S2,'天雷无妄--无妄卦,震宫八卦。卦词:元亨利贞。其匪正有眚,不利有攸往。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S3,'泽雷随--随卦,震宫八卦。卦词:元亨利贞,无咎。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S4,'火雷噬嗑--噬嗑卦,震宫八卦。卦词:亨,利用狱。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S5,'震为雷--震卦,震宫八卦。亨。卦词:震来,笑言哑哑,震惊百里,不丧匕。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S6,'风雷益--益卦,震宫八卦。卦词:利有攸往,利涉大川。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S7,'水雷屯--屯卦,震宫八卦。卦词:元亨利贞,勿用,有攸往,利建侯。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND S8,'山雷颐--颐卦,震宫八卦。卦词:贞吉。观颐,自求口实。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X5 AND M6,'地雷复--复卦,震宫八卦。卦词:亨,出入无疾,朋来,无咎。反复其道,七日来复,利有攸往。属性:底部(低位密码)。近期发展的可能方向为:(兑宫低位转势密码)或(坎宫调整密码)。'),ALIGN0,colorCCCCFF;
EXPLAIN(X6 AND S2,'天风姤--姤卦,巽宫八卦。卦词:姤,女壮,勿用取女。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S3,'泽风大过--大过卦,巽宫八卦。卦词:大过,栋桡,利有攸往,亨。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码(或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S4,'火风鼎--鼎卦,巽宫八卦。卦词:鼎,元吉,亨。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S5,'雷风恒--恒卦,巽宫八卦。卦词:恒,亨,无咎,利贞,利有攸往。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S6,'巽为风--巽卦,巽宫八卦。卦词:巽,小亨。利有攸往,利见大人。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S7,'水风井--井卦,巽宫八卦。卦词:井,改邑不改井,无丧无得,往来井井。至,亦未井,赢其瓶,凶。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND S8,'山风蛊--蛊卦,巽宫八卦。卦词:蛊,元亨,利涉大川,先甲三日,后甲三日。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X6 AND M6,'地风升--升卦,巽宫八卦。卦词:升,元亨,用见大人,勿恤,南征吉。属性:顶部(高位密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFF00FF;
EXPLAIN(X7 AND S2,'天水讼--讼卦,坎宫八卦。卦词:讼,有孚,窒。惕中吉。终凶。利见大人,不利涉大川。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S3,'泽水困--困卦,坎宫八卦。卦词:困,亨,贞,大人吉,无咎,有言不信。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S4,'火水未济--未济卦,坎宫八卦。卦词:未济,亨,小狐济,濡其尾,无攸利。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S5,'雷水解--解卦,坎宫八卦。卦词:解,利西南,无所往,其来复吉。有攸往,夙吉。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S6,'风水涣--涣卦,坎宫八卦。卦词:涣,亨,王假有庙,利涉大川,利贞。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S7,'坎为水--坎卦,坎宫八卦。卦词:习坎有孚,维心亨,行有尚。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND S8,'山水蒙--蒙卦,坎宫八卦。卦词:蒙,亨。匪我求童蒙,童蒙求我。初筮告,再三渎,渎则不告。利贞。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X7 AND M6,'地水师--师卦,坎宫八卦。卦词:师,贞,丈人吉,无咎。属性:整理(调整密码)。近期发展的可能方向为:(艮宫高位转势密码)或(离宫调整密码)。'),ALIGN0,colorFFEADD;
EXPLAIN(X8 AND S2,'天山遁--遁卦,艮宫八卦。卦词:亨,小利吉。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFFFF00;
EXPLAIN(X8 AND S3,'泽山咸--咸卦,艮宫八卦。卦词:亨,利贞。娶女,吉。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFFF300;
EXPLAIN(X8 AND S4,'火山旅--旅卦,艮宫八卦。卦词:小亨,旅贞吉。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFFE500;
EXPLAIN(X8 AND S5,'雷山小过--小过卦,艮宫八卦。卦词:亨,利贞。可小事,不可大事。飞鸟遗之音,不宜上,宜下。大吉。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFFDB00;
EXPLAIN(X8 AND S6,'风山渐--渐卦,艮宫八卦。卦词:女归吉,利贞。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFFAB00;
EXPLAIN(X8 AND S7,'水山蹇--蹇卦,艮宫八卦。卦词:利西南,不利东北,利见大人,贞吉。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorFF9800;
EXPLAIN(X8 AND S8,'艮为山--艮卦,艮宫八卦。卦词:艮其背,不获其身,行其庭,不见其人,无咎。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorEE9800;
EXPLAIN(X8 AND M6,'地山谦--谦卦,艮宫八卦。卦词:亨,君子有终。属性:顶转折(高位转势密码)。近期发展的可能方向为:(坤宫加速下跌密码)或(震宫低位密码)。'),ALIGN0,colorCC9800;
EXPLAIN(S1 AND S2,'天地否--否卦,坤宫八卦。卦词:否之匪人,不利君子贞。大往小来。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S3,'泽地萃--萃卦,坤宫八卦。卦词:萃,亨。王假有庙,利见大人,亨,利贞。用大牲吉,利有攸往。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S4,'火地晋--晋卦,坤宫八卦。卦词:晋,康侯用锡马蕃庶,昼日三接。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S5,'雷地豫--豫卦,坤宫八卦。卦词:豫,利建侯行师。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S6,'风地观--观卦,坤宫八卦。卦词:观,盥而不荐,有孚若。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S7,'水地比--比卦,坤宫八卦。卦词:比,吉。原筮,元永吉,无咎。不宁方来,后夫凶。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND S8,'山地剥--剥卦,坤宫八卦。卦词:剥,不利有攸往。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(S1 AND M6,'坤为地--坤卦,坤宫八卦。卦词:坤,元亨,利牝马之贞。君子有攸往,先迷后得主,利。西南得朋,东南丧朋。安贞吉。属性:下跌(加速下跌密码)。近期发展的可能方向为:(震宫低位密码)。'),ALIGN0,color90A9C1;
EXPLAIN(CLOSE 0,'●●●●●●●●●●'),ALIGN4,colorFF00;
DRAWICON(P1=0 AND CLOSE=OPEN AND AI 0 OR P1=1 AND CLOSE=REF(CLOSE,1) AND AJ 0,1,1),ALIGN5;
DRAWICON(P1=0 AND CLOSE=OPEN AND AI 0 OR P1=1 AND CLOSE=REF(CLOSE,1) AND AJ 0,1,2),ALIGN5;
DRAWTEXT(X2 AND S2,9,'乾n n n乾n宫n '),ALIGN1,colorBE;
DRAWTEXT(X2 AND S3,9,'夬n n n乾n宫n '),ALIGN1,colorE4;
DRAWTEXT(X2 AND S4,9,'大n有n n乾n宫n '),ALIGN1,colorEA;
DRAWTEXT(X2 AND S5,9,'大n壮n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(X2 AND S6,9,'小n畜n n乾n宫n '),ALIGN1,color4441FF;
DRAWTEXT(X2 AND S7,9,'需n n n乾n宫n '),ALIGN1,color436FFF;
DRAWTEXT(X2 AND S8,9,'大n畜n n乾n宫n '),ALIGN1,color7A7DFF;
DRAWTEXT(X2 AND M6,9,'泰n n n乾n宫n '),ALIGN1,color7A91FF;
DRAWTEXT(K AND X2 AND S2,9,'乾n n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S3,9,'夬n n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S4,9,'大n有n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S5,9,'大n壮n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S6,9,'小n畜n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S7,9,'需n n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND S8,9,'大n畜n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X2 AND M6,9,'泰n n n乾n宫n '),ALIGN1,colorFF;
DRAWTEXT(X3 AND S2,9,'履n n n兑n宫n '),ALIGN1,colorA300;
DRAWTEXT(X3 AND S3,9,'兑n n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND S4,9,'睽n n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND S5,9,'归n妹n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND S6,9,'中n孚n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND S7,9,'节n n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND S8,9,'损n n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(X3 AND M6,9,'临n n n兑n宫n '),ALIGN1,colorFF00;
DRAWTEXT(K AND X3 AND S2,9,'履n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S3,9,'兑n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S4,9,'睽n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S5,9,'归n妹n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S6,9,'中n孚n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S7,9,'节n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND S8,9,'损n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X3 AND M6,9,'临n n n兑n宫n '),ALIGN1,colorFF;
DRAWTEXT(X4 AND S2,9,'同n人n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S3,9,'革n n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S4,9,'离n n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S5,9,'丰n n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S6,9,'家n人n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S7,9,'既n济n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND S8,9,'贲n n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(X4 AND M6,9,'明n夷n n离n宫n '),ALIGN1,colorFFFF;
DRAWTEXT(K AND X4 AND S2,9,'同n人n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S3,9,'革n n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S4,9,'离n n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S5,9,'丰n n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S6,9,'家n人n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S7,9,'既n济n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND S8,9,'贲n n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X4 AND M6,9,'明n夷n n离n宫n '),ALIGN1,colorFF;
DRAWTEXT(X5 AND S2,9,'无n妄n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S3,9,'随n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S4,9,'噬n嗑n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S5,9,'震n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S6,9,'益n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S7,9,'屯n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND S8,9,'颐n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(X5 AND M6,9,'复n n n震n宫n '),ALIGN1,colorCCCCFF;
DRAWTEXT(K AND X5 AND S2,9,'无n妄n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S3,9,'随n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S4,9,'噬n嗑n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S5,9,'震n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S6,9,'益n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S7,9,'屯n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND S8,9,'颐n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X5 AND M6,9,'复n n n震n宫n '),ALIGN1,colorFF;
DRAWTEXT(X6 AND S2,9,'姤n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S3,9,'大n过n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S4,9,'鼎n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S5,9,'恒n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S6,9,'巽n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S7,9,'井n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND S8,9,'蛊n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(X6 AND M6,9,'升n n n巽n宫n '),ALIGN1,colorFF00FF;
DRAWTEXT(K AND X6 AND S2,9,'姤n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S3,9,'大n过n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S4,9,'鼎n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S5,9,'恒n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S6,9,'巽n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S7,9,'井n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND S8,9,'蛊n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X6 AND M6,9,'升n n n巽n宫n '),ALIGN1,colorFF;
DRAWTEXT(X7 AND S2,9,'讼n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S3,9,'困n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S4,9,'末n济n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S5,9,'解n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S6,9,'涣n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S7,9,'坎n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND S8,9,'蒙n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(X7 AND M6,9,'师n n n坎n宫n '),ALIGN1,colorFFEADD;
DRAWTEXT(K AND X7 AND S2,9,'讼n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S3,9,'困n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S4,9,'末n济n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S5,9,'解n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S6,9,'涣n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S7,9,'坎n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND S8,9,'蒙n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X7 AND M6,9,'师n n n坎n宫n '),ALIGN1,colorFF;
DRAWTEXT(X8 AND S2,9,'遁n n n艮n宫n '),ALIGN1,colorFFFF00;
DRAWTEXT(X8 AND S3,9,'咸n n n艮n宫n '),ALIGN1,colorFFF300;
DRAWTEXT(X8 AND S4,9,'旅n n n艮n宫n '),ALIGN1,colorFFE500;
DRAWTEXT(X8 AND S5,9,'小n过n n艮n宫n '),ALIGN1,colorFFDB00;
DRAWTEXT(X8 AND S6,9,'渐n n n艮n宫n '),ALIGN1,colorFFAB00;
DRAWTEXT(X8 AND S7,9,'蹇n n n艮n宫n '),ALIGN1,colorFF9800;
DRAWTEXT(X8 AND S8,9,'艮n n n艮n宫n '),ALIGN1,colorEE9800;
DRAWTEXT(X8 AND M6,9,'谦n n n艮n宫n '),ALIGN1,colorCC9800;
DRAWTEXT(K AND X8 AND S2,9,'遁n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S3,9,'咸n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S4,9,'旅n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S5,9,'小n过n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S6,9,'渐n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S7,9,'蹇n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND S8,9,'艮n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND X8 AND M6,9,'谦n n n艮n宫n '),ALIGN1,colorFF;
DRAWTEXT(S1 AND S2,9,'否n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S3,9,'萃n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S4,9,'晋n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S5,9,'豫n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S6,9,'观n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S7,9,'比n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND S8,9,'剥n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(S1 AND M6,9,'坤n n n坤n宫n '),ALIGN1,color90A9C1;
DRAWTEXT(K AND S1 AND S2,9,'否n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S3,9,'萃n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S4,9,'晋n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S5,9,'豫n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S6,9,'观n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S7,9,'比n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND S8,9,'剥n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND S1 AND M6,9,'坤n n n坤n宫n '),ALIGN1,colorFF;
DRAWTEXT(K AND DATE,5.2,' 年'),ALIGN1,colorFFFF;
DRAWYITEXT(K AND DATE,5.2,GANZHI(DATE,0,0),0),ALIGN1,colorFFFF;
DRAWTEXT(K AND DATE,4.4,' 月'),ALIGN1,colorFFFF;
DRAWYITEXT(K AND DATE,4.4,GANZHI(DATE,0,1),0),ALIGN1,colorFFFF;
DRAWTEXT(K AND DATE,3.6,' 日'),ALIGN1,colorFFFF;
DRAWYITEXT(K AND DATE,3.6,GANZHI(DATE,0,2),0),ALIGN1,colorFFFF;
N:=GANZHI(DATE,0,3);
N:=N+7;
DRAWTEXT(K AND DATE,3.6,'每日收盘时辰: '),ALIGN2,colorFF;
DRAWYITEXT(K AND DATE,3.6,N,0),ALIGN2,colorFF;
J1:=2.8;
JJ1:=DATE-LSOLARTERMDATE(1)
J2:=JJ1 REF(JJ1,1);
JJ2:=DATE-LSOLARTERMDATE(2)
J3:=JJ2 REF(JJ2,1);
JJ3:=DATE-LSOLARTERMDATE(3)
J4:=JJ3 REF(JJ3,1);
JJ4:=DATE-LSOLARTERMDATE(4)
J5:=JJ4 REF(JJ4,1);
JJ5:=DATE-LSOLARTERMDATE(5)
J6:=JJ5 REF(JJ5,1);
JJ6:=DATE-LSOLARTERMDATE(6)
J7:=JJ6 REF(JJ6,1);
JJ7:=DATE-LSOLARTERMDATE(7)
J8:=JJ7 REF(JJ7,1);
JJ8:=DATE-LSOLARTERMDATE(8)
J9:=JJ8 REF(JJ8,1);
JJ9:=DATE-LSOLARTERMDATE(9)
J10:=JJ9 REF(JJ9,1);
JJ10:=DATE-LSOLARTERMDATE(10)
J11:=JJ10 REF(JJ10,1);
JJ11:=DATE-LSOLARTERMDATE(11)
J12:=JJ11 REF(JJ11,1);
JJ12:=DATE-LSOLARTERMDATE(12)
J13:=JJ12 REF(JJ12,1);
JJ13:=DATE-LSOLARTERMDATE(13)
J14:=JJ13 REF(JJ13,1);
JJ14:=DATE-LSOLARTERMDATE(14)
J15:=JJ14 REF(JJ14,1);
JJ15:=DATE-LSOLARTERMDATE(15)
J16:=JJ15 REF(JJ15,1);
JJ16:=DATE-LSOLARTERMDATE(16)
J17:=JJ16 REF(JJ16,1);
JJ17:=DATE-LSOLARTERMDATE(17)
J18:=JJ17 REF(JJ17,1);
JJ18:=DATE-LSOLARTERMDATE(18)
J19:=JJ18 REF(JJ18,1);
JJ19:=DATE-LSOLARTERMDATE(19)
J20:=JJ19 REF(JJ19,1);
JJ20:=DATE-LSOLARTERMDATE(20)
J21:=JJ20 REF(JJ20,1);
JJ21:=DATE-LSOLARTERMDATE(21)
J22:=JJ21 REF(JJ21,1);
JJ22:=DATE-LSOLARTERMDATE(22)
J23:=JJ22 REF(JJ22,1);
JJ23:=DATE-LSOLARTERMDATE(23)
J24:=JJ23 REF(JJ23,1);
JJ24:=DATE-LSOLARTERMDATE(24)
VARQS78:=JJ24 REF(JJ24,1);
DRAWTEXT(J2,J1,'●小寒'),colorFFFF;
DRAWTEXT(J3,J1,'●大寒'),colorFFFF;
DRAWTEXT(J4,J1,'●立春'),color71B255;
DRAWTEXT(J5,J1,'●雨水'),color71B255;
DRAWTEXT(J6,J1,'●惊蛰'),color71B255;
DRAWTEXT(J7,J1,'●春分'),color71B255;
DRAWTEXT(J8,J1,'●清明'),colorFFFF;
DRAWTEXT(J9,J1,'●谷雨'),colorFFFF;
DRAWTEXT(J10,J1,'●立夏'),colorFF;
DRAWTEXT(J11,J1,'●小满'),colorFF;
DRAWTEXT(J12,J1,'●芒种'),colorFF;
DRAWTEXT(J13,J1,'●夏至'),colorFF;
DRAWTEXT(J14,J1,'●小暑'),colorFFFF;
DRAWTEXT(J15,J1,'●大暑'),colorFFFF;
DRAWTEXT(J16,J1,'●立秋'),colorBBBBBB;
DRAWTEXT(J17,J1,'●处暑'),colorBBBBBB;
DRAWTEXT(J18,J1,'●白露'),colorBBBBBB;
DRAWTEXT(J19,J1,'●秋分'),colorBBBBBB;
DRAWTEXT(J20,J1,'●寒露'),colorFFFF;
DRAWTEXT(J21,J1,'●霜降'),colorFFFF;
DRAWTEXT(J22,J1,'●立冬'),colorFFFF00;
DRAWTEXT(J23,J1,'●小雪'),colorFFFF00;
DRAWTEXT(J24,J1,'●大雪'),colorFFFF00;
DRAWTEXT(VARQS78,J1,'●冬至'),colorFFFF00;
DRAWTEXT(LDAY=1,2,'●新月'),colorFFFF;
DRAWTEXT(LDAY=8,2,'●上弦'),colorFFFF;
DRAWTEXT(LDAY=15,2,'●满月'),colorFFFF;
DRAWTEXT(LDAY=23,2,'●下弦'),colorFFFF;