联系方式 Contact

云指标公式网

翔博软件:www.xiangbosoft.com

电话:18020657357

微信:332879389

Q Q:287762038

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

通达信指标-画线和黄金柱

2017-3-21 12:03:30点击:

问:如何才能每天都能免费收到这种原创好指标呢?

答:只需加微信:396950280申请加入爱公式VIP微信群即可,天天有更新!

公式源码:

TDXSTEP141:MA(CLOSE,29),LINETHICK2;
芙蓉出水1:=REF(CLOSE,1)*1.08;
TDXSTEP142:STICKLINE(芙蓉出水1 AND CURRBARSCOUNT=1 AND PERIOD=5,REF(CLOSE,1),芙蓉出水1,1.5,(-1)),COLORYELLOW,LINETHICK4;
TDXSTEP143:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA240:=MA(CLOSE,240);
VOL5:=MA(VOL,5);
VOL10:=MA(VOL,10);
VOL40:=MA(VOL,40);
量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)
TDXSTEP144:DRAWTEXT(量托,LOW-0.012,20),COLORWHITE;
AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));
BB1:=REF(COUNT(CLOSE
CC1:=CROSS(CLOSE,MA60) AND VOL>MA(VOL,5) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3;
芙蓉出水:=BB1 AND CC1;
TDXSTEP145:DRAWTEXT(芙蓉出水,HIGH+0.3,21),COLORMAGENTA;
TDXSTEP146:STICKLINE(芙蓉出水,HIGH,LOW,1,1),COLORMAGENTA;
TDXSTEP147:STICKLINE(芙蓉出水,OPEN,CLOSE,3,1),COLORMAGENTA,LINETHICK2;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;
TM:=VOL-MA(VOL,10);
一穿三:=MA1>OPEN AND MA2>OPEN AND MA3>OPEN AND MA1
TDXSTEP148:DRAWTEXT(一穿三,LOW-0.012,22),COLORMAGENTA;
TDXSTEP149:STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORMAGENTA;
TY:=CLOSE;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
前期高位:REF(CLOSE,BARSLAST(HD)),POINTDOT,COLORBLUE;
TDXSTEP150:STICKLINE(CLOSE,前期高位,前期高位,8,0),COLORBLUE;
三日不破:=MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))>=REF(LOW,3);
三日量缩:=MAX(MAX(VOL,REF(VOL,1)),REF(VOL,2))
三日价涨A:=CLOSE>=REF(CLOSE,1);
三日价涨B:=CLOSE
三日价涨C:=MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2))>=REF(LOW,3);
缩倍柱:=VOL*1.95<=REF(VOL,1);
百日低量:=VOL=LLV(VOL,100);
倍量柱:=CLOSE>REF(CLOSE,1)*1.04 AND VOL>=1.9*REF(VOL,1);
四日前倍量柱:=REF(VOL,3)>1.9*REF(VOL,4);
四日前高量柱:=REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩;
前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
黄金柱:=倍量黄金柱 OR 高量黄金柱;
次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;
准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND (三日量缩 AND 三日价涨C OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;
准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;
准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;
倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
将军柱:=倍量将军柱 OR 高量将军柱;
次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
次将军柱:=次倍量将军柱 OR 次高量将军柱;
准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;
准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;
准将军柱:=准倍量将军柱 OR 准高量将军柱;
BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);
FILTER100:=FILTER(BACKSET100,3);
BACKSET101:=BACKSET(黄金柱,4);
FILTER101:=FILTER(BACKSET101,3);
BACKSET102:=BACKSET(次黄金柱,4);
FILTER102:=FILTER(BACKSET102,3);
BACKSET103:=BACKSET(准黄金柱,4);
FILTER103:=FILTER(BACKSET103,3);
BACKSET104:=BACKSET(将军柱,4);
FILTER104:=FILTER(BACKSET104,3);
BACKSET105:=BACKSET(次将军柱,4);
FILTER105:=FILTER(BACKSET105,3);
BACKSET106:=BACKSET(准将军柱,4);
FILTER106:=FILTER(BACKSET106,3);
黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))<=REF(LOW,3);
黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))<=MIN(REF(CLOSE,3),REF(OPEN,3)) AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))>REF(LOW,3);
黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))>=REF(HIGH,3);
黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))>=MAX(REF(CLOSE,3),REF(OPEN,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))
黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))MIN(REF(CLOSE,3),REF(OPEN,3));
黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))MIN(REF(CLOSE,3),REF(OPEN,3)) AND REF(LOW,2)=MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2));
黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))MIN(REF(CLOSE,3),REF(OPEN,3)) AND REF(LOW,1)=MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2));
黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2))MIN(REF(CLOSE,3),REF(OPEN,3)) AND LOW=MIN(MIN(LOW,REF(LOW,1)),REF(LOW,2));
BACKSET201:=BACKSET(黄金线下影线,4);
FILTER201:=FILTER(BACKSET201,3);
BACKSET202:=BACKSET(黄金线实体下端,4);
FILTER202:=FILTER(BACKSET202,3);
BACKSET203:=BACKSET(黄金线上影线,4);
FILTER203:=FILTER(BACKSET203,3);
BACKSET204:=BACKSET(黄金线实体上端,4);
FILTER204:=FILTER(BACKSET204,3);
BACKSET205:=BACKSET(黄金线实体中间,4);
FILTER205:=FILTER(BACKSET205,3);
BACKSET2051:=BACKSET(黄金线实体中间1,4);
FILTER2051:=FILTER(BACKSET2051,3);
BACKSET2052:=BACKSET(黄金线实体中间2,4);
FILTER2052:=FILTER(BACKSET2052,3);
BACKSET2053:=BACKSET(黄金线实体中间3,4);
FILTER2053:=FILTER(BACKSET2053,3);
BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));
BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202));
BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));
BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205));
BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051));
BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052));
BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053));
最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);
DAY1:=SUMBARS(FILTER100,1);
HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0);
HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(CLOSE,OPEN),MIN(REF(CLOSE,DAY1-1),REF(OPEN,DAY1-1))),0);
HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0);
HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(CLOSE,OPEN),MAX(REF(CLOSE,DAY1-1),REF(OPEN,DAY1-1))),0);
HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0);
HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0);
HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0);
黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53;
立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);
立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(CLOSE,REF(CLOSE,1)),REF(CLOSE,2));
BACKSET300:=BACKSET(立桩量三日不破,4);
BACKSET301:=BACKSET(立桩量三日突破,4);
立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;
TDXSTEP151:DRAWTEXT(立桩量成立,HIGH*1.01,23),COLORGREEN;
TDXSTEP152:DRAWTEXT(FILTER101,LOW*0.986,24),COLORYELLOW;
TDXSTEP153:STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;
TDXSTEP154:DRAWTEXT(FILTER102,LOW*0.986,25),COLORYELLOW;
TDXSTEP155:DRAWTEXT(FILTER104,LOW*0.986,26),COLORYELLOW;
TDXSTEP156:STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;
K1:=SUMBARS(FILTER104,1);
TDXSTEP157:STICKLINE(K1,REF(LOW,K1-2),REF(LOW,K1-2),10,0),COLORYELLOW;
K2:=SUMBARS(FILTER101,1);
TDXSTEP158:STICKLINE(K2,REF(LOW,K2-2),REF(LOW,K2-2),10,0),COLORYELLOW;
转折幅度:=8;
CC:=IF(HIGH=HHV(HIGH,3) AND LOW>LLV(LOW,3),HIGH,LOW);
低A:=CONST(TROUGHBARS(CC,转折幅度,2));
低C:=CONST(TROUGHBARS(CC,转折幅度,1));
高B1:=CONST(PEAKBARS(CC,转折幅度,1));
高B2:=CONST(PEAKBARS(CC,转折幅度,2));
高B:=IF(高B1<低A AND 高B1>低C,高B1,高B2);
高A:=CONST(PEAKBARS(CC,转折幅度,2));
高C:=CONST(PEAKBARS(CC,转折幅度,1));
低B1:=CONST(TROUGHBARS(CC,转折幅度,1));
低B2:=CONST(TROUGHBARS(CC,转折幅度,2));
低B:=IF(低B1<低A AND 低B1>高C,低B1,低B2);
高AC差:=CONST(REF(CC,低C)-REF(CC,低A));
高AC间隔时间:=高A-高C;
下斜率:高AC差/高AC间隔时间,NODRAW;
下平线:=IF(CURRBARSCOUNT<=低B+1 AND 下斜率<0,CONST(REF(LOW,低B)),DRAWNULL);
下斜线:=DRAWLINE(CURRBARSCOUNT=高A+1 AND 下斜率<0,HIGH,CURRBARSCOUNT=高C+1,HIGH,1);
低AC差:=CONST(REF(CC,低C)-REF(CC,低A));
低AC间隔时间:=低A-低C;
上斜率:低AC差/低AC间隔时间,NODRAW;
上平线:=IF(CURRBARSCOUNT<=高B+1 AND 上斜率>0,CONST(REF(HIGH,高B)),DRAWNULL);
上斜线:=DRAWLINE(CURRBARSCOUNT=低A+1 AND 上斜率>0,LOW,CURRBARSCOUNT=低C+1,LOW,1);
上C点~D点时间:CEILING((上平线-CONST(REF(CLOSE,低C)))/上斜率),NODRAW;
下C点~D点时间:CEILING((下平线-CONST(REF(CLOSE,高C)))/下斜率),NODRAW;
TDXSTEP159:DRAWTEXT(CURRBARSCOUNT=低A+1 AND 上斜率>0,LOW*0.995,27),COLORYELLOW;
TDXSTEP160:DRAWTEXT(CURRBARSCOUNT=高B+1 AND 上斜率>0,HIGH*1.005,28),COLORYELLOW;
TDXSTEP161:DRAWTEXT(CURRBARSCOUNT=低C+1 AND 上斜率>0,LOW*0.995,29),COLORYELLOW;
TDXSTEP162:DRAWTEXT(CROSS(上斜线,上平线) AND 上斜率>0,LOW*0.995,30),COLORYELLOW;
TDXSTEP163:DRAWTEXT(CURRBARSCOUNT=高A+1 AND 下斜率<0,HIGH*1.005,27),COLORYELLOW;
TDXSTEP164:DRAWTEXT(CURRBARSCOUNT=低B+1 AND 下斜率<0,LOW*0.995,28),COLORYELLOW;
TDXSTEP165:DRAWTEXT(CURRBARSCOUNT=高C+1 AND 下斜率<0,HIGH*1.005,29),COLORYELLOW;
TDXSTEP166:DRAWTEXT(CROSS(下斜线,下平线) AND 下斜率<0,LOW*0.995,30),COLORYELLOW;
上升趋势:IF(上斜率>0,上斜线,DRAWNULL),COLOR66FF66,LINETHICK3;
高位水平线:上平线,COLORYELLOW,LINETHICK3;
下降趋势:IF(下斜率<0,下斜线,DRAWNULL),COLOR66FF66,LINETHICK3;
低位水平线:下平线,COLORYELLOW,LINETHICK3;
X:IF(CURRBARSCOUNT<=低A+1 AND 上斜率>0,CONST((上平线+REF(LOW,BARSLAST(CURRBARSCOUNT=低C+1 AND 上斜率>0)))/2),DRAWNULL),COLORDDDDDD,LINETHICK3;
Y:IF(CURRBARSCOUNT<=高A+1 AND 下斜率<0,CONST((下平线+REF(HIGH,BARSLAST(CURRBARSCOUNT=高C+1 AND 下斜率<0)))/2),DRAWNULL),COLORDDDDDD,LINETHICK3;
TDXSTEP167:DRAWTEXT(CURRBARSCOUNT=1 AND 上平线>0,上平线,31),COLORYELLOW;
TDXSTEP168:DRAWTEXT(CURRBARSCOUNT=1 AND 下平线>0,下平线,32),COLORYELLOW;
TDXSTEP169:DRAWTEXT(CURRBARSCOUNT=1 AND 上斜率>0,X,33),COLORWHITE;
TDXSTEP170:DRAWTEXT(CURRBARSCOUNT=1 AND 下斜率<0,Y,33),COLORWHITE;
MA13:MA(CLOSE,12),COLORYELLOW,LINETHICK4;
TDXSTEP171:IF(CLOSE>MA13,MA13,DRAWNULL),COLORRED,LINETHICK6;
TDXSTEP172:IF(CLOSE