V0:=VOL*(O+C+H+L)/4;

MA1:=CLOSE;

MA2:=EMA(V0,20)/EMA(VOL,20);

MA30: EXPMA(CLOSE,30) , colorgreen;

MA60: EXPMA(CLOSE,60),COLORFF0099;

MA144: MA(CLOSE,144) , colorred;

STICKLINE(MA2>=REF(MA2,1),REFDATE(HHV(H,60),DATE),REFDATE(LLV(L,100),DATE),5,0),

COLOR600020;

STICKLINE(MA2<REF(MA2,1) AND MA60<REF(MA1,1),REFDATE(HHV(H,60),DATE),REFDATE(LLV(L,100),DATE),5,0),

COLOR404050;

DRAWKLINE(H,O,L,C);

界线:EMA(V0,17)/EMA(VOL,17),coloryellow,LINETHICK2;

B买:IF(CROSS(MA1,MA2),C,DRAWNULL),colormagenta,NODRAW;

持仓:IF(MA2>=REF(MA2,1),C,DRAWNULL),colorred,NODRAW;

S卖:IF(CROSS(MA2,MA1),C,DRAWNULL),colorligray,NODRAW;

空仓:IF(MA2<REF(MA2,1),C,DRAWNULL),colorgreen,NODRAW;

DRAWICON(CROSS(REF(MA2,1),MA2),H,2);

DRAWICON(CROSS(MA2,REF(MA2,1)),L,1);


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。