股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 用CCI的买卖做主图买卖清晰可见 主图源码 说明


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-19 09:55:16
用CCI的买卖做主图买卖清晰可见 主图源码 说明介绍

用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;
 


 



通达信版源码:
{CCI买卖}
TYP:EMA((H+L+ 2*C)/4,4),COLOR0598FF,LINETHICK2;
CCI买:EMA(MA(TYP,N)-0.015*M*AVEDEV(TYP,N),2),COLOR0080FF;
CCI卖:EMA(MA(TYP,N)+0.015*M*AVEDEV(TYP,N),2),COLOR00FF80;

DRAWBAND(TYP,RGB(100,0,100),CCI卖,RGB(0,100,0));
DRAWBAND(CCI买,RGB(0,0,200),CCI卖,RGB(0,0,200));
TYP,COLOR0598FF,LINETHICK2;
EMA(MA(TYP,N)-0.015*M*AVEDEV(TYP,N),2),COLOR00FF00;
EMA(MA(TYP,N)+0.015*M*AVEDEV(TYP,N),2),COLOR0000FF;
{K线}
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.0,0),COLORRED;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.0,0),COLORCYAN;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;


{N(6,200,14),M(50,200,100) ;通达信参此数填入表内}
 


 






gd21477

回复

举报

QQ|

GMT+8, 2024-11-17 09:55

快速回复 返回顶部 返回列表