CCI买卖--由CCI指标改编的主图公式(说明 源码)介绍
CCI买卖--由CCI指标改编的主图公式(说明 源码)
{CCI指标}
input:N(14,2,100),m(100,50,200,10);
TYP := (HIGH + LOW + CLOSE)/3;
CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
VERTLINE(cross(cci,m*-1),2),color0080FF;
VERTLINE(cross(m,cci),2),color00FF80;
DRAWTEXTABS(0,0,'红垂线买入'),color0080FF;
DRAWTEXTABS(65,0,'绿垂线卖出'),color00ff80;
REFLINE: -200, -100, 0, 100, 200;
{CCI买买指标}
input: n(14),m(100,50,200);
TYP := (HIGH + LOW + CLOSE)/3;
CCI买: ma(typ,n)-0.015*m*AVEDEV(typ,n),color0080ff;
CCI卖: ma(typ,n)+0.015*m*AVEDEV(typ,n),color00ff80;
操盘线: typ,color00e0e0,linethick2;
VERTLINE(cross(操盘线,CCI买),2),color0080FF;
VERTLINE(cross(CCI卖,操盘线),2),color00FF80;
DRAWTEXTABS(0,0,'红垂线买入'),color0080FF;
DRAWTEXTABS(65,0,'绿垂线卖出'),color00ff80;
gd19674