将此源码中黄圈内的绿箭做选股
2020/1/18 18:41:26
公式编写说明:
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);
公式源码示例:
月CCI:="CCI.CCI#MONTH";
CROSS(月CCI,-100);
看股吧公 式 www .kanguba.com
其它股票公式列表