CC:=(H*3+C*2+O)/6;
C0:=(L*3+C*2+O)/6;
VAR1J:=REF(MA(C,20),10);
开:=O-VAR1J;
高:=H-VAR1J;
低:=L-VAR1J;
收:=C-VAR1J;
NX:=13;
BCJ:=(高*0.382+低*0.618+开*0.382+收*0.618)/2;
LJJ:=(BCJ+AMOUNT/(V*100)-VAR1J)/2;
HTJ:=REF((HHV(LJJ,NX*0.691)+HHV(LJJ,NX)+HHV(LJJ,NX*1.309))/3,1);
LTJ:=REF((LLV(LJJ,NX*0.691)+LLV(LJJ,NX)+LLV(LJJ,NX*1.309))/3,1);
ZTJ:=(HTJ+LTJ)/2;
STICKLINE(LJJ<ZTJ,REF(C0,BARSLAST(CROSS(ZTJ,LJJ))),REF(CC,BARSLAST(CROSS(ZTJ,LJJ))),4,0),COLORGRAY;
DRAWKLINE(H,O,L,C);
MA20:MA(CLOSE,20),COLORmagenta,LINETHICK2;
UB:MA20 + 2*STD(CLOSE,20),COLORORANGE,LINETHICK2;
LB:MA20 - 2*STD(CLOSE,20),COLORORANGE,LINETHICK2;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
女:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;
牛熊线:=MA(女,4);
男:MA(女,10),COLORBLUE,LINETHICK2;
SW:=CROSS(女,男) AND 女>男;
DRAWTEXT(SW,女*0.98,'湿吻'),COLORBLACK;
CW:=REF(女,1)<REF(女,2) AND 女>REF(女,1) AND REF(女,1)<牛熊线 AND 女>男;
DRAWTEXT(CW,女*0.98,'唇吻'),COLORRED;
DRAWTEXT(CROSS(男,女),男,'终');
DRAWICON(SW,女,14);
DRAWICON(CW,女,11); |