n:=4;
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
TYP:=(R+R1)/2;
cci:((R+R1)/2-MA((R+R1)/2,n*9))/(0.015*AVEDEV((R+R1)/2,n*9))/4+50,COLORAAAA00;
PARTLINE(CCI<0,CCI),COLORGRAY;
PARTLINE(CCI>50,CCI),COLORWHITE,LINETHICK2;
{ _飞狐股票指标公式}
RSV:=((R+R1)/2-LLV(R,n*9))/(HHV(R1,n*9)-LLV(R,n*9))*100;
K:=SMA(RSV,2+N,1);
D:=SMA(K,3,1);
J:=(3*K+2*D)/5,COLORRED,LINETHICK2;
持股线:J,COLORRED,LINETHICK2;
PARTLINE(J
0,COLORGREEN;20,COLORYELLOW,LINEDOT;50,COLORWHITE;80,COLORRED,LINEDOT;100,COLORBLUE;