设为首页收藏本站

指标编写学习论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 4738|回复: 1
打印 上一主题 下一主题

独霸牛熊金钻指标公式源码

[复制链接]

4970

主题

5087

帖子

27万

积分

管理员

微信号zuozhanba,QQ712997893

Rank: 9Rank: 9Rank: 9

积分
275567
跳转到指定楼层
楼主
发表于 2016-5-8 15:57:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
{公式名称: 独霸牛熊
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无

参数精灵:无
用法注释:无
公式源码:}
DRAWGBK(OPEN>CLOSE,RGB(1,1,1),RGB(0,0,0),0,13,0);
X_1:=PERIOD=5 AND CLOSE>0 AND VOL>1;
X_2:=1;
X_3:=EMA(EMA(CLOSE,9),9);
X_4:=(X_3-REF(X_3,1))/REF(X_3,1)*1000;
X_5:=EMA(EMA(CLOSE,8),8);
X_6:=(X_5-REF(X_5,1))/REF(X_5,1)*1000;
X_7:=X_6>0;
X_8:=X_6<=0;
X_9:=EMA(CLOSE,2);
X_10:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
X_11:=CROSS(X_9,X_10);
X_12:=CROSS(X_10,X_9);
X_13:=IF(X_11 AND X_7,1,IF(COUNT(X_11 AND X_8,BARSLAST(X_12)+1)=1 AND CROSS(X_6,0),1,0));
X_14:=X_13 AND COUNT(X_13,BARSLAST(X_12)+1)=1;
X_15:=X_12 AND COUNT(X_12,BARSLAST(X_14)+1)=1;
X_16:=X_14;
X_17:=CLOSE/REF(OPEN,BARSLAST(X_14))<1-7/100 AND COUNT(X_14,BARSLAST(X_14)+1)=1 AND COUNT(X_15,BARSLAST(X_14)+1)=0;
X_18:=IF(X_17 AND COUNT(X_17,BARSLAST(X_14)+1)=1,1,IF(X_15 AND COUNT(X_17,BARSLAST(X_14)+1)=0,1,0));
X_19:=COUNT(X_17,BARSLAST(X_16)+1)>=1 AND CROSS(CLOSE,0.965*REF(OPEN,BARSLAST(X_16)));
X_20:=(X_19 AND X_18)=0;
X_21:=X_16 AND COUNT(X_18,X_2)=0 OR X_19 AND X_20;
X_22:=CLOSE/REF(OPEN,BARSLAST(X_19))<1-7/100 AND COUNT(X_19,BARSLAST(X_19)+1)=1 AND COUNT(X_15,BARSLAST(COUNT(X_19,BARSLAST(X_19)+1))+1)=0;
X_23:=X_15 AND COUNT(X_19,BARSLAST(X_21)+1)=1 OR (X_22 AND SUM(X_22,0)=1);
X_24:=(X_23 AND X_21)=0;
X_25:=X_18 AND COUNT(X_18,BARSLAST(X_21)+1)=1 OR X_23 AND X_24;
X_26:=X_21 AND COUNT(X_21,BARSLAST(X_25)+1)=1;
X_27:=X_25 AND COUNT(X_25,BARSLAST(X_26)+1)=1;
X_28:=IF(COUNT(X_27,BARSCOUNT(CLOSE))=0 AND COUNT(X_26,BARSCOUNT(CLOSE))=0,1,0);
X_29:=X_28 AND CROSS(X_4,0);
X_30:=IF(X_28,X_29,X_26);
X_31:=X_30 AND X_1;
X_32:=MA(CLOSE,5);
X_33:=MA(CLOSE,10);
X_34:=MA(CLOSE,30);
X_35:=MA(CLOSE,60);
X_36:=EMA(CLOSE,5);
X_37:=EMA(CLOSE,6);
X_38:=DRAWLINE(LOW=LLV(LOW,BARSLAST(CROSS(X_37,X_36))+1),LLV(LOW,BARSLAST(CROSS(X_37,X_36))+1),HIGH=HHV(HIGH,BARSLAST(CROSS(X_36,X_37))+1),HHV(HIGH,BARSLAST(CROSS(X_36,X_37))+1),0);
X_39:=(2*CLOSE+HIGH+LOW)/4;
X_40:=LLV(X_39,21);
X_41:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
X_42:=REF(X_41,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_43:=REF(X_42,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_44:=REF(X_43,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_45:=REF(X_44,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_46:=REF(X_45,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_47:=REF(X_46,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_48:=REF(X_47,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_49:=REF(X_48,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_50:=REF(X_49,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_51:=REF(X_50,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_52:=REF(X_51,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_53:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
X_54:=REF(X_53,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_55:=REF(X_54,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_56:=REF(X_55,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_57:=REF(X_56,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_58:=REF(X_57,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_59:=REF(X_58,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_60:=REF(X_59,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_61:=REF(X_60,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_62:=REF(X_61,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_63:=REF(X_62,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_64:=REF(X_63,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_65:=REF(X_53 OR X_54 OR X_55 OR X_56 OR X_57 OR X_58 OR X_59 OR X_60 OR X_61 OR X_62 OR X_63 OR X_64,1) AND X_41;
X_66:=REF(X_41 OR X_42 OR X_43 OR X_44 OR X_45 OR X_46 OR X_47 OR X_48 OR X_49 OR X_50 OR X_51 OR X_52,1) AND X_53;
X_67:=(HIGH+LOW+CLOSE)/3;
X_68:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
X_69:=ABS(X_68*(X_67-MIN(CLOSE,OPEN)));
X_70:=ABS(X_68*(MIN(OPEN,CLOSE)-LOW));
X_71:=X_69;
X_72:=-X_70;
X_73:=X_71-ABS(X_72)>X_71*0.5;
STICKLINE(X_73 AND X_38 AND X_65 OR (X_73 AND X_38 AND X_31),80,0,3,0),COLORYELLOW;


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
购买股票池请咨询微信号zuozhanba,QQ712997893!股票池体验QQ群342994005
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

 
 
在线客服
指标交流群:
理想论坛金钻指标股票
指标团购群:
做站吧指标团购群
微信扫一扫加好友

QQ|Archiver|手机版|小黑屋|指标编写学习论坛 ( 粤ICP备14021653号-5   

GMT+8, 2024-12-26 22:21 , Processed in 0.191414 second(s), 31 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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