通达信精准谷底主图指标公式

通达信回调买入抓主升浪指标公式

通达信精准谷底主图指标公式:

DRAWTEXT_FIX(ISLAstBAR,0,0.25,0,DYBLOCK)COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0.06,0.25,0,HYBLOCK)COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0.11,0.25,0,GNBLOCK)COLORMAGENTA;

DRAWTEXT_FIX(1,0,10,0,EXTERNSTR(0,15))COLOR00FF00;

波峰距离1:=PEAKBARS(3,5,1),NODRAW;

波谷值:=TROUGH(2,5,1);

波谷距离1:=TROUGHBARS(2,5,1);

距离1:=CURRBARSCOUNT,NODRAW;

C21:=REF(C,1);

比前跌率:=(C21-C)*100/C21;

本日跌率:=(O-C)*100/O;

距离FK1:=波峰距离1-1;

线位置:= REF(L,距离FK1),LINETHICK3;

TJJ11:=波峰距离1>波谷距离1+5 AND 波峰距离1<120;

TJ2:=REF(本日跌率,距离FK1)>3 OR REF(比前跌率,距离FK1)>3;

TJ3:=距离1<240;

TJ4:=REF(C,距离FK1)<REF(O,距离FK1)

AND REF(C,距离FK1)<REF(MIN(C,O),距离FK1+1);

画线条件:=线位置=REF(线位置,1) AND TJ2 AND TJ4,LINETHICK3;

画线:=IF(画线条件,线位置,DRAWNULL)LINETHICK1,COLORMAGENTA;

百分比:=5;

右数峰序:=2;

精准谷底:CONST(TROUGH(2,5,1))POINTDOT,COLORWHITE;

波谷距离:= 1+CONST(TROUGHBARS(2,5,1)),NODRAW;

波峰:CONST(PEAK(1,5,2)),COLORLIBLUE,LINETHICK2;

允许误差:=0.024;

XG:= Abs(波峰-精准谷底)<=允许误差 {AND BARSCOUNT(V)>60};

波峰距离:= 1+CONST(PEAKBARS(1,5,2)),NODRAW;

距离:=CURRBARSCOUNT;

DRAWLINE(距离=波峰距离 AND XG,精准谷底,距离=1,精准谷底,1),COLORMAGENTA;

DRAWTEXT(距离=波谷距离 AND XG,L*0.98,' 精准峰谷线'),COLORYELLOW;

DRAWICON(距离=波峰距离,H*1.01,2);

DRAWICON(距离=波谷距离,L*0.985,1);

精准点:=(ABS(H-精准谷底)<=允许误差 OR ABS(L-精准谷底)<=0.024) ;

STICKLINE(精准点,精准谷底,精准谷底,6,1)LINETHICK9,COLORWHITE;

DRAWTEXT(精准点,L*0.98,' 精底'),COLORWHITE;

三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);

三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));

三日价涨A:=C>=REF(C,1);

三日价涨B:=C<REF(C,1);

三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);

TIM:=IF(DATE<1140214,1,0);

缩倍柱:=(vol*1.95<=REF(VOL,1))*TIM;

百日低量:=(VOL=LLV(VOL,100))*TIM;

倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;

四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;

四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;

前三引用不成立:=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),NODRAW;

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(L,REF(L,1)),REF(L,2))<=REF(L,3);

黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;

黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);

黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);

黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));

黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));

黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));

黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));

BACKSET201:=BACKSET(黄金线下影线,4);

FILTER201:=FILTER(BACKSET201,3),NODRAW;

BACKSET202:=BACKSET(黄金线实体下端,4);

FILTER202:=FILTER(BACKSET202,3),NODRAW;

BACKSET203:=BACKSET(黄金线上影线,4);

FILTER203:=FILTER(BACKSET203,3),NODRAW;

BACKSET204:=BACKSET(黄金线实体上端,4);

FILTER204:=FILTER(BACKSET204,3),NODRAW;

BACKSET205:=BACKSET(黄金线实体中间,4);

FILTER205:=FILTER(BACKSET205,3),NODRAW;

