大智慧CCI优化副图指标
-
相关简介:大智慧CCI优化副图指标 源码 N:=14; TYP := (HIGH + LOW + CLOSE)/3; (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); DRAWGBK((C 0),STRIP(RGB(10,10,30),RGB(10,10,10),0)); LC:=REF(CLOSE,1); 止损价位:(LC*1.0035*97+0.2)/99.65,COLOR03B4EC,LINETHICK0; RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/S
-
文章来源:股海网作者:股海网发布时间:2016-05-28浏览次数:
大智慧CCI优化副图指标
源码
N:=14;
TYP := (HIGH + LOW + CLOSE)/3;
(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
DRAWGBK((C> 0),STRIP(RGB(10,10,30),RGB(10,10,10),0));
LC:=REF(CLOSE,1);
止损价位:(LC*1.0035*97+0.2)/99.65,COLOR03B4EC,LINETHICK0;
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(R,3,1);
B:=SMA(A,3,1);
CCC:=(B/2+40)*1.1;
D:=SMA(CCC,3,1);
rr8:=MA(CLOSE,27);
rr9:=(CLOSE-rr8)/rr8*100;
rrA:=MA(rr9,2);
rrB:=BARSLAST(CROSS(-10,rrA)=1);
rrD:=rrA<-10 AND rrB>3;
D:=SMA(CCC,3,1);
TYP := (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
STICKLINE(CROSS(D,RSI5),50,0,8,0),COLORRED;
STICKLINE(CROSS(80,RSI5),-50,0,8,0),COLORGREEN;
买入:-100,DOTLINE,COLORwhite;
DRAWTEXT(CROSS(CCI,买入),-110,'买'),COLOR03B4EC,LINETHICK1,ALIGN1,VALIGN1;
D2:-100,colorwhite;
D1:-220,coloryellow;
D3:100,colorred;
PARTLINE(CCI,CCI>=REF(CCI,1),RGB(255,0,0),CCI<REF(CCI,1),RGB(0,255,0)),LINETHICK2,LAYER0;
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(R,3,1);
B:=SMA(A,3,1);
CCC:=(B/2+40)*1.1;
D:=SMA(CCC,3,1);
【回抽】:IF(CROSS(D,RSI5),50,0),STICK,COLORRED;
【逃命】:IF(CROSS(80,RSI5),-50,0),STICK,COLORGREEN;
庄家吸筹:
VAR9,LINETHICK0,COLOR00DDFF;
STICKLINE(VAR9>-120,0,VAR9,8,0),color338FDD;
STICKLINE(VAR9>-120,0,VAR9,7,0),color00AAFF;
STICKLINE(VAR9>-120,0,VAR9,6,0),color00BBFF;
STICKLINE(VAR9>-120,0,VAR9,5,0),color00CCFF;
STICKLINE(VAR9>-120,0,VAR9,4,0),color00DDFF;
STICKLINE(VAR9>-120,0,VAR9,2,0),color00EEFF;
STICKLINE(VAR9>-120,0,VAR9,1,0),color00FFFF;
DRAWGBKLAST(C>0,STRIP(RGB(0,0,20),RGB(0,0,20),0));