此指标来源于论坛,如涉及侵权,联系删除。指标仅供参考,不作投资依据。
源码: |
红线:LLV((2C+H+L)/4,21),LINETHICK2,COLORRED;
绿线:HHV((2C+H+L)/4,21),LINETHICK2,COLORGREEN;
年:=YEAR,NODRAW;
月:=MONTH,NODRAW;
星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
本月第几天:=BARSLAST(年_100+月!=REF(年_100+月,1))+1;
MA1:=REF(C,本周第几天);
MA2:=REF(MA1,本周第几天);
MA3:=REF(MA2,本周第几天);
MA4:=REF(MA3,本周第几天);
MA5:=REF(MA4,本周第几天);
MA6:=REF(MA5,本周第几天);
MA7:=REF(MA6,本周第几天);
MA8:=REF(MA7,本周第几天);
MA9:=REF(MA8,本周第几天);
十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10;
出击突破:REFDATE(十周价,DATE),COLORMAGENTA,DOTLINE;
DRAWTEXT(ISLASTBAR,出击突破,’ 出击突破’),COLORMAGENTA;
DRAWTEXT_FIX(1,0.00,0,0,‘所属行业:’)COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK)COLORMAGENTA;
DRAWTEXT_FIX(1,0.14,0,0,‘所属地区:’)COLORMAGENTA;
DRAWTEXT_FIX(1,0.20,0,0,DYBLOCK)COLORMAGENTA;
DRAWKLINE(H,O,L,C);
DRAWKLINE(H,IF(C<=REF(C,1),REF(C,1),DRAWNULL),L,IF(C<=REF(C,1),C,DRAWNULL));
STICKLINE(C<=REF(C,1),IF(C<=REF(C,1),REF(C,1),DRAWNULL),IF(C<=REF(C,1),C,DRAWNULL),3.05,0),COLORBLUE;
STICKLINE(C<=REF(C,1),IF(C<=REF(C,1),REF(C,1),DRAWNULL),IF(C<=REF(C,1),C,DRAWNULL),2.2,0),COLORFF7700;
STICKLINE(C<=REF(C,1),IF(C<=REF(C,1),REF(C,1),DRAWNULL),IF(C<=REF(C,1),C,DRAWNULL),1.5,0),COLORFF9900;
STICKLINE(C<=REF(C,1),IF(C<=REF(C,1),REF(C,1),DRAWNULL),IF(C<=REF(C,1),C,DRAWNULL),0.5,0),COLORFFBB00;
DRAWKLINE(H,IF(C>REF(C,1),REF(C,1),DRAWNULL),L,IF(C>REF(C,1),C,DRAWNULL));
STICKLINE(C>REF(C,1),IF(C>REF(C,1),REF(C,1),DRAWNULL),IF(C>REF(C,1),C,DRAWNULL),3.05,0),COLOR000099;
STICKLINE(C>REF(C,1),IF(C>REF(C,1),REF(C,1),DRAWNULL),IF(C>REF(C,1),C,DRAWNULL),2.2,0),COLOR0000CC;
STICKLINE(C>REF(C,1),IF(C>REF(C,1),REF(C,1),DRAWNULL),IF(C>REF(C,1),C,DRAWNULL),1.5,0),COLOR0000FF;
STICKLINE(C>REF(C,1),IF(C>REF(C,1),REF(C,1),DRAWNULL),IF(C>REF(C,1),C,DRAWNULL),0.5,0),COLORCC66FF;
STICKLINE(V/REF(V,1)>2 AND CLOSE>=OPEN,IF(C>REF(C,1),REF(C,1),DRAWNULL),IF(C>REF(C,1),C,DRAWNULL),1,0),COLOR66FFBB;