根据平平200911老师的神马木是浮云的指标添加的一些信号
首先感谢平平200911老师给的启迪,本人添加了更为直观的信号指示。至于周CCI,月CCI隐形函数的问题,个人认为正像平平老师说的运气好的话会翻倍。只要抓到强势股,这些信号不会消失的,参考价值还是很大滴。认同本人的观点的童鞋,加分顶顶吧
源码:
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
角度:ATAN((CCI/REF(CCI,1)-1)*100)*180/3.1416,NODRAW;
STICKLINE(CCI<-150,CCI,-150,2.5,0),COLORRED;
STICKLINE(C>0,-150,-151,2.5,0),COLORBLUE;
STICKLINE(C>0,+150,+151,2.5,0),COLORBLUE;
STICKLINE(C>0,+100,+100,2.5,0),COLORYELLOW;
STICKLINE(C>0,-100,-100,2.5,0),COLORYELLOW;
STICKLINE(C>0,0,0,2.5,0),COLORRED;
RSI1:=CCI;
AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);
BB:=BACKSET(AA,N+1);
CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);
A1:=BARSLAST(REF(CC,1));
顶背离:REF(CLOSE,A1+1)<CLOSE AND REF(RSI1,A1+1)>RSI1 AND CC,;
DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORGREEN;
AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);
A2:=BARSLAST(REF(CC2,1));
底背离:REF(CLOSE,A2+1)>CLOSE AND REF(RSI1,A2+1)<RSI1 AND CC2;
DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORMAGENTA;
周CCI:"CCI.CCI#WEEK",COLORMAGENTA,DOTLINE;
月CCI:"CCI.CCI#MONTH",COLORGREEN,DOTLINE;
日CCI:="CCI.CCI#DAY",COLORYELLOW,LINETHICK2;
日信号:IF(CROSS(日CCI,-100),20,0),COLORYELLOW;
周信号:IF(CROSS(周CCI,-100),40,0),COLORMAGENTA,LINETHICK2;
月信号:IF(CROSS(月CCI,-100),60,0),COLORGREEN,LINETHICK2;
DRAWICON(周信号 AND 日信号,5,15);
DRAWICON(周信号 AND 月信号,8,11);
DRAWICON(日信号 AND 月信号,13,17);