公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

通达信基础位移副图指标 源码 贴图

2012-12-13 09:23| 发布者: admin| 查看: 95| 评论: 0

通达信基础位移副图指标 源码 贴图

通达信基础位移副图指标 源码 贴图

通达信基础位移副图指标 源码 贴图

{CYC5:CYC(5),COLORYELLOW;
CYC13:CYC(13),COLORFF00FF;
CYC34:CYC(34),COLORGREEN;}
CYC∞:=CYC.CYC∞,COLORFF9900;
{CYC∞:=MAXCYC;}
CYS∞:(CLOSE-CYC∞)/CYC∞*100,COLORRED,CIRCLEDOT;
成本谷:REF(CYC∞,BARSLAST(CYS∞<=0)-1){,PRECIS2},LINETHICK0,COLORRED;{赋值指标为最近一次刚上穿CYC∞时的CYC∞的数值}
负成本谷:=REF(CYC∞,BARSLAST(CYS∞>0)-1);
基础位移1:=100*(CLOSE-成本谷)/成本谷;
负基础位移1:=100*(CLOSE-负成本谷)/负成本谷;
基础位移:IF(CYS∞>=0,基础位移1,负基础位移1){,PRECIS2},COLORYELLOW;
牛天数:=BARSLAST(CROSS(CYS∞,0))+1;
熊天数:=(-1)*BARSLAST(CROSS(0,CYS∞))-1;
牛熊天数:IF(CYS∞>0,牛天数,熊天数){,PRECIS0},NODRAW,COLORMAGENTA;
STICKLINE(CROSS(CYS∞,0),10,0,2,0),COLORRED;
STICKLINE(CROSS(0,CYS∞),10,0,2,0),COLORBLUE;
【获利】:WINNER(CLOSE)*100,COLORYELLOW,NODRAW;
【活筹】:(WINNER(C*1.075)-WINNER(C*0.925))*100,COLORFFFFFF,NODRAW;
【获利纵横】:【获利】-【活筹】,NODRAW;
IF(【获利纵横】<=50,【获利纵横】,DRAWNULL),COLORGREEN,NODRAW;
IF(【获利纵横】>50,【获利纵横】,DRAWNULL),COLORRED,NODRAW;
【换手率】:VOL/CAPITAL*100,COLORWHITE,NODRAW;
【涨跌】:CLOSE-REF(C,1),COLORWHITE,NODRAW;
【涨跌幅】:(C-REF(C,1))/REF(C,1)*100,COLORWHITE,NODRAW;
DRAWTEXT_FIX(C>0,0,0,0,'【成本谷单位】:元'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.08,0,'【基础位移单位】:百分数“%”'),COLORWHITE;
{DRAWTEXT_FIX(C>0,0,0,0,'(【超大、大户、主力】:单位为万元。)'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.08,0,'(【柱状图、线条】:黄柱,当日超大净买。)'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.16,0,'(【仓位】:单位为%。)'),COLORWHITE;};



鲜花

握手

雷人

路过

鸡蛋
返回顶部