DRAWTEXTABS(0,0,'桂林晚景');
空仓区:0,POINTDOT,COLORRED;
持股区:0,POINTDOT,COLORGREEN;
变盘点:0,POINTDOT,COLORYELLOW;
桂林山水甲天下:-0.05,COLORGREEN,POINTDOT;
股市峰谷任逍遥:0.05,COLORFFFF00,POINTDOT;
A:=(3*C+L+O+H)/6;
DK:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
VA1:=EMA(DK,3);
VA2:=EMA(VA1,2);
LA:=VA1-VA2;
LB:=VA2-VA1;
FILLRGN(LA>LB,LA,0),COLOR339900;
FILLRGN(LA<LB,LB,0),COLOR555555;
STICKLINE(LA>LB,LB,0,1,0),COLOR559933;
STICKLINE(LA<LB,LA,0,1,0),COLORGRAY;
DRAWICON(LA>LB,0,11);
DRAWICON(LA<LB,0,10);
DRAWICON(CROSS(LA,LB) OR CROSS(LB,LA),0,12);
DIFF3:= EMA(CLOSE,7) - EMA(CLOSE,89);
DEA3 := EMA(DIFF3,21);
MACD3:= 2*(DIFF3-DEA3)*10;
DIFF2:= EMA(CLOSE,5) - EMA(CLOSE,26);
DEA2 := EMA(DIFF2,9);
MACD2:= 2*(DIFF2-DEA2)*10;
DIFF1:= EMA(CLOSE,3) - EMA(CLOSE,13);
DEA1 := EMA(DIFF1,9);
MACD1:= 2*(DIFF1-DEA1)*10;
漓江水:DRAWGBK(CLOSE>0,STRIP(RGB(0,255,0),RGB(0,0,255),0)),COLORF80606;
VARA:=CROSS(ZIG(3,10),REF(ZIG(3,10),1));
VARB:=CROSS(REF(ZIG(3,10),1),ZIG(3,10));
VARC:=VARB;
南归雁: DRAWTEXT(FILTER(VARC,2),HHV(H,480),'}}}}'),COLORFF00FF;
VARD:=VARA;
DRAWTEXT(FILTER(VARD,2),-ABS(MACD3)*1.18,'︼︼'),COLORRED;
DRAWTEXT(FILTER(VARD,2) AND DEA3<=0,-ABS(MACD3)*1.18,'︼︼'),COLORRED,LINETHICK3;
STICKLINE(FILTER(VARD,2),-ABS(MACD3)*1.18,-ABS(MACD3)+1,1,0),COLORGREEN;
VARF:=(MONTH=1 OR MONTH=9) AND (DAY=7 OR DAY=8 OR DAY=9);
打鱼船:DRAWTEXT(FILTER(VARF,3),ABS(HHV(MACD3,34))*1.30,'指标入画图,低吸又高抛,心如漓江水,意随山起伏。'),COLORRED;
DRAWTEXT(FILTER(LONGCROSS(DIFF3,DEA3,34) AND DEA3<=0,34),LLV(MACD3,34)*1.2,'▲下网!'),COLORGREEN;
FILLRGN(MACD3>=0,0,MACD3),COLOR009E3A;
FILLRGN(MACD3<0,0,-MACD3),COLOR646464;
FILLRGN(MACD2>=0,0,MACD2),COLOR007D19;
FILLRGN(MACD2<0,0,-MACD2),COLOR555555;
FILLRGN(MACD1>=0,0,MACD1),COLOR006400;
FILLRGN(MACD1<0,0,-MACD1),COLOR414141;
FILLRGN(MACD3,0,-ABS(MACD3)*0.6),COLOR232323;
FILLRGN(MACD1,0,-ABS(MACD1)*0.6),COLOR0F0F0F; |