通達信纏論2021主圖指標公式

;

網1:EXPMA(CLOSE,5),COLORWHITE;

網2:EXPMA(CLOSE,12),POINTDOT;

網3:EXPMA(CLOSE,30),COLORFF00FF,LINETHICK3;

IF(網3

IF(網3

IF(網1

網A:=EMA(EMA(EMA(EMA(C,1),2),2),2);

DRAWTEXT(CROSS(網A,REF(網A,1)),L,'買'),COLORFF00FF;

N1:=10;N2:=10;DISP:=2;

K:=IF(PERIOD=5,1,

IF(PERIOD=6,1,

IF(PERIOD=7,1,

IF(PERIOD=8,1,

IF(PERIOD=9,1,

IF(PERIOD=10,1,

IF(PERIOD=11,2,

IF(PERIOD=4,1,

IF(PERIOD=3,1,

IF(PERIOD=2,1,

IF(PERIOD=1,1,1)))))))))))/10;

P1:=PEAK(1,K*N1,1);

P2:=PEAK(1,K*N1,2);

WP1:=PEAKBARS(1,K*N1,1);

WP2:=PEAKBARS(1,K*N1,2);

T1:=TROUGH(2,K*N2,1);

T2:=TROUGH(2,K*N2,2);

WT1:=TROUGHBARS(2,K*N2,1);

WT2:=TROUGHBARS(2,K*N2,2);

TJ1:=P1>T1 AND P2>T2 ;

ZD:=MAX(T1,T2);

ZG:=MIN(P1,P2);

LL:=MIN(T1,T2);

HH:=MAX(P1,P2);

TJ2:=FILTER(ZG>ZD,2);

TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));

TJ4:=TJ1&&TJ2;&¬(TJ3);

TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));

TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));

TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD;

TJ8:=TJ4&¬(TJ5 OR TJ6 OR TJ7);

ZSD:=IF(TJ8,ZD,DRAWNULL);

ZSG:=IF(TJ8,ZG,DRAWNULL);

ZSH:=IF(TJ8,HH,DRAWNULL);

ZSL:=IF(TJ8,LL,DRAWNULL);

STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;

STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;

DRAWTEXT(DISP=2,ZSH,'中樞'),COLORRED;

中樞高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSSDOT,COLORLIRED;

中樞低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIGREEN;

中樞最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;

中樞最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;

局部低點預選A:=BACKSET(LLV(L,5)

局部低點預選B:=BACKSET(局部低點預選A=0 AND REF(局部低點預選A,1)=1,2);

局部低點預選C:=IF(局部低點預選B=1 AND REF(局部低點預選B,1)=0,-1,0);

局部高點預選A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);

局部高點預選B:=BACKSET(局部高點預選A=0 AND REF(局部高點預選A,1)=1,2);

局部高點預選C:=IF(局部高點預選B=1 AND REF(局部高點預選B,1)=0,1,0);

