MA(C,20) COLORMAGENTA;
D:=EMA(C,12)-EMA(C,26) ;
E:=EMA(D,9) ;
MACDA:=(D-E)*2 ;
D*100 COLORRED NODRAW;
E*100 COLORGREEN NODRAW;
RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
KQ:=SMA(RSVQ,3,1);
DQ:=SMA(KQ,3,1);
JQ:=3*KQ-2*DQ;
JQ*100 COLORWHITE NODRAW;
B:=200;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC) ;
M1:=DD*1.05;
M2:=DD*0.95;
Y11:=IF(MA(CLOSE,20)=DRAWNULL,C,M1);
Y12:=IF(MA(CLOSE,20)=DRAWNULL,C,M2);
Y21:=IF(MA(CLOSE,60)=DRAWNULL,C,MA(CLOSE,60));
李A:=CONST(HHV(H,B));
李B:=CONST(HHV(Y11,B));
李C:=CONST(HHV(Y21,B));
李D:=CONST(HHV(Y12,B));
大:=MAX(李A,MAX(李B,MAX(李D,李C)));
李1:=CONST(LLV(L,B));
李2:=CONST(LLV(Y11,B));
李3:=CONST(LLV(Y21,B));
李4:=CONST(LLV(Y12,B));
小:=MIN(李1,MIN(李2,MIN(李4,李3))) ;
K:=大-小;
宽C:=K*0.1;
XSC:=小-K*0.5;
宽:=K*0.4;
XSM:=小-K*0.4;
STICKLINE( CURRBARSCOUNT=30 OR CURRBARSCOUNT=60,大,小,1,0)COLORBROWN;
DRAWBAND(M2,RGB(70,70,70),DD,RGB(70,70,70));
DRAWBAND(DD,RGB(50,50,50),M1,RGB(50,50,50));
STICKLINE(HOUR=15 AND CURRBARSCOUNT<13 AND CURRBARSCOUNT>1,大,XSM,0,0),COLORLIGRAY ;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
NOTEXTM5:MA(CLOSE,5),COLORWHITE;
NOTEXTM10:MA(CLOSE,10),COLORYELLOW ;
NOTEXTM20:MA(CLOSE,20),COLORMAGENTA LINETHICK3;
NOTEXTM30:MA(CLOSE,30),COLORGREEN ;
NOTEXTM60:MA(CLOSE,60),COLORLIRED;
NOTEXTM120:IF(MA(CLOSE,120)<大 AND MA(CLOSE,120)>小 ,MA(CLOSE,120),DRAWNULL),COLORLIGRAY,DOTLINE;
GG:=CONST(HHV(V,B));
V1:=(V/GG)*宽C+XSC;
STICKLINE(V,XSC,V1,4,0),COLORGRAY;
STICKLINE(V=LLV(V,10),XSC,V1,5,0),COLORGREEN;
李1P:=CONST(HHV(E,B));
李2P:=CONST(HHV(D,B));
李3P:=CONST(HHV(MACDA,B));
李D1P:=MAX(李1P,MAX(李3P,李2P));
李1AP:=CONST(LLV(E,B));
李2AP:=CONST(LLV(D,B));
李3AP:=CONST(LLV(MACDA,B));
李X1P:=MIN(李1AP,MIN(李3AP,李2AP));
李宽P:=ABS(李D1P)+ABS(李X1P);
JA1:=(ABS(李X1P))/李宽P*宽+XSM ;
MD:=(MACDA+ABS(李X1P))/李宽P*宽+XSM ;
NOTEXT2Q8:XSM,COLORLIGRAY DOTLINE;
NOTEXT2Q2:小,COLORLIGRAY DOTLINE;
IF(CROSS(D,E),小-K*0.44,DRAWNULL)LINETHICK4 COLORYELLOW CROSSDOT;
IF(CROSS(JQ,KQ),小-K*0.44,DRAWNULL)LINETHICK4 COLORMAGENTA CROSSDOT;
DRAWICON(CROSS(D,E) AND CROSS(JQ,KQ) ,小-K*0.43, 3);
STICKLINE(MACDA>REF(MACDA,1),MD,JA1,1,0)COLORBROWN;
STICKLINE(MACDA<REF(MACDA,1),MD,JA1,1,0)COLORBLUE;
STICKLINE(MACDA=REF(MACDA,1),MD,JA1,1,0)COLORBROWN;
NOTEXTJA:(E+ABS(李X1P))/李宽P*宽+XSM COLORRED LINETHICK3;
NOTEXTHA:(D+ABS(李X1P))/李宽P*宽+XSM COLORRED LINETHICK3;
NOTEXTHAG:IF(E<REF(E,1),NOTEXTJA,DRAWNULL)LINETHICK3 COLORCYAN;
NOTEXTHAF:IF(D<REF(D,1),NOTEXTHA,DRAWNULL)LINETHICK3 COLORCYAN;
NOTEXT225:0.5*宽+XSM,COLORLIRED POINTDOT ;
NOTEXT228:0.8*宽+XSM,COLORLIRED POINTDOT ;
NOTEXT222:0.2*宽+XSM,COLORLIRED POINTDOT ;
NOTEXT4Q:KQ*宽+XSM,COLORWHITE ;
NOTEXT35Q:DQ*宽+XSM COLORWHITE ;
NOTEXT45Q:JQ*宽+XSM,COLORWHITE ; |