BACKSET2051:=BACKSET(黄金线实体中间1,4);

FILTER2051:=FILTER(BACKSET2051,3),NODRAW;

BACKSET2052:=BACKSET(黄金线实体中间2,4);

FILTER2052:=FILTER(BACKSET2052,3),NODRAW;

BACKSET2053:=BACKSET(黄金线实体中间3,4);

FILTER2053:=FILTER(BACKSET2053,3),NODRAW;

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),NODRAW;

HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW;

HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;

HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW;

HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;

HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;

HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;

HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;

黄金线:HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,POINTDOT,LINETHICK4;

倍量:=(V/REF(V,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.91),COLORYELLOW,NODRAW;

STICKLINE(黄金柱,O,C,2,0),COLORRED;

STICKLINE(倍量,O,C,2,0),COLORYELLOW;

STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(FILTER102,OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(FILTER103,OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(FILTER104,OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(FILTER105,OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(FILTER106,OPEN,CLOSE,0.5,0),COLORYELLOW;

DING:=MAX(O,C);{实顶}

DI:=MIN(O,C);{实底}

BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;

STICKLINE(FILTER(BL,3),OPEN,CLOSE,2,0),COLORYELLOW;

XXG:=SUMBARS(FILTER(BL,3),1);

STICKLINE(XXG,REF(DING,XXG-1),REF(DING,XXG-1),5,0),COLORYELLOW;

STICKLINE(XXG,REF(DI,XXG-1),REF(DI,XXG-1),5,0),COLORYELLOW;

DRAWNUMBER(BARSLAST(FILTER(BL,3))=1,C*1.04,REF(C,XXG-1));

DRAWNUMBER(BARSLAST(FILTER(BL,3))=1,O*0.96,REF(O,XXG-1));

N:=3;

L0:=0.00;

L1:=ABS(L-REF(L,1))<=L0;

L2:=ABS(L-REF(L,2))<=L0;

L3:=ABS(L-REF(L,3))<=L0;

L4:=ABS(L-REF(L,4))<=L0;

L5:=ABS(L-REF(L,5))<=L0;

L6:=ABS(L-REF(L,6))<=L0;

L7:=ABS(L-REF(L,7))<=L0;

L8:=ABS(L-REF(L,8))<=L0;

精准线首次:=L1 OR L2 OR L3 OR L4 OR L5 OR L6 OR L7 OR L8;

精准左:=FILTER(精准线首次,N);

天数:=BARSLAST(精准左);

LTS:=REF(L,天数);

精准右:=ABS(L-LTS)<=L0;

两月内:=BARSNEXT(ISLASTBAR);

STICKLINE(精准左 AND 两月内<30,L,L,200,-1),COLOR8F82C7;

G1:=ABS(H-REF(H,1))<=L0;

G2:=ABS(H-REF(H,2))<=L0;

G3:=ABS(H-REF(H,3))<=L0;

G4:=ABS(H-REF(H,4))<=L0;

G5:=ABS(H-REF(H,5))<=L0;

G6:=ABS(H-REF(H,6))<=L0;

G7:=ABS(H-REF(H,7))<=L0;

G8:=ABS(H-REF(H,8))<=L0;

精准线1首次:=G1 OR G2 OR G3 OR G4 OR G5 OR G6 OR G7 OR G8;

精准左1:=FILTER(精准线1首次,N) ;

天数1:=BARSLAST(精准左1);

GTS:=REF(L,天数1);

精准右1:=ABS(H-GTS)<=L0;

STICKLINE(精准左1 AND 两月内<30,H,H,200,-1){POINTDOT},COLORF082C7;

精下:IF(精准左,REF(L,BARSLAST(精准左)),0),COLORWHITE,NODRAW,COLOR8082C7;

精上:IF(精准左1,REF(H,BARSLAST(精准左1)),0),COLORWHITE,NODRAW,COLOR8082C7;

STICKLINE(FILTER(BACKSET(BARSTATUS=2,2),1),(O+C)/2,(O+C)/2,4,0),COLORWHITE,LINETHICK3;

通达信集合牛主图指标公式