最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信缠中说禅+缠论笔 底分型主图+选股指标 贴图 加密

    正文概述    2024-05-04 15:32:44  

       VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;

       VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2,4)+15*REF(VAR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VAR2,13)+6*REF(VAR2,14)+5*REF(VAR2,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;

       VAR4:=MA(VAR3,13);

       VAR5:=EMA(MA(CLOSE,3),34);

       VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

       VAR7:=MA(VAR6,5);

       VAR8:=MA(VAR6,10);

       VAR9:=1/WINNER(CLOSE);

       VARA:=MA(CLOSE,13);

       VARB:=100-ABS((CLOSE-VARA)/VARA*100);

       VARC:=LLV(LOW,75);

       VARD:=HHV(HIGH,75);

       VARE:=(VARD-VARC)/100;

       VARF:=SMA((CLOSE-VARC)/VARE,20,1);

       VAR10:=SMA((OPEN-VARC)/VARE,20,1);

       VAR11:=3*VARF-2*SMA(VARF,15,1);

       VAR12:=3*VAR10-2*SMA(VAR10,15,1);

       VAR13:=100-VAR12;

       VAR14:=100-VAR11;

       VAR15:=MA(WINNER(CLOSE*0.95)*100,3);

       VAR16:=100-IF(VAR9 5,IF(VAR9 100,VAR9,VARB-10),0);

       VAR17:=VAR15 VARB;

       VAR18:=REF(LOW,1)*0.9;

       VAR19:=LOW*0.9;

       VAR1A:=(VAR19*VOL+VAR18*(CAPITAL-VOL))/CAPITAL;

       VAR1B:=EMA(VAR1A,30);

       VAR1C:=CLOSE-REF(CLOSE,1);

       VAR1D:=MAX(VAR1C,0);

       VAR1E:=ABS(VAR1C);

       VAR1F:=SMA(VAR1D,7,1)/SMA(VAR1E,7,1)*100;

       VAR20:=SMA(VAR1D,13,1)/SMA(VAR1E,13,1)*100;

       VAR21:=BARSCOUNT(CLOSE);

       VAR22:=SMA(MAX(VAR1C,0),6,1)/SMA(ABS(VAR1C),6,1)*100;

       VAR23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;

       VAR24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;

       VAR25:=SMA((SMA(VAR24,4,1)-50)*2,3,1);

       VAR26:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;

       VAR27:=SMA(VAR26,4,1);

       VAR28:=SMA(VAR27,3,1);

       VAR29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;

       VAR2A:=VAR22 =25ANDVAR23 -95ANDVAR29 20ANDVAR25 -30ANDVAR28 30ANDVAR1B-CLOSE =-0.25ANDVAR1F 22ANDVAR20 28ANDVAR21

       VAR326:=IF(CLOSE REF(CLOSE,1),88,0);

       VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDHIGH/CLOSE 1.010ANDVAR326 0,91,0);

       STICKLINE(VAR327 90,L*0.99,L*0.95,4,0),COLORYELLOW;

       DRAWTEXT(VAR327 90,LOW*0.95,'追涨'),COLORYELLOW;

       DF:=(C-REF(C,1))/REF(C,1)*100

       AA:=BARSLAST(DF);

       箱体:=CROSS(C,REF(C,AA));

       中枢:DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTALINETHICK2;

       箱底:LLV(MIN(L,REF(L,AA)),AA),COLORCYAN,LINETHICK2;

       DRAWTEXT(ISLASTBAR,中枢,'中枢');

       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,{60F}

       IF(PERIOD=3,1,{30F}

       IF(PERIOD=2,1,{15F}

       IF(PERIOD=1,1{5F},1{1F})))))))))))/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 T1ANDP2

       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))ORZD=REF(ZD,BARSLAST(TJ2));

       TJ4:=TJ1 TJ2 NOT(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 REF(ZD,REF(BARSLAST(TJ4),1));

       TJ8:=TJ4 NOT(TJ5ORTJ6ORTJ7);

       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;

       高:PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;

       趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;

       局部低点预选A:=BACKSET(LLV(L,5) REF(LLV(L,4),1),4);

       局部低点预选B:=BACKSET(局部低点预选A=0ANDREF(局部低点预选A,1)=1,2);

       局部低点预选C:=IF(局部低点预选B=1ANDREF(局部低点预选B,1)=0,-1,0);

       局部高点预选A:=BACKSET(HHV(H,5) REF(HHV(H,4),1),4);

       局部高点预选B:=BACKSET(局部高点预选A=0ANDREF(局部高点预选A,1)=1,2);

       局部高点预选C:=IF(局部高点预选B=1ANDREF(局部高点预选B,1)=0,1,0);

       判断:=IF(L REF(H,1),1,IF(H REF(L,1),-1,0));

       距前高天:=BARSLAST(局部高点预选C=1);

       距前低天:=BARSLAST(局部低点预选C=-1);

       小值周期:=LOWRANGE(L);

       大值周期:=TOPRANGE(H);

       低保留AA:=IF(局部低点预选C=-1ANDREF(距前高天,1) REF(距前低天,1)ANDLLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0);

       低保留AB:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND(距前高天 =4ORLLV(缺口判断,距前高天)=-1ORLLV(L,距前低天+2) REF(LLV(L,距前低天+1),1)),-1,0);

       低保留S:=IF((低保留AA=-1OR低保留AB=-1)ANDL REF(H,距前高天+1),-1,0);

       预判:=IF((距前低天 4ANDHHV(缺口判断,距前低天)!=1)ORREF(低保留S,距前低天)=0,1,0);

       判断:=IF(局部高点预选C=1ANDREF(距前低天,1) =REF(距前高天,1)AND预判=1AND大值周期 REF(小值周期,距前低天+1)AND大值周期 REF(小值周期,距前低天)AND大值周期 REF(大值周期,距前高天),1,0);

       高保留A:=IF(局部高点预选C=1ANDREF(距前低天,1) REF(距前高天,1)ANDHHV(H,距前低天+1) REF(HHV(H,距前低天+1),1),1,0);

       高保留B:=IF(局部高点预选C=1ANDREF(距前低天,1) =REF(距前高天,1)ANDREF(低保留S,距前低天)=-1AND(距前低天 =4ORHHV(缺口判断,距前低天)=1),1,0);

       高保留:=IF((高保留A=1OR高保留B=1OR判断=1)ANDH REF(L,距前低天+1),1,0);

       预判A:=IF((距前高天 4ANDHHV(缺口判断,距前高天)!=1)ORREF(高保留,距前高天)=0,1,0);

       判断A:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND预判A=1AND小值周期 REF(大值周期,距前高天+1)AND小值周期 REF(大值周期,距前高天)AND小值周期 REF(小值周期,距前低天),-1,0);

       低保留A:=IF(局部低点预选C=-1ANDREF(距前高天,1) REF(距前低天,1)ANDLLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0);

       低保留B:=IF(局部低点预选C=-1ANDREF(距前高天,1) =REF(距前低天,1)AND(距前高天 =4ORLLV(缺口判断,距前高天)=-1OR判断A=-1),-1,0);

       低保留:=IF((低保留A=-1OR低保留B=-1)ANDL REF(H,距前高天+1),-1,0);

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

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

       预判X:=IF((距前低天A 4ANDHHV(缺口判断,距前低天A)!=1)ORREF(低保留,距前低天A)=0,1,0);

       判断X:=IF(局部高点预选C=1ANDREF(距前低天A,1) =REF(距前高天A,1)AND预判X=1AND大值周期 REF(小值周期,距前低天A+1)AND大值周期 REF(小值周期,距前低天A)AND大值周期 REF(大值周期,距前高天A),1,0);

       高保留XA:=IF(局部高点预选C=1ANDREF(距前低天A,1) REF(距前高天A,1)ANDHHV(H,距前低天A+1) REF(HHV(H,距前低天A+1),1),1,0);

       高保留XB:=IF(局部高点预选C=1ANDREF(距前低天A,1) =REF(距前高天A,1)ANDREF(低保留,距前低天A)=-1AND(距前低天A =4ORHHV(缺口判断,距前低天A)=1),1,0);

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

       预判XA:=IF((距前高天A 4ANDHHV(缺口判断,距前高天A)!=1)ORREF(高保留XA,距前高天A)=0,1,0);

       判断XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1) =REF(距前低天A,1)AND预判XA=1AND小值周期 REF(大值周期,距前高天A+1)AND小值周期 REF(大值周期,距前高天A)AND小值周期 REF(小值周期,距前低天A),-1,0);

       低保留XA:=IF(局部低点预选C=-1ANDREF(距前高天A,1) REF(距前低天A,1)ANDLLV(L,距前高天A+1) REF(LLV(L,距前高天A+1),1),-1,0);

       低保留XB:=IF(局部低点预选C=-1ANDREF(距前高天A,1) =REF(距前低天A,1)AND(距前高天A =4ORLLV(缺口判断,距前高天A)=-1OR判断XA=-1),-1,0);

       低保留X:=IF((低保留XA=-1OR低保留XB=-1)ANDL REF(H,距前高天A+1),-1,0);

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

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

       预判YX:=IF((距前低天YA 4ANDHHV(缺口判断,距前低天YA)!=1)ORREF(低保留X,距前低天YA)=0,1,0);

       判断YX:=IF(局部高点预选C=1ANDREF(距前低天YA,1) =REF(距前高天YA,1)AND预判YX=1AND大值周期 REF(小值周期,距前低天YA+1)AND大值周期 REF(小值周期,距前低天YA)AND大值周期 REF(大值周期,距前高天YA),1,0);

       高保留YXA:=IF(局部高点预选C=1ANDREF(距前低天YA,1) REF(距前高天YA,1)ANDHHV(H,距前低天YA+1) REF(HHV(H,距前低天YA+1),1),1,0);

       高保留YXB:=IF(局部高点预选C=1ANDREF(距前低天YA,1) =REF(距前高天YA,1)ANDREF(低保留X,距前低天YA)=-1AND(距前低天YA =4ORHHV(缺口判断,距前低天YA)=1),1,0);

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

       预判YXA:=IF((距前高天YA 4ANDHHV(缺口判断,距前高天YA)!=1)ORREF(高保留YXA,距前高天YA)=0,1,0);

       判断YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) =REF(距前低天YA,1)AND预判YXA=1AND小值周期 REF(大值周期,距前高天YA+1)AND小值周期 REF(大值周期,距前高天YA)AND小值周期 REF(小值周期,距前低天YA),-1,0);

       低保留YXA:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) REF(距前低天YA,1)ANDLLV(L,距前高天YA+1) REF(LLV(L,距前高天YA+1),1),-1,0);

       低保留YXB:=IF(局部低点预选C=-1ANDREF(距前高天YA,1) =REF(距前低天YA,1)AND(距前高天YA =4ORLLV(缺口判断,距前高天YA)=-1OR判断YXA=-1),-1,0);

       低保留YX:=IF((低保留YXA=-1OR低保留YXB=-1)ANDL REF(H,距前高天YA+1),-1,0);

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

       极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);

       局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL))CIRCLEDOTCOLORYELLOW;

       DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED;

       DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;

       DD1:=BARSLAST(ABS(极点保留)!=1);

       DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;

       DRAWTEXT(极点保留=-1,局部极点,'买'),COLORRED;

       MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5 REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;

       SHORT:=7;LONG:=19;

       T:=PERIOD;

       D:=IF(T=0,30,{1F}

       IF(T=1,25,{5F}

       IF(T=8,25,{多分钟}

       IF(T=2,20,{15F}

       IF(T=3,20,{30F}

       IF(T=4,20,{60F}

       IF(T=5,10,{日}

       IF(T=6,10,{周}

       IF(T=7,10,{月}

       IF(T=9,10,{多日}

       IF(T=10,10{季},10{年})))))))))));

       Rma:EMA(CLOSE,SHORT),COLORLIGRAY;

       NMA:EMA(CLOSE,LONG),COLORMAGENTA;

       RISK:IF(NMA RMA,NMA,DRAWNULL),COLORGREEN;

       UP:DRAWLINE(L=LLV(L,BArslAst(crOSS(NMA,RMA))+1)ANDL=LLV(L,D)ANDRMA =NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1)ANDH=HHV(H,D)ANDRMA =NMA,H,0),COLOR0000FF,LINETHICK2;

       DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1)ANDH=HHV(H,D)ANDRMA =NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1)ANDL=LLV(L,D)ANDRMA =NMA,L,0),COLOR00FF00,LINETHICK2;

       UH:HHV(H,55),COLORBROWN;

       MID:(HHV(H,55)+LLV(L,55))/2,COLORBROWN;

       DL:LLV(L,55),COLORBROWN;





    九毛八9m8.cn提醒您:股市有风险,投资需谨慎!
    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信缠中说禅+缠论笔 底分型主图+选股指标 贴图 加密 加入收藏