以下是通达信猎取主升浪源码

通达信猎取主升浪源码:

    DA:=(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;
    DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000;
    DC:MA(DB,3),COLORYELLOW,LINETHICK1;
    VAR1:=(C+H+O+L)/4;卖出:=XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3;买入:=XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3;幅度:=100*(卖出-买入)/买入,NODRAW;菩提:=买入+(卖出-买入)*2/3;般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);全绿K:=LONGCROSS(若,般,3)ANDH>菩提;RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;KL:=SMA(RSVL,3,1);DL:=SMA(KL,3,1);KKL:=SMA(RSVL,3,1);DD:=SMA(KL,3,1);NL:=KKL+DD;买入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;卖出K:=CROSS(160,NL);TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);{STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;}STICKLINE(买入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出KAND买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0));中线:=(卖出+买入)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{原为55或65}长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6)ANDEMA(CLOSE,6)>EMA(CLOSE,7)ANDEMA(CLOSE,7)>EMA(CLOSE,8)ANDEMA(CLOSE,8)>EMA(CLOSE,9)ANDEMA(CLOSE,9)>EMA(CLOSE,10)ANDEMA(CLOSE,10)>EMA(CLOSE,11)ANDEMA(CLOSE,11)>EMA(CLOSE,12)ANDEMA(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LOSE>=REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1)AND(CLOSE<=REF(CLOSE,1)))AND(CLOSE>=REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1)AND(CLOSE>=REF(CLOSE,1)))AND(CLOSE<=REF(CLOSE,2)));{绿K}STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,REF(C,1),3,0),COLOR00BB00;STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,REF(C,1),2,0),COLOR00DD00;STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),C,REF(C,1),1,0),COLOR00FF00;STICKLINE((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),H,L,0,0),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZORVAREMZ)ORVARFMZ)ORVAR10MZ)ORVAR11MZ)ORVAR12MZ)ORVAR13MZ)ORVAR14MZ)ORVAR15MZ)ORVAR16MZ)ORVAR17MZ)ORVAR18MZ),1)ANDVAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZORVAR2MZ)ORVAR3MZ)ORVAR4MZ)ORVAR5MZ)ORVAR6MZ)ORVAR7MZ)ORVAR8MZ)ORVAR9MZ)ORVARAMZ)ORVARBMZ)ORVARCMZ),1)ANDVARDMZ);{粉红}STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF11FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF44FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF66FF;{黄色}STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:=C<中;MM:=上>REF(上,1)ANDREF(上,1)<REF(上,2);V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(C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(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7)ANDCOUNT(VAR09<0,2)ANDCROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7)ANDCOUNT(VAR09>50,2)ANDCROSS(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)ORCROSS(C,VAR10))ANDVAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3)ANDCROSS(C,MA(C,18));VAR16:=VAR08ANDNOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14ORVAR15)ANDVAR11;买2:=(VAR14ORVAR15)ANDVAR04;买3:=(VAR14ORVAR15)ANDVAR02;买4:=(VAR02ANDVAR11)OR(VAR04ANDVAR11);买5:=(金叉ANDVAR04)OR(金叉ANDVAR02)OR(金叉ANDVAR11);TTJ0:=VAR16;TTJ1:=买1OR买2OR买3OR买4OR买5ANDMM;XG0:=TTJANDTTJ0;XG1:=TTJANDTTJ1;XG11:=XG0ORXG1;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)<=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)>=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)<=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)>=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)<=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)>=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱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<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2ANDZTJZ5=1;TJ22:=EN1ANDPL10>REF(PL10,1)ANDZTJZ5=2;TJ33:=EN2ANDDTJZ10=1;TJ44:=EN3ANDZTJZ10=1;TJ55:=EN2ANDPL20>REF(PL20,1)ANDZTJZ10=2;XG22:=TJ11ORTJ22ORTJ33ORTJ44ORTJ55;XGQ:=XG11ORXG22;W18:=EXIST(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORWHITE;SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;macd:=(DIFF-DEA)*2,COLORSTICK;{特立独行专用:IF((CROSS(DIFF,DEA)ANDDIFF<-0.1),L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;}低位金叉:=IF(CROSS(DIFF,DEA)ANDDIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;IF(CROSS(DIFF,DEA)ANDDIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;{再上N均线N1011001}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1)ANDMA2>REF(MA2,1);试摸N:=C>MA(C,10)ORH>=MA2;再上N:=C>OANDREF(C,1)<MA(C,10)AND试摸NAND破NANDMA(C,21)<MA(C,10);有行情:=再上NAND(CROSS(C,长期趋势)ORCROSS(L,长期趋势)ORCROSS(H,长期趋势));DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;VAR10B:=IF(TROUGHBARS(3,16,1)=0ANDHIGH>LOW+0.04,4,0);VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12B:=ZIG(3,6)<REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14B:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0OR买2B>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;牛节点:=CROSS(EMA(C,5),EMA(C,30))ANDCROSS(EMA(C,10),EMA(C,20));DRAWICON(牛节点,L-0.1,'NIUBI');CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}止损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;{持股前提}DRAWICON(CROSS(L,CSAR)AND参买>0ANDH<菩提BAND持股>0ANDH>长期趋势,(LOW-0.1),'NIUBI');VVAR1D:=((((OPEN+LOW)+HIGH)+CLOSE)/4);短底:=EMA(VVAR1D,5);支撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2)*1.05);下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);中D:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K大:=SMA(RSVD,3,1);D大:=((3*RSVD)-(2*K大));J12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3*RSV24)-(2*K24));压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D大)))),COLORFFFFFF;牛浮面:=CROSS(CLOSE,MA20)ANDHIGH<压力位ANDOPEN<MA20ANDHIGH<支撑ANDMAN-REF(MAN,1)>0ANDX1D-REF(X1D,1)>0ANDD大<63ANDMA20-REF(MA20,1)>0,COLORWHITE;DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;CO:=(C-O);绿K:=(卖出>LOWAND卖出<HIGH)OR(卖出>MIN(C,O)AND卖出<MAX(C,O))OR卖出<LOW;{全绿K}全绿K2:=C>卖出OR(H>卖出ANDO>C);STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;
    T11:=CONST(LLVBARS(LOW,10));
    T11HIGH:=CONST(REF(HIGH,T11));
    CC1:=CONST(CURRBARSCOUNT);
    T22:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T11ANDH>T11HIGH));
    T22HIGH:=CONST(REF(HIGH,T22));
    T33:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T22ANDHIGH>T22HIGH));
    T33HIGH:=CONST(REF(HIGH,T33));
    C>=T33HIGHANDREF(C,1)<T33HIGH
    ANDDYNAINFO(17)>2;
    N:=10;
    T1:=CONST(LLVBARS(LOW,N));
    T1HIGH:=CONST(REF(HIGH,T1));
    CC:=CONST(CURRBARSCOUNT);
    T2:=CONST(BARSLAST((CURRBARSCOUNT>(CC+T1))AND(HIGH>T1HIGH)));
    T2HIGH:=CONST(REF(HIGH,T2));
    T3:=CONST(BARSLAST((CURRBARSCOUNT>(CC+T2))AND(HIGH>T2HIGH)));
    T3HIGH:=CONST(REF(HIGH,T3));
    洗盘杀入线:DRAWLINE(CURRBARSCOUNT=T3+1,T3HIGH,ISLASTBAR,T3HIGH,1),LINETHICK3,COLORCYAN;
    DRAWTEXT(ISLASTBAR,T3HIGH,'洗盘杀入线')LINETHICK1,COLORYELLOW;
    A:=IF((CLOSE>REF(CLOSE,1)),88,0);
    AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(A>0),91,0);
    AA1:="macd.MacD">0.4;
    狙击:FILTER((AA>90),35)ANDAA1,LINETHICK2,COLORRED;

通达信猎取主升浪截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。