以下代码我自己加了线形粗细,当10天和20天线角度向上时就粗。
ZTB:=(C-REF(C,1))/REF(C,1)>=0.099 && C>=O && H>L;
DYX:=(REF(C,1)-C)/REF(C,1)>=0.05 && C<O && H>L;
STICKLINE(ZTB,O,C,3,0), COLORRED;
STICKLINE(DYX,C,O,3,0), COLORLIGREEN;
D5D:MA(C,5),COLORRED;
D10D:MA(C,10),COLORGREEN;
D20D:MA(C,20),COLORYELLOW;
D55D:MA(C,55),COLORCYAN;
D89D:MA(C,89),COLORMAGENTA;
D144D:MA(C,144),COLORRED,LINETHICK2;
D233D:MA(C,233),COLORGREEN,LINETHICK2;
D377D:MA(C,377),COLORLIGRAY,LINETHICK2;
D450D:MA(C,450),COLORRED,POINTDOT,LINETHICK4;
D610D:MA(C,610),COLORWHITE,POINTDOT,LINETHICK4;
二十天角度ATAN((D20D/REF(D20D,1)-1)*100)*180/3.14),NODRAW;
十天角度ATAN((D10D/REF(D10D,1)-1)*100)*180/3.14),NODRAW;
IF(十天角度>0,D10D,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(二十天角度>0,D20D,DRAWNULL),LINETHICK5,COLORYELLOW; |