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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 「指标」黄金线阳盖阴主图指标 源码 通达信

 
    [-----复制链接-----]

22万

主题

22万

帖子

14

精华

积分
11042
楼主
2024-1-30 10:55:13
【资料名称】:黄金线阳盖阴主图指标 源码 通达信介绍
【资料描述】:

黄金线阳盖阴主图指标 源码 通达信

公式描述: 0=长阳,1=将军柱,2=次黄金,3=黄金,4=标准黄金
参数数量: 6
参数1: 基柱是倍量, 最小: 0, 最大: 1, 缺省: 1
参数2: 基柱类型, 最小: 0, 最大: 4, 缺省: 1
参数3: 显示板块, 最小: 0, 最大: 1, 缺省: 1
参数4: 回踩误差千分之, 最小: 0, 最大: 20, 缺省: 5
参数5: 显示黄金线, 最小: 0, 最大: 1, 缺省: 1
参数6: 回踩类型, 最小: 0, 最大: 4, 缺省: 0

基柱是倍量: 1=倍量,0=小倍量;
基柱类型: 0=长阳,1=将军柱,2=次黄金柱,3=黄金柱,4=标准黄金柱;
显示板块: 0=不显示,1=显示;
回踩误差千分之: 阳盖阴附近回踩点与黄金线的距离误差千分比;

