以下是合成3个指标BOLL–KDJ–CCI

 

C/C++ Code复制内容到剪贴板

  • {布灵香肠?}   
  • BOLL:MA(CLOSE,20);   
  • UP:BOLL+2*STD(CLOSE,20),COLORYELLOW;   
  • LO:BOLL-2*STD(CLOSE,20),COLORLIMAGENTA;   
  • MA5:MA(CLOSE,5);   
  • MA10:MA(CLOSE,10)POINTDOT,COLORLIBLUE;   
  • Z:=2*STD(CLOSE,20);   
  • RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  • D:=(SMA(SMA(RSV,3,1),3,1)*2.5)-100;   
  • K:=(SMA(RSV,3,1)*2.5)-100;   
  • J:=3*K-2*D;   
  • TYP:=(HIGH+LOW+CLOSE)/3;   
  • CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));   
  • JJ:IF(J>=100,BOLL+Z*J/100,IF(J<=(-100),BOLL+Z*J/100,DRAWNULL)),POINTDOT,COLORMAGENTA;   
  • CC:IF(CCI>=100,BOLL+Z*CCI/100,IF(CCI<=(-100),BOLL+Z*CCI/100,DRAWNULL)),POINTDOT,COLORGREEN;   
  • DRAWICON(CROSS(BOLL+Z*CCI/100,LO)=1,BOLL-Z*1.3,1);DRAWICON(CROSS(UP,BOLL+Z*CCI/100)=1,BOLL+Z*1.3,2);   
  • DRAWICON(CROSS(BOLL+Z*J/100,LO)=1,BOLL-Z*1.52,7);DRAWICON(CROSS(UP,BOLL+Z*J/100)=1,BOLL+Z*1.52,8);   
  • DRAWICON(CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,9);   
  • DRAWICON(CROSS(D,J)=1 AND D>20,BOLL+Z*1.3,15);   
  • W:BOLL+2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;   
  • M:BOLL-2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;   
  • JN1:=INTPART(J)/41=INTPART(INTPART(J)/41);   
  • JN2:=INTPART(J)/42=INTPART(INTPART(J)/42);   
  • DRAWTEXT(CROSS(J,(-100))=1 AND JN1,BOLL-Z*1.52,’ KDJ’),COLORRED;   
  • DRAWTEXT(CROSS(CCI,(-100))=1 AND JN2,BOLL-Z*1.3,’ CCI’),COLORRED;   
  • DRAWTEXT(CROSS(CCI,(-100))=1 AND CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,’ 金叉‘),COLOR4AE9E9;   

 

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