缺口判斷:=IF(L>REF(H,1),1,IF(H

距前高天:=BARSLAST(局部高點預選C=1);

距前低天:=BARSLAST(局部低點預選C=-1);

小值週期:=LOWRANGE(L);

大值週期:=TOPRANGE(H);

低保留AA:=IF(局部低點預選C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留AB:=IF(局部低點預選C=-1 AND REF(距前高天,1)=4 OR LLV(缺口判斷,距前高天)=-1 OR LLV(L,距前低天+2)

低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L

預判:=IF((距前低天

判斷:=IF(局部高點預選C=1 AND REF(距前低天,1)REF(小值週期,距前低天+1) AND 大值週期>REF(小值週期,距前低天) AND 大值週期>REF(大值週期,距前高天),1,0);

高保留A:=IF(局部高點預選C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);

高保留B:=IF(局部高點預選C=1 AND REF(距前低天,1)=4 OR HHV(缺口判斷,距前低天)=1),1,0);

高保留:=IF((高保留A=1 OR 高保留B=1 OR 判斷=1) AND H>REF(L,距前低天+1),1,0);

預判A:=IF((距前高天

判斷A:=IF(局部低點預選C=-1 AND REF(距前高天,1)REF(大值週期,距前高天+1) AND 小值週期>REF(大值週期,距前高天) AND 小值週期>REF(小值週期,距前低天),-1,0);

低保留A:=IF(局部低點預選C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留B:=IF(局部低點預選C=-1 AND REF(距前高天,1)=4 OR LLV(缺口判斷,距前高天)=-1 OR 判斷A=-1),-1,0);

低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L

距前高天A:=BARSLAST(高保留=1);

距前低天A:=BARSLAST(低保留=-1);

預判X:=IF((距前低天A

判斷X:=IF(局部高點預選C=1 AND REF(距前低天A,1)REF(小值週期,距前低天A+1) AND 大值週期>REF(小值週期,距前低天A) AND 大值週期>REF(大值週期,距前高天A),1,0);

高保留XA:=IF(局部高點預選C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);

高保留XB:=IF(局部高點預選C=1 AND REF(距前低天A,1)=4 OR HHV(缺口判斷,距前低天A)=1),1,0);

高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判斷X=1) AND H>REF(L,距前低天A+1),1,0);

預判XA:=IF((距前高天A

判斷XA:=IF(局部低點預選C=-1 AND REF(距前高天A,1)REF(大值週期,距前高天A+1) AND 小值週期>REF(大值週期,距前高天A) AND 小值週期>REF(小值週期,距前低天A),-1,0);

低保留XA:=IF(局部低點預選C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)

低保留XB:=IF(局部低點預選C=-1 AND REF(距前高天A,1)=4 OR LLV(缺口判斷,距前高天A)=-1 OR 判斷XA=-1),-1,0);

低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L

距前高天YA:=BARSLAST(高保留X=1);

距前低天YA:=BARSLAST(低保留X=-1);

預判YX:=IF((距前低天YA

判斷YX:=IF(局部高點預選C=1 AND REF(距前低天YA,1)REF(小值週期,距前低天YA+1) AND 大值週期>REF(小值週期,距前低天YA) AND 大值週期>REF(大值週期,距前高天YA),1,0);

高保留YXA:=IF(局部高點預選C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);

高保留YXB:=IF(局部高點預選C=1 AND REF(距前低天YA,1)=4 OR HHV(缺口判斷,距前低天YA)=1),1,0);

高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判斷YX=1) AND H>REF(L,距前低天YA+1),1,0);

預判YXA:=IF((距前高天YA

判斷YXA:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)REF(大值週期,距前高天YA+1) AND 小值週期>REF(大值週期,距前高天YA) AND 小值週期>REF(小值週期,距前低天YA),-1,0);

低保留YXA:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)

低保留YXB:=IF(局部低點預選C=-1 AND REF(距前高天YA,1)=4 OR LLV(缺口判斷,距前高天YA)=-1 OR 判斷YXA=-1),-1,0);

低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L

AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L

極點保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);

局部極點:IF(極點保留=-1,L,IF(極點保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;

DRAWLINE(極點保留=-1,局部極點,極點保留=1,局部極點,0)COLORLIRED;

DRAWLINE(極點保留=1,局部極點,極點保留=-1,局部極點,0)COLORYELLOW;

DD1:=BARSLAST(ABS(極點保留)!=1);

DRAWTEXT(極點保留=1,局部極點,'*'),COLORGREEN;

DRAWTEXT(極點保留=-1,局部極點,'*'),COLORRED;

倍量:=VOL>=REF(V,1)*1.91 AND C>O;

縮量:=REF(V,1)>=VOL*1.91 AND C

STICKLINE(倍量,OPEN,CLOSE,2,0),COLORRED;

STICKLINE(縮量,OPEN,CLOSE,2,0),COLORGREEN;

C2:=REF(C,1);

漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);

跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);

STICKLINE(漲停,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;

高:=REFDATE(HHV(H,180),DATE);

低:=REFDATE(LLV(L,180),DATE);

H1:=高-(高-低)*0.191;

H2:=高-(高-低)*0.382,COLORFF6198;

H3:=高-(高-低)*0.5,COLORFFFFFF;

H4:=高-(高-低)*0.618;

H5:=高-(高-低)*0.809;

STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORGREEN;

STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;

STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORCCCCCC;

DRAWTEXT(CURRBARSCOUNT=1,高,' 高'),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,H1,' 809'),COLORCYAN;

DRAWTEXT(CURRBARSCOUNT=1,H2,' 618'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,H3,' 中'),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=1,H4,' 382'),COLORLIRED;

DRAWTEXT(CURRBARSCOUNT=1,H5,' 191'),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=1,低,' 低'),COLORRED;

STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;

STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;

STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;

STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;

距今:BARSSINCE(C)+1,NODRAW;

ZZ:=距今

條件:=TESTSKIP(ZZ=0);

首日中樞:(REF(H,距今-1)+REF(L,距今-1))/2,NODRAW;

首日中樞支撐:(首日中樞/1.5) ,COLORFFAAFF;

通達信纏論2021主圖指標公式
通達信纏論2021主圖指標公式

版權聲明:本文源自 網絡, 於,由 楠木軒 整理發佈,共 5928 字。

轉載請註明: 通達信纏論2021主圖指標公式 - 楠木軒