DRAWTEXT_FIX(显示板块 AND ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(显示板块 AND ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(显示板块 AND ISLASTBAR,0.1,0,0,GNBLOCK);
STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;
STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;
C_:CONST(CLOSE),POINTDOT,COLORLIRED;
X_1:=MA(CLOSE,5);
MA5角度:ATAN((X_1/REF(X_1,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_2:=REF(CLOSE,1);
X_3:=IF(CLOSE>=1,10000,100000);
X_4:=1.1*X_2-49/X_3;
X_5:=1.05*X_2-49/X_3;
X_6:=0.9*X_2+51/X_3;
X_7:=0.95*X_2+51/X_3;
X_8:=NAMELIKE(1) OR NAMELIKE(2);
X_9:=IF(X_8,CLOSE>=X_5,CLOSE>=X_4);
X_10:=IF(X_8,CLOSE<=X_7,CLOSE<=X_6);
X_11:=IF(X_8,HIGH>=X_5,HIGH>=X_4);
X_12:=IF(X_8,LOW<=X_7,LOW<=X_6);
STICKLINE(X_11,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;
STICKLINE(X_12,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;
X_13:=CLOSE>OPEN AND (CLOSE>=X_5 OR CLOSE>1.05*OPEN-51/X_3) OR (CLOSE>1000 AND CLOSE>X_2*1.024);
STICKLINE(X_13,OPEN,CLOSE,1,0),COLOR0000BB;
X_14:=CLOSE<OPEN AND (CLOSE<=X_7 OR CLOSE<0.95*OPEN+49/X_3) OR (CLOSE>1000 AND CLOSE<X_2*0.976);
STICKLINE(X_14,OPEN,CLOSE,1,0),COLORLIGREEN;
STICKLINE(X_9,OPEN,CLOSE,1,0),COLORMAGENTA;
STICKLINE(X_10,OPEN,CLOSE,1,0),COLORLICYAN;
X_15:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
STICKLINE(X_15,OPEN,CLOSE,0,0),COLORRED;
X_16:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
STICKLINE(X_16,OPEN,CLOSE,0,0),COLORGREEN;
X_17:=PERIOD=5 AND NAMELIKE(3) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);
STICKLINE(X_17,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;
X_18:=MIN(CLOSE,OPEN);
X_19:=基柱类型;
X_20:=LLV(CLOSE,3)>=REF(X_18,3);
X_21:=IF(基柱是倍量=1,1.8,1.1);
X_22:=10;
X_23:=FILTER(BACKSET(FILTER(REF(VOL,X_22)=HHV(VOL,2*X_22+1),X_22),X_22+1),X_22);
X_24:=VOL>=REF(VOL,1)*X_21 OR X_23;
X_25:=CLOSE/REF(CLOSE,1)>1 OR CLOSE/OPEN>1;
X_26:=REF(X_25,3) AND X_20;
X_27:=CLOSE>REF(CLOSE,1);
X_28:=CLOSE>REF(MAX(CLOSE,OPEN),1) AND X_25;
X_29:=X_24 AND X_28;
X_30:=REF(X_29,3) AND X_20;
X_31:=MA(CLOSE,3)>=REF(CLOSE,3) AND CLOSE>=REF(CLOSE,3);
X_32:=MA(VOL,3)<=REF(VOL,3)*1.03;
X_33:=X_30 AND X_31 AND X_32;
X_34:=HHV(VOL,3)<=REF(VOL,3)*1.03;
X_35:=LLV(CLOSE,3)>=REF(CLOSE,3);
X_36:=X_33 AND X_35 AND X_34;
X_37:=COUNT(X_27,3)=3;
X_38:=COUNT(VOL<REF(VOL,1),3)=3;
X_39:=X_36 AND X_37 AND X_38;
基柱:IF(X_19=1,X_30,IF(X_19=2,X_33,IF(X_19=3,X_36,IF(X_19=4,X_39,X_26)))),NODRAW;
X_40:=BARSLAST(FILTER(基柱,3));
X_41:=REF(LOW,X_40+3);
X_42:=LLV(X_18,X_40)>=X_41 AND X_41=REF(X_41,1);
底线:IF(X_42,X_41,DRAWNULL),COLORYELLOW;
STICKLINE(基柱,X_41,X_41,25,0),COLORYELLOW;
X_43:=LLV(LOW,X_40);
X_44:=LLV(X_18,X_40);
基柱O:REF(OPEN,X_40+3),NODRAW;
X_45:=REF(LLV(LOW,3),X_40);
X_46:=显示黄金线=1 AND X_44>=X_45 AND X_45=REF(X_45,1);
X_47:=IF(X_45<X_41,X_41,X_45);
黄金虚线:IF(X_46,X_47,DRAWNULL),POINTDOT,COLORYELLOW;
STICKLINE(显示黄金线=1 AND 基柱 OR X_46,X_47,X_47,17,(-1)),COLORYELLOW;
黄金实线:REF(LLV(X_18,3),X_40),NODRAW,COLORMAGENTA;
STICKLINE(显示黄金线=1 AND 基柱,黄金实线,黄金实线,15,1),COLORBROWN;
X_48:=黄金实线>=X_41;
X_49:=X_44>=X_41;
X_50:=回踩误差千分之*CLOSE/1000;
X_51:=IF(X_50<0.01,0.01,X_50);
X_52:=ABS(X_43-X_41)<=X_51;
X_53:=ABS(X_43-基柱O)<=X_51;
X_54:=ABS(X_43-黄金虚线)<=X_51;
X_55:=ABS(X_43-黄金实线)<=X_51;
X_56:=ABS(X_44-X_41)<=X_51;
X_57:=ABS(X_44-基柱O)<=X_51;
X_58:=ABS(X_44-黄金虚线)<=X_51;
X_59:=ABS(X_44-黄金实线)<=X_51;
X_60:=IF(回踩类型=1 OR 回踩类型=0,X_52 OR X_56,0);
X_61:=IF(回踩类型=2 OR 回踩类型=0,X_53 OR X_57,0);
X_62:=IF(回踩类型=3 OR 回踩类型=0,X_54 OR X_58,0);
X_63:=IF(回踩类型=4 OR 回踩类型=0,X_55 OR X_59,0);
X_64:=X_60 OR X_61 OR X_62 OR X_63 AND X_48 AND X_49;
X_65:=LOW=X_43 OR X_18=X_44;
X_66:=BARSLAST(X_65);
X_67:=VOL<REF(VOL,1) AND 1;
X_68:=REF(CLOSE<OPEN,1) AND CLOSE>OPEN AND CLOSE>REF(MAX(CLOSE,OPEN),1);
X_69:=X_64 AND X_68 AND X_40>=1 AND X_66<=2;
X_70:=COUNT(X_69,1);
DRAWICON(X_70,LOW*0.98,1);





gd51541


【下载地址隐藏】:                    点:回复可见地址
游客,如果您要查看本帖隐藏内容请回复






上一篇:「指标」V形反转+复利牛股副图/选股预警 源码 通达信
下一篇:「指标」突破回彩主图源码 通达信 贴图
回复

举报

QQ|

GMT+8, 2024-11-24 10:29

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