{叠加cci}
低1:=LLV(L,50);
低:REFDATE(低1,DATE)DOTLINE,COLORLIGRAY;
零轴:=低;
STICKLINE(C>0,1.05*零轴,0.95*零轴,4,0),COLORGRAY;
RTYP:=(HIGH+LOW+CLOSE)/3;
CCI14:=(RTYP-MA(RTYP,14))/(0.015*AVEDEV(RTYP,14))/2;
CCI84:=(RTYP-MA(RTYP,84))/(0.015*AVEDEV(RTYP,84))/2;
CCI:=零轴+CCI14 /100,COLORCYAN;
{叠加macd}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MacDZ:=(DIF-DEA)*2,COLORSTICK;
RCC:低;
STICKLINE((RCC+MACDZ)>RCC AND (RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,1),COLORMAGENTA;
STICKLINE((RCC+MACDZ)>RCC AND (RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,1),COLORRED;
STICKLINE((RCC+MACDZ)<=RCC AND (RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,1),COLORCYAN;
STICKLINE((RCC+MACDZ)<=RCC AND (RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,1),COLORLICYAN;
DRAWTEXT(ISLASTBAR,低,’—MACD’),COLORGREEN;
零轴+CCI14 /100,COLORCYAN;
DRAWKLINE(H,O,L,C);

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