WWW:=L-(H-L)/2;
三高价:=MA(WWW,15)*1.07;
三低价:=MA(WWW,15)*0.97;
高价:=MA(WWW,40)*1.15;
低价:=MA(WWW,40)*0.95;
DIF1:=(EMA(CLOSE,60)-EMA(CLOSE,130));
DEA1:=EMA(DIF1,40);
周:=(DIF1-DEA1),STICK,LINETHICK7,COLORYELLOW;
YY:=低价+(高价-低价)/2;UU:=三低价+(三高价-三低价)/2;
IIII:=DIF1<REF(DIF1,1);
STICKLINE(IIII,高价,YY,4,0),COLORLIBLUE;
GGGG:=DIF1>REF(DIF1,1);
STICKLINE(GGGG,高价,YY,4,0),COLORLIRED;
HHHH:=周<REF(周,1);
STICKLINE(HHHH,YY,低价,4,0),COLORLIBLUE;
FFFF:=周>REF(周,1);
STICKLINE(FFFF,YY,低价,4,0),COLORLIRED;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26)),LINETHICK3,COLORMAGENTA;
DEA:=EMA(DIF,9),LINETHICK3,COLORBLUE;
日:=(DIF-DEA)*2,STICK,LINETHICK5,COLORRED;
CCCC:=DIF<REF(DIF,1);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
中轴:IF(C,CONST(C),DRAWNULL),COLORWHITE;
EMA255:EMA(C,255),COLORBLUE;
EMA133:EMA(C,133),COLORFFCC66;
A1:REF(EMA(C,13),1)COLORLIBLUE,LINETHICK0;
A1X:=(EMA(C,13)-A1)/A1*100,NODRAW;
STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
STICKLINE(CROSS(0,A1X),C,O,3,0),COLOR00CC00;
STICKLINE(CROSS(0,A1X),C,O,1,0),COLOR66FF00;
乖离:(L/A1-1)*100,COLORRED,NODRAW;
乖离1:(H/A1-1)*100,COLORRED,NODRAW;
STICKLINE(乖离<-13,C,(O+C)/2,3,0),COLORYELLOW;{进入弱势区间只能小仓位炒反弹}
STICKLINE(CROSS(C,A1),H,L,1,0),COLORRED; {上升开始,初期有回抽,后期直上};
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWICON(CROSS(ZX,C),H*1.01,2);
DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED;
DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;
STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;
TT5:=5;
V1:=MA(HIGH,30)*1.15;
V2:=MA(HIGH,3)*1.03;
V3:=MA(LOW,3)*0.97;
V4:=MA(LOW,30)*0.85;
M:=(H+L+3*C+O)/6;
M3:MA(M,3);
M7:=MA(M,7);
M14:=MA(M,14);
M21:=MA(M,21);
M28:=MA(M,28);
M35:=MA(M,35);
M42:=MA(M,42);
M49:=MA(M,49);
M56:=MA(M,56);
MH7:=MA(H,7);
MH14:=MA(H,14);
MH21:=MA(H,21);
MH28:=MA(H,28);
MH35:=MA(H,35);
MH42:=MA(H,42);
MH49:=MA(H,49);
MH56:=MA(H,56);
ML7:=MA(L,7);
ML14:=MA(L,14);
ML21:=MA(L,21);
ML28:=MA(L,28);
ML35:=MA(L,35);
ML42:=MA(L,42);
ML49:=MA(L,49);
ML56:=MA(L,56);
MZ:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/252 LINETHICK1 COLORRED;
MH:=(7*MH7+14*MH14+21*MH21+28*MH28+35*MH35+42*MH42+49*MH49+56*MH56)/252;
ML:=(7*ML7+14*ML14+21*ML21+28*ML28+35*ML35+42*ML42+49*ML49+56*ML56)/252;
GB:=H-MH;
ZB:=C-MZ;
DB:=L-ML;
BZCZ:=SQRT(SUM(POW(ZB,2),20)/20);
BZCH:=SQRT(SUM(POW(GB,2),20)/20);
BZCL:=SQRT(SUM(POW(DB,2),20)/20);
CVH:=BZCH/MH;
CVL:=BZCL/ML;
UPPER:MH*(1+CVH*(1+1/SQRT(20))) LINETHICK1 COLORBLUE;
DOWN:ML*(1-CVL*(1+1/SQRT(20))) LINETHICK1 COLORGREEN;
DRAWICON(CROSS(C,MZ),MZ,1);
|