最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 很好的自用指标

    正文概述    2024-04-14 17:53:25  

    AAF:=LLV(LOW,34),LINETHICK1,COLOR0000FF;
     BBF:=MA(AAF,4),LINETHICK1,COLORFF00FF;
     TYP := (HIGH + LOW + CLOSE)/3;
     CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
    差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
     CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
    差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
     CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
    差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
     CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
    差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
     CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
    差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
     CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
     AAA:=(3*C+H+L+O)/6;
     VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
     +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
     VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
     VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
     VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
     VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
     VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    短线:VAR1,COLORWHITE;
    中线:VAR6,COLORYELLOW;
     DRAWBAND(短线,RGB(255,255,50),中线,RGB(0,0,220));
    下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;
     TJ01:=CCI1>差值4;
    立桩量:=FILTER(TJ01,0),NODRAW;
     TJ02:=IF(BARSLAST(立桩量)=1 ,1,0);
    成立1:=TJ02=1;
    条件成立1:=FILTER(成立1,5);
     TJ11:= CCI1<-差值4 ;
    立桩量2:=FILTER(TJ11,0),NODRAW;
     TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,
     IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,
     IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));
     TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);
    成立2:=TJ=1;
    条件成立2:=FILTER(成立2,5);

     TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))
     OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);
    立桩量3:=FILTER(TJ111,5);
     TJ03:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));
    成立:=TJ03=1;
    条件成立:=FILTER(成立,5);
     DRAWICON(条件成立 AND 下跌!= VAR6{ AND BB13>0},L*0.97,23);
     LC:=REF(CLOSE,1);
     RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
     FF:=EMA(CLOSE,3);
     MA15:=EMA(CLOSE,21);
     DRAWICON(CROSS(FF,MA15),LOW*0.97,23);
     DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'R背'),COLOR00FF00;
     X1:=(C+L+H)/3;
     BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
     EMA8:=EMA(C,8);
     DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
     EMA8,'∠'),COLORWHITE;

    超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;
    超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;
    上:=EMA(C,3),COLORBLUE,LINETHICK1;
    中:=EMA(C,5),COLORWHITE,LINETHICK1;
    下:=EMA(中,5),COLOR00FF00,LINETHICK1;
     QQ:= C<中;
    MM:=上>REF(上,1) AND REF(上,1)  V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
     V2:=(1-7/100)*(DMA(CLOSE,V1));
     V3:=(1+7/100)*(DMA(CLOSE,V1));
     V5:=MA((LOW+HIGH+CLOSE)/3,5);
     MA1:=MEMA(CLOSE,5);
     MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
     MA3:=IF(MA2>0,MA2,MA2);
     MA5:=MA(CLOSE,5),COLOR888899,LINETHICK2;
     MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
     VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
     OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND
     REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND
     C>=REF(C,1) AND C>=REF(C,2);
     {收盘价=4日内收盘价的最高值 AND 昨收>=2日前的收盘价}
    VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
     {收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}
    VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)  REF(C,1)=LLV(C,4) AND C  REF(C,1)=HHV(C,4) AND C  C  {收盘价=4日内收盘价的最低值 AND (昨收<2日前的收盘价}
    VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
     REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);
     {昨收=4日内收盘价的最低值 AND 收盘价>=2日前的收盘价}
    VAR05:=REF(C,1)=HHV(C,4) AND C  REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND
     REF(C,2)>=REF(C,4) AND C  {昨收=4日内收盘价的最高值 AND 收盘价<2日前的收盘价}
    VAR06:=V5>REF(V5,1) AND REF(V5,1)  {今日V5向上形成拐点}
    VAR07:=LOWHHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
     VAR08:=VAR07 AND COUNT(VAR06,2);
     VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
     VAR10:=EMA(MA(C,13),13);
     VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND
     CROSS(VAR09,MA(VAR09,2)))=1,5);
     VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND
     CROSS(MA(VAR09,2),VAR09))=1,1);
     VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
     VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
     VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
     VAR16:=VAR08 AND NOT(REF(VAR08,1));
     RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
     K1:=SMA(RSV,3,1);
     D:=SMA(K1,3,1);
     J:=3*K1-2*D;
    金叉:=CROSS(J,D);
    死叉:=CROSS(D,J);
    买1:=(VAR14 OR VAR15) AND VAR11;
    买2:=(VAR14 OR VAR15) AND VAR4;
    买3:=(VAR14 OR VAR15) AND VAR2;
    买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);
    买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
     STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;
     STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;
     DRAWICON(VAR16,LOW-0.02,15);
     DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM,LOW-0.05,23);
     DRAWICON(死叉 OR CROSS(50,VAR09) AND QQ AND K1>50,HIGH+0.01,2);

    多方:=EMA(C,6),COLORFF00FF,LINETHICK0;
    空方:=EMA(C,14),COLORFF0000,LINETHICK0;
     DRAWTEXT(CROSS(多方,空方),L*0.9988,'多'),COLORYELLOW;
     DRAWTEXT(CROSS(空方,多方),H*1.0013,'空'),COLORGREEN;
    安全线:(MA(L,34)+EMA(H,34)+EMA(C,34)+MA(C,34)+MA(H,34)+EMA(L,34))/6,LINETHICK0,COLORCYAN;
    趋势线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;

     CV:=CLOSE;
     BBIBOL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,LINETHICK0;
     UP:BBIBOL+6*STD(BBIBOL,11),LINETHICK2,COLORMAGENTA;
     DW:BBIBOL-6*STD(BBIBOL,11),LINETHICK2,COLORGREEN;

     PL5:=ZIG(3,5);
     EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
     EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
     PL10:=ZIG(3,10);
     EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
     EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
     PL20:=ZIG(3,20);
     EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
     EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
     PL40:=ZIG(3,40);
    走强1:=BARSLAST(PL5 走弱1:=BARSLAST(PL5>REF(PL5,1));
    走强2:=BARSLAST(PL10 走弱2:=BARSLAST(PL10>REF(PL10,1));
    走强3:=BARSLAST(PL20 走弱3:=BARSLAST(PL20>REF(PL20,1));
     ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
     ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
     DTJZ5:=IF(PL10  DTJD5:=IF(PL10  ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
     ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
     DTJZ10:=IF(PL20  DTJD10:=IF(PL20  DRAWTEXT(EN1 AND DTJZ5=1,L*0.97,'(A)'),COLORYELLOW;
     DRAWTEXT(EX1 AND DTJD5=2,H*1.03,'(B)'),COLORGREEN;
     DRAWTEXT(EN2 AND ZTJZ5=1,L*0.97,'(C)'),COLORYELLOW;
     DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.025,'⑴'),COLORGREEN;
     DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.975,'⑵'),COLORYELLOW;
     DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.025,'⑶'),COLORGREEN;
     DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.975,'⑷'),COLORYELLOW;
     DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.025,'⑸'),COLORGREEN;
     DRAWTEXT(EN2 AND DTJZ10=1,L*0.98,'Ⅰ'),COLORYELLOW;
     DRAWTEXT(EX2 AND DTJD10=2,H*1.02,'Ⅱ'),COLORGREEN;
     DRAWTEXT(EN3 AND ZTJZ10=1,L*0.98,'Ⅲ'),COLORYELLOW;
     DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.015,'①'),LINETHICK3,COLORGREEN;
     DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.985,'②'),LINETHICK3,COLORYELLOW;
     DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
     AND EX2,H*1.015,'③'),LINETHICK3,COLORGREEN;
     DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.985,'④'),LINETHICK3,COLORYELLOW;

     {涨停}
    STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),
     COLOR00FFFF;
     {跌停}
    STICKLINE(CLOSE  COLORGREEN;
     {蓝}
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600;
     STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;
     STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00;
     STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;
     {红}
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000099;
     STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR0000BB;
     STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD;
     STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000FF;
     {绿}   
    STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900;
     STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00; 
     STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00;    
     STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
     {灰}
    STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999;
     STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;      
     STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD;    
     STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;

     TTJ:=CROSS(FF,MA15);
     TTJ0:=VAR16;
     TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;
     XG0:=TTJ AND TTJ0;
     XG1:=TTJ AND TTJ1;
     XG:=XG0 OR XG1;
     DRAWTEXT(XG,LOW*0.93,'全'),COLORRED;
     DRAWTEXT(XG,LOW*0.93-0.3,'仓'),COLORRED;

    局部低点预选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)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2) 低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L 预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);
    判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>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)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);
    高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);
    预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);
    判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>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)<=REF(距前低天,1) AND (距前高天>=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<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);
    判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>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)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=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<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);
    判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>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)<=REF(距前低天A,1) AND (距前高天A>=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<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);
    判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>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)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=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<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);
    判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>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)<=REF(距前低天YA,1) AND (距前高天YA>=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)COLORRED,LINETHICK2;
     DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE,LINETHICK2;
     DD1:=BARSLAST(ABS(极点保留)!=1);
     DRAWTEXT(极点保留=1,局部极点*1.01,'卖'),COLORBLUE;
     DRAWTEXT(极点保留=-1,局部极点*0.99,'买'),COLORRED;



    上一篇:抄死主力源码    下一篇:通达信潜伏多时今再重现,奉献好指标《全仓持股》


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 很好的自用指标 加入收藏