用CCI的买卖做主图买卖清晰可见主图.源码.说明
-
相关简介:用CCI的买卖做主图买卖清晰可见主图.源码.说明 用CCI的买卖做主图买卖清晰可见.把CCI的买卖线加在主图上是买是卖一清二楚.股价超过或者低于买卖线,我们用不同的颜色区别开来.图面清爽.一看就知道你的股票现在是什么状态.【中间地带】是安全持股区.上突出是【出卖区】.下突破是【买入区】.具体买卖点一看便知.无需解释.当然是买卖区的【消失点】是最佳位置. {CCI买卖} input: n(14),m(100,50,200); {1.K线} STICKLINE(CLOSEOPEN or CLOSE=
-
文章来源:股海网作者:股海网发布时间:2012-07-09浏览次数:
用CCI的买卖做主图买卖清晰可见主图.源码.说明
用CCI的买卖做主图买卖清晰可见.把CCI的买卖线加在主图上是买是卖一清二楚.股价超过或者低于买卖线,我们用不同的颜色区别开来.图面清爽.一看就知道你的股票现在是什么状态.【中间地带】是安全持股区.上突出是【出卖区】.下突破是【买入区】.具体买卖点一看便知.无需解释.当然是买卖区的【消失点】是最佳位置.
{CCI买卖}
input: n(14),m(100,50,200);
{1.K线}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,0,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,0,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR006600;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;
{卖黄金,RSI=80}
LC:=REF(C,1);
卖黄金:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0;
STICKLINE(CROSS(80,卖黄金) AND C<O,H,L,2,0),COLOR00ffff,LAYER0;
STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,9,0 ),COLOR007777,LAYER0;
STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,8,0 ),COLOR009999,LAYER0;
STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,6,0 ),COLOR00BBBB,LAYER0;
STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,4,0 ),COLOR00DDDD,LAYER0;
STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,2 ,0 ),COLOR00ffff,LAYER0;
{2.CCI}
TYP:EMA((H+L+ 2*C)/4,4),color0598FF,linethick2;;
CCI买:EMA(ma(typ,n)-0.015*m*AVEDEV(typ,n),2),color00ff00;
CCI卖:EMA(ma(typ,n)+0.015*m*AVEDEV(typ,n),2),color0000ff;
FILLRGN(CCI买,CCI卖,CCI买<CCI卖 ,RGB(0,0,160)),COLORFF9900,LAYER7;
FILLRGN(TYP,CCI卖,TYP>CCI卖,RGB(80,0,80)),COLORFF9900,LAYER7;
FILLRGN(TYP,CCI买,TYP<CCI买,RGB(0,120,0)),COLORFF9900,LAYER7;