【股票指标公式下载】-【通达信】股市天机(量价线形、进退有据、钱袋、金叉)
【股票指标公式下载】-【通达信】市场赢家(抄底高手)
【通达信】市场赢家(抄底高手)-指标公式源码VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<-30;VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-27;VAR3:=VAR1 AND VAR2;VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND DATE>940101 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND(REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND(REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND(REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND(REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);VAR6:=(CLOSE-VAR5)/VAR5*100;VAR7:=REF(VAR6,1)<-42 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND VAR6-REF(VAR6,1)>1.8;抄底高手:VAR4 OR VAR7,COLORWHITE;VAR21:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR22:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR23:=(CLOSE-VAR1)/VAR21*100<-11;VAR24:=(VAR21-VAR22)/VAR22*100<-22.3;VAR25:=VAR23 AND VAR24 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) ORREF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) ORREF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) ORREF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) ORREF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) ORREF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) ORREF(OPEN,7)<REF(CLOSE,7));VAR26:=DMA(CLOSE,VOL/MA(VOL,3)/3);VAR27:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR28:=(CLOSE-VAR26)/VAR26*100<-5;VAR29:=(VAR26-VAR27)/VAR27*100<-18;VAR2A:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100 ;VAR2B:=SMA(VAR2A,30,1);VAR2C:=SMA(VAR2B,50,1);VAR2D:=VAR28 AND VAR29 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND VAR2C<20;VAR2E:=VAR2D AND COUNT(VAR2D,2)=1;短线黑马:VAR25 OR VAR2E,COLORYELLOW;VAR31:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR32:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR33:=(CLOSE-VAR31)/VAR31*100<-8;VAR34:=(VAR31-VAR32)/VAR32*100<-21;VAR35:=VAR33 AND VAR34 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) ORREF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) ORREF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) ORREF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) ORREF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) ORREF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) ORREF(OPEN,7)<REF(CLOSE,7));VAR36:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR37:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100 ;VAR38:=SMA(VAR37,50,1);VAR39:=SMA(VAR38,40,1);VAR3A:=VAR36 AND VAR39<23 AND COUNT(VAR36,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96;逆市买入:VAR35 OR VAR3A,COLORBLUE;VAR41:=CLOSE/MA(CLOSE,30)*100<75;VAR42:=CLOSE/MA(CLOSE,50)*100<78;VAR43:=HIGH>LOW*1.053;VAR44:=VAR43 AND COUNT(VAR43,5)>2;VAR45:=VAR44 AND (VAR41 OR VAR42);VAR46:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);VAR47:=(CLOSE-VAR46)/VAR46*100;市场赢家:REF(VAR47,1)<-34 AND VAR47>REF(VAR47,1) ANDREF(VAR47,1)<REF(VAR47,2) AND VAR47-REF(VAR47,1)>1.76 ORVAR45,COLORMAGENTA;VAR51:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;VAR52:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)) ,3,1)*100>16;VAR53:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));旭日东升:VAR51 AND VAR52 AND CROSS(VAR53,79) AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)<0.05 ANDVOL>MA(VOL,23),COLORRED;【通达信】市场赢家(抄底高手)-指标公式效果图(文档来源:若水财经社区)。
通达信指标公式大全
SZ3天地人天:IF(HHVBARS(V,60),REF(C,HHVBARS(V,60)),C),COLORLIBLUE,POINTDOT;地:IF(LLVBARS(V,5),REF(C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;主高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3; STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2ANDV/REF(V,1)>=0.8;D:=H=HHV(H,3);AANDBANDD;位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF (MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MI D,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸}DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3ORL<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE); DRAWICON(A1ANDREF(A1,1)=0,L*0.98,7);VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4); VAR2:=DMA(CLOSE,VOL/MA(VOL,31)/31); VAR3:=(CLOSE-VAR1)/VAR1*100<-10;VAR4:=(VAR1-VAR2)/VAR2*100<-16;VAR5:=VAR3ANDVAR4;VAR6:=VAR5AND(OPEN>CLOSEOROPEN<CLOSE)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1ANDMACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA;DRAWTEXT(A<-LGANDLF=0,L*0.96,'下跌过急'),COLORYELLOW;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELLOW;DRAWICON(CROSS(J,0)ANDRSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2); DRAWTEXT(CROSS(J,5)ANDRSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;多方炮:A8ANDJ<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE-EMA(CLOS E,13))/EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS/10)+EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势A(ABS((CLOSE-VAR4Y)),24,1))*100);VAR8Y:=(((CLOSE-LLV(LOW,45 ))/(HHV(HIGH,45)-LLV(LOW,45)))*100);VAR9Y:=SMA(VAR8Y,3,1);V ARAY:=SMA(VAR9Y,3,1);VARBY:=((3*VAR9Y)-(2*VARAY));VARCY:=(C ROSS(VAR5Y,10)AND(VAR3Y<(0-(28*20))));VARDY:=((100-CROSS(76 ,VAR5Y))AND(VAR3Y>(5*20)));DRAWICON(((CROSS(76,VAR5Y)AND(VAR3Y>5))),(HIGH*1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(VAR9 Y,VARAY)AND(VARAY<10))AND(VAR3Y<(0-30)))AND(VAR2Y>3))*30);V ARFY:=-((((VARAY<11)AND(VAR5Y<15))AND(VAR3Y<(0-26)))*10);DR AWICON((CROSS(VARFY,(0-9))),(LOW*0.998),5);能量线:=DMA(((CLOSE+OPEN)/2),(VOL/(SMA(VOL,4,1)*4)));VAR3C:=EMAR8,1))+(0.333*VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,B B)AND(BB<30));CD:=(BB1*0.6);DRAWICON((CD=0.6),(LOW*0.99),9),LINETHICK1,COLOR33CC99;SZ9一号支撑N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,2上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(82,RSI)ANDCLOSE<上线1,HIGH*1.04,'减仓YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线); DRAWTEXT(CROSS(上线1,一号支撑线1)AND上线1>操作,LOW*0.98,'全仓'),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015AND1000*操作/一号支撑线>=975; M2:=1000*一号支撑线1/一号支撑线<=1020AND一号支撑线1/一号支撑线>=980;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G)ANDJ>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPENANDCROSS(上线,一号支撑线)ANDLOW>VAR1ANDJ<90,LOW*0.86,'回踩买进'),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;STICKLINE(C<OANDC>REF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,3,0),COLOR000055;{红K};STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.7,0),COLOR000077;{红K};STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.1,0),COLOR000099;STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,2.1,0),COLORFF66FF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1)ANDJ<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1) ,6),6);Q_3:=CROSS(EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),E MA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3)+1);Z2:=LLV(L,BARSLAST(Q _3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BARSLAST(Q_4) +1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1,NODRAW;STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1);DRAWTEXT(二次金叉,0.225,'二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA),NODRAW;WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WWANDDD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,'反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14)ANDLOW<REF(LOW,1)ANDLOW<REF(LOW,5)ANDMACD>REF(MACD,1)AND0>MACDAND0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);火焰山:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;火焰:STICKLINE(火焰山>0,0,火焰山,4,1);今量:火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0)COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0)COLOR0066FF;SZ10综合预警VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位部背离,5)=100ORREF(底部背离,6)=100ORREF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1)ANDREF(M13,1)<=REF(M13,2)ANDREF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZDANDZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100ORREF(TJ,2)=100ORREF(TJ,3)=100ORREF(TJ,4)=100ORREF(TJ,5)=100ORREF(TJ,6)=100ORREF(TJ,7)=100ORREF(TJ,8)=100ORREF(TJ,9)=10A05:=IF((A03>20),A04,0);A06:=IF((LOW>A01),0,IF((HIGH<A01),1,(((A01-LOW)+0.009)/((HIGH-LOW)+0.009))));A07:=DMA(A06,(VOL/CAPITAL))*60;A09:=IF((((A07>0)AND(A07>REF(A07,1)))AND(A05<=88)),A07,0);VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))* 100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*DRAWTEXT(VAR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90ANDVAR4,0,30,3,0),COLORGRAY;VAR6:=FILTER((趋势>=90ANDVAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR9>90,100,105,3,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100; DRAWTEXT(IF(CROSS(VAR9,VAR10)ANDVAR9>87,95,0),88,'险VAR17:=EMA(VAR16,5);波浪峰:VAR17,STICK,COLORFF00FF;STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18)ANDVAR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,VAR2)AND趋势线>REF(趋势线,1)AND趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪PL5:=ZIG(3,5);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);XG22:=TJ11ORTJ22ORTJ33ORTJ44ORTJ55;SZ14老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1ANDCC1ANDDD1ANDEE1;DRAWTEXT(FF1,(LOW*0.97),'老鼠仓'),COLOR4080FF;SZ250流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF;STICKLINE(YUWEI>0ANDYUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF;STICKLINE(YUWEI<0ANDYUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411;STICKLINE(YUWEI<0ANDYUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715;DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);SZDKVAR2:=(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);↓'),,COLORGREEN;『多空安全线』:VAR5,,COLORWHITE;〖关注点〗:STICKLINE(COUNT(VAR3>1.005*VAR4ANDVAR3<=REF(VAR3,1),2) =2ORCOUNT(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4)ANDVAR3>=REF(VAR3,1),2)=2,VAR3,VAR4,10,0),,COLORYELLOW;★买入点:DRAWTEXT(REF(CROSS(VAR3,VAR4),2)ANDVAR3>1.005*VAR4,VAR4,'★买入点'),,COLOR999966;『多空争夺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);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>50;DRAWTEXT(CROSS(VAR2A,0.5)ANDCOUNT(VAR2A=1,10)=1,VAR4,'发射资金♂(超短线操作)'),,COLORRED;DRAWTEXT(CROSS(VAR17,0.5)ANDCOUNT(VAR17=1,10)=1,VAR3,'激烈交锋');选股公式K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;多方炮:A8ANDJ<65;双信号FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;VAR01:=CLOSE=HHV(C,4)AND(REF(C,1)>=REF(C,2)ORREF(C,1)>=REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE>=REF(C,2)ORREF(C,2)=HHV(C,4)AND REF(C,3)=LLV(C,4)ANDC>=REF(C,1)ORREF(C,3)=HHV(C,4)ANDC>=REF(C,1)ANDC>=REF(C,2);{收盘价=4日内收盘价的最高值AND昨收>=2日前的收盘价} VAR02:=CLOSE=HHV(C,4)ANDREF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND昨收=4日内收盘价的最低值} VAR03:=CLOSE=LLV(C,4)AND(REF(C,1)<REF(C,2)ORREF(C,1)<REF(C,3))ORREF(C,2)>=REF(C,4)ANDC<REF(C,1);{昨收=4日内收盘价的最高值AND收盘价<2日前的收盘价} VAR06:=V5>REF(V5,1)ANDREF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13)ANDHIGH>HHV(V5,13)ANDCLOSE>REF(C,1)ANDCLOSE>OPEN;VAR08:=VAR07ANDCOUNT(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);K:=SMA(RSV,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);ZHENGYI>80ANDDYNAINFO(4)>0;SZ10ZHENGYI:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);ZHENGYI<10ANDDYNAINFO(4)>0;SZZZZRSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买人:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;SZ1111RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买人:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买人2:=CROSS(买人,趋势J2);SZ3ZHENGYI:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);。
【股票指标公式下载】-【通达信】估短KDJ(底线、顶线、超跌、加码、J线共振)
【通达信】估短KDJ(底线、顶线、超跌、加码、J线共振)-指标公式源码{界文KD 修改带提示版}N1:=7;N2:=27;STICKLINE(C>0,40,60,10,0),COLORGRAY;RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0;短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;中K:SMA(RSV1,5,1),COLORRED,LINETHICK0;中D:SMA(中K,10,1),COLOR33AA33,LINETHICK0;底线:10,COLORWHITE;顶线:90,{COLOR00FFFF;},COLORWHITE;STICKLINE(短K>短D,短K,短D,3,1),COLORF580F5;STICKLINE(短K<=短D,短K,短D,3,1),COLORCCDD33;STICKLINE(中K>中D,中K,中D,2,0),COLOR0000EF;STICKLINE(中K<=中D,中K,中D,2,0),COLOR33AA33;中J:=3*中K-2*中D,COLORFF00FF;超跌:IF(中J<0,10,0),COLORLIGREEN;BDDD:=LLV(中J,2)=LLV(中J,8);重启:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND 中J<20,10,-10),COLORLIRED;加码:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND BETWEEN(中J,20,60),1,0),COLORRED,NODRAW;BDGD:=HHV(中J,2)=HHV(中J,8) AND 中J>80;小心:IF(CROSS(REF(中J-0.01,1),中J) ANDREF(BDGD,1),90,120),COLORYELLOW;DRAWICON(加码,中J,1);{J线共振修改彩带版}RSV1A:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;K1:=SMA(RSV1,5,1);D1:=SMA(K1,5,1);J1:=3*K1-2*D1;AA1:=EMA(J1,5);AA2:=REF(AA1,1);DRAWBAND(AA1,RGB(255,255,0),AA2,RGB(0,255,0));RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K2:=SMA(RSV2,3,1);D2:=SMA(K2,3,1);J2:=3*K2-2*D2;BB1:=EMA(J2,5);BB2:=REF(BB1,1);DRAWBAND(BB1,RGB(255,0,0),BB2,RGB(0,0,255));DD:=AA1>AA2 AND BB1>BB2;注意买入:DD AND NOT(REF(DD,1)) AND (AA1<50 OR BB1<50) ,LINETHICK0; DRAWICON(注意买入,-5,1);注意卖出:REF(DD,1)=1 AND NOT(DD),LINETHICK0;DRAWICON(注意卖出,105,2);【通达信】估短KDJ(底线、顶线、超跌、加码、J线共振)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】绝对主升(清仓、出货、高抛、低吸)
【通达信】绝对主升(清仓、出货、高抛、低吸)-指标公式源码清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;强通1:=清仓>REF(清仓,1),;强通2:=出货>REF(出货,1),;强通3:=高抛>REF(高抛,1),;强通4:=低吸>REF(低吸,1),;强通5:=满仓>REF(满仓,1),;上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,; MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10),;MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);五强:=MA5>REF(MA5,1),;十强:=MA10>REF(MA10,1),;二十强:=MA20>REF(MA20,1),;三十强:=MA30>REF(MA30,1),;六十强:=MA60>REF(MA60,1),;小均强:=五强 AND 十强,;均强:=十强 AND 二十强 AND 三十强,;大均强:=十强 AND 二十强 AND 三十强 AND 六十强,;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) /3),8),60),COLORRED,LINETHICK2;强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) /3.18),8),20),COLORWHITE,LINETHICK2;强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) /3.258),8),10),COLORYELLOW,LINETHICK2;强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) /3.08),80),13),COLORLIMAGENTA,LINETHICK2;开始走强1:=强势线1>REF(强势线1,1),;开始走强2:=强势线2>REF(强势线2,1),;开始走强3:=强势线3>REF(强势线3,1),;开始走强4:=强势线4>REF(强势线3,1),;双强1:=开始走强1 AND 开始走强2,;双强2:=开始走强2 AND 开始走强3,;双强3:=开始走强2 AND 开始走强3,;双强4:=开始走强3 AND 开始走强4,;三强:=开始走强1 AND 开始走强2 AND 开始走强3,;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4,;强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强 OR 四强,; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;顶部1:=DSA*1.0888,COLORMAGENTA,LINETHICK1;顶部2:=DSA*1.158,COLORBROWN,LINETHICK1;顶部3:=DSA*1.218,COLORRED,LINETHICK1;底部1:=DSA*0.9518,COLORLICYAN,LINETHICK1;底部2:=DSA*0.888,COLORLIMAGENTA,LINETHICK1;底部3:=DSA*0.8,COLORGREEN,LINETHICK1;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1),;十日走强:=MA2>REF(MA2,1),;二十日走强:=MA3>REF(MA3,1),;六十日走强:=MA4>REF(MA4,1),;低位主升:=五日走强 AND 十日走强 AND 六十日走强,;主升浪:=五日走强 AND 十日走强 AND 二十日走强,;大主升浪:=十日走强 AND 二十日走强 AND 六十日走强,;大主升浪2:=五日走强 AND 十日走强 AND 二十日走强 AND 六十日走强,; 总主升:=主升浪 AND 大主升浪 AND 大主升浪2,;总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;强势主升低买:L<底部1 AND 总主升浪 AND 强势为王 ANDC<DSA,COLORYELLOW,LINETHICK2;猎股小王:L<底部1 AND C<DSA AND 强势为王,COLORMAGENTA,LINETHICK2,LINESTICK;DRAWICON(猎股小王>0,1.1,1);猎股大王出击:=强势主升低买 AND 猎股小王 AND H<DSA,COLORRED,;;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;生命线:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;主升猎股王:=(猎股大王出击 AND 主升持仓 AND 主升) OR (猎股小王 AND 主升持仓 AND 主升),;绝对的主升:(主升猎股王 AND 小均强) OR (猎股小王 AND 小均强),COLORYELLOW,LINETHICK4,STICK;DRAWICON(绝对的主升>0,1.1,1);DRAWICON(绝对的主升>0,1.1,1);DRAWICON(绝对的主升>0,0.6,9);DRAWICON(绝对的主升>0,0.3,9);【通达信】绝对主升(清仓、出货、高抛、低吸)-指标公式效果图(文档来源:若水财经社区)。
通达信准确率%以上选股公式
通达信准确率%以上选股公式专买老鼠仓{老鼠仓}AA1:=AMOUNT/V;BB1:=L<aa1*0.9;< p="">CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<ma(c,5)*0.921;< p="">EE1:=V<ma(v,5)*1.5;< p="">FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。
根据本人的实践,使用指标时候要注意几点:1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。
2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。
3 第二天出阴考虑卖出,非常适合短线操作!老鼠仓(选股公式)AA1:=AMOUNT/V;BB1:=L<aa1*0.9;< p="">CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<ma(c,5)*0.921;< p="">EE1:=V<ma(v,5)*1.5;< p="">老鼠仓:BB1 AND CC1 AND DD1 AND EE1;理想选股(选股公式)VAR1:=MA((LOW+HIGH+CLOSE)/3,5);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<ref(var1,2);< p="">VAR5:=LOWHHV(VAR1,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR6:=VAR5 AND COUNT(VAR4,2);VAR7:=VAR6 AND NOT(REF(VAR6,1));VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR9:=EMA(MA(C,13),13);VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR12 OR VAR13) AND VAR10;买2:=(VAR12 OR VAR13) AND VAR3;买3:=(VAR12 OR VAR13) AND VAR2;买4:=(VAR2 AND VAR10) OR (VAR3 AND VAR10);买5:=(金叉AND VAR3) OR (金叉AND VAR2) OR (金叉AND VAR10);ST:=EXIST(C/REF(C,1)>1.06,50);输出:=(买1 OR 买2 OR 买3 OR 买4 OR 买5 OR VAR7) AND ST;MA5:=MA(C,5),COLORWHITE;X:=(3*C+L+O+H)/6;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X ,4)+15*REF(X,5)+14*RE F(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1;AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(L OW,3),HHV(HIGH,3),1),CO LORYELLOW;CROSS(MA5,多空线) and CROSS(C,AB) and 输出;点石成金(选股公式)KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);Var1:=CLOSE/MA(CLOSE,40)*100<76;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13 ANDCLOSE/REF(CLOSE,1)>=1.02;牛市绝底(选股公式)VAR1:=REF(CLOSE,1);VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100);VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100);VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));牛市绝底:VAR2 < 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47;通达信精准选股公式:条件选股公式源码:年认同价:=MA(C,240);价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));箱顶:=价格中枢*1.2;箱底:=价格中枢*0.8;毛利润率:=FINANCE(21)/FINANCE(20);成长价值:=年认同价*(1+毛利润率);收益价值:=年认同价+FINANCE(33);回调认同:=EMA(EXPMA(C,20),13);多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0);回调条件:=COUNT(C<回调认同,5)>=3;回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND 多头; 成长条件:=COUNT(C<成长价值,5)>=3;成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND 多头; 收益条件:=COUNT(C<收益价值,5)>=3;收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND 多头; 箱底条件:=COUNT(C<箱底,5)>=3;箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND 多头;价格条件:=COUNT(C<价格中枢,5)>=3;价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND 多头; 箱顶条件:=COUNT(C<箱顶,5)>=3;箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND 多头;突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);飞弹一号(选股公式)var1:=c/ma(c,40)*100<78;var2:=c/ma(c,60)*100<74;var3:=h>=l*1.051;var4:=var3 and count(var3,5)>=2;xg:var4 and (var1 or var2) and count(h=l and c=o and c< p="">and hhv(v/capital,30)<0.8;牛魔无双(选股公式)A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100;B4:=EMA(MA(A4,50),5);c4:=B4>LLV(B4,5)*1.01 AND REF(B4,1)<ref(llv(b4,5),1)*1.01< p="">AND LLV(B4,50)=LLV(B4,5);d4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5)<hhv(low,70)*0.5;< p="">xg:c4 AND d4;火牛神功(选股公式)Var1:=DMA(CLOSE,VOL/SUM(VOL,34));Var2:=DMA(CLOSE,VOL/SUM(VOL,13));Var3:=(CLOSE-Var1)/Var1*100;Var4:=(CLOSE-Var2)/Var2*100;Var4<=-12 AND Var3<=-19 ;跟庄建仓(选股公式)A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(Var3,3)-10;机构建仓区:=(A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50));Var7:=LLV(LOW,30);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:=EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618;选股:火焰山>0 AND 机构建仓区>0 AND 趋势>REF(趋势,1) AND REF(趋势,1)<ref(趋势,2);< p="">跟庄建仓源码A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);Var2:=EMA(Var1,8);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(Var3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),colorFFff00;机构建仓区:0,LINETHICK0,colorFFFF00;Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),colorcc9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;STICKLINE(趋势<=13 AND Var4>13,0,50,2,0),color0099ff;Var5:=FILTER((趋势<=13 AND Var4>13),10);DRAWTEXT(Var5,60,'买入'),color0099ff;STICKLINE(趋势>=90 AND Var4,0,30,3,0),colorgray;Var6:=FILTER((趋势>=90 AND Var4),10);DRAWTEXT(Var6,40,'清仓'),colorgray;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30);Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;STICKLINE(Var9>90,100,105,3,2),COLORRED;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00; DRAWICON(CROSS(90,Var9),95,9);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,colorff0000;Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;Var17:=EMA(Var16,5);波浪峰:Var17,stick,colorff00ff;STICKLINE(Var17<ref(var17,1),0,var17,1,0),color00ff00;<p="">Var18:=MA(趋势线,8);if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,Var2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORff00ff;风险区:IF(趋势>80,趋势,80),colorff00ff;双信号"全仓"选股(选股公式)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) AND REF(上,1)<="" p="">V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));</ref(var17,1),0,var17,1,0),color00ff00;<> </ref(趋势,2);<></hhv(low,70)*0.5;<></ref(llv(b4,5),1)*1.01<><></ref(var1,2);<></ma(v,5)*1.5;<></ma(c,5)*0.921;<></aa1*0.9;<></ma(v,5)*1.5;<></ma(c,5)*0.921;<></aa1*0.9;<>。
135战法通达信多个公式
135战法通达信多个公式135战法,通达信新版主图一蓄势篇(1)马失前蹄(2)日月合璧(3)金屋藏娇(4)红杏出墙(5)双蹄并进(6)步步高(7)四星望月(8)小鸟依人(9)四渡赤水(10)星星点灯(11)串阳(12)串阴(13)蚂蚁上树(14)八仙过海(15)九九艳阳天(16)十全十美(17)月季花开二转势篇(1)黑客点击(2)均线互换(3)海底捞月(4)投石问路(5)动感地带(6)绝外逢生(7)一锤定音三进攻篇(1)揭竿而起(2)红衣侠女(3)破镜从圆(4)一阳穿三线(5)三线推进(6)梅开二度(7)三军集结四防御篇(1)一石二鸟(2)双飞燕(3)三剑客(4)走四方(5)暗渡阵仓(6)浪子回头(7)立竿见影五撤退篇(1)一枝独秀(2)独上高楼(3)见好就收(4)一剑封喉(5)一箭穿心(6)明修栈道(7)狗急跳墙(8)拖泥带水(9)晨钟暮鼓(10)笑里藏刀(11)落井下石(12)节外生枝(13)过河拆桥(14)金蝉脱壳(15)分道扬镳(16)突出重围(17)一阴破三线{135战法,通达信新版主图}白马线:MA(C,13),COLORRED,LINETHICK1;黑马线:MA(C,34),COLORYELLOW,LINETHICK1;烈马线:MA(C,55),COLOR9933CC,LINETHICK1;K1:=BACKSET(白马线<ref(白马线,1),2);< p="">波幅变窄:IF(K1,白马线,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(黑马线<ref(黑马线,1),2);< p="">均线粘合:IF(K2,黑马线,DRAWNULL),COLORFFCC66,LINETHICK1;K3:=BACKSET(烈马线<ref(烈马线,1),2);< p="">随时变盘:IF(K3,烈马线,DRAWNULL),COLORBLUE,LINETHICK1;JW1:=C<ref(open,1);<="">JW2:=OPENREF(L,1);JW3:=O<ema(c,55);<="" p="">JW:=JW1 AND JW2 AND JW3;金屋藏娇:DRAWTEXT(JW,LOW-0.1,'←藏娇'),COLORYELLOW;AR1:=烈马线>黑马线AND 黑马线>白马线;AR2:=BARSLAST((C-白马线)/白马线*100<-6);AR3:=白马线>=REF(白马线,1);AR4:=COUNT(CROSS(C,白马线),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);红杏出墙:DRAWTEXT(AR6,L-0.0,'←红杏'),COLORYELLOW;Z1:STICKLINE(AR6,H,L,0.2,1),COLORYELLOW;Z2:STICKLINE(AR6,O,C,3,1),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((白马线-黑马线)+(黑马线-烈马线))/C<0.2;BR3:=C>烈马线AND (REF(C,1)<="" p="" ref(c,2)REF(C,3)<="">(C,5)蚂蚁上树:DRAWTEXT(BR4 AND FILTER(BR4,10),H+0.0,'←上树'),COLOR00C5FF; TS1:=CROSS(MA(C,13),MA(C,34));TS2:=MA(C,13)<ma(c,55);< p="">TS:=TS1 AND TS2;投石问路:DRAWTEXT(TS,黑马线-0.0,'←投石'),COLORF00FF0;破镜重圆:DRAWTEXT(REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),MA(C,55)))/MIN(MA(C,1),MA(C,55))*1000<60,1)AND EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<ref(ema< p="">((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1) AND REF((CLOSE-REF(CLOSE,1))/REF (CLOSE,1)*100<-1,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3,L-0.02,'←重圆');Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;YY1:=C>MA(C,13) AND OPEN<ma(c,13);< p="">YY3:=C>MA(C,34) AND OPEN<ma(c,34);< p="">YY5:=C>MA(C,55) AND OPEN<ma(c,55);< p="">阳穿三线:DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'←穿线'),COLORRED; SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<c*0.01;< p="">SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<c*0.01;< p="">SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));三军集结:DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.05,'←集结'),COLORRED; JG1:=ABS(MA(C,13)-MA(C,34))MA(C,13) OR O=MA(C,13);JG3:=C/OPEN>1.03 ;JG:=JG1 AND JG2 AND JG3;揭竿而起:DRAWTEXT(JG,H+0.0,'←揭竿'),COLORYELLOW;HR2:=白马线>=REF(白马线,3) AND 黑马线>=REF(黑马线,1) AND 烈马线>=REF (烈马线,1) AND CROSS(C,白马线) AND CROSS(C,黑马线) AND CROSS(C,烈马线); 三线推进:DRAWTEXT(HR2 AND FILTER(HR2,10),H+0.1,'←推进'),COLORFFC8FF; X1:STICKLINE(HR2 AND FILTER(HR2,10),H,L,0,1),COLORFFC8FF;X2:STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;MK1:=MA(C,13)>MA(C,55) AND MA(C,34)>MA(C,55);MK:=TS1 AND MK1;梅开二度:DRAWTEXT(MK,黑马线-0.0,'←二度'),COLORF00FF0;均线互换:DRAWTEXT(CROSS(黑马线,烈马线),烈马线-0.0,'←互换'),COLOR0099FF,LINETHICK9;YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影} YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);{昨收阳今大于均线} YZ:=YZ1 AND YZ2 AND Y>10;一支独秀:DRAWTEXT(YZ,H+0.02,'←独秀'),COLORF00FF0;DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;DS2:=V*100/FINANCE(7)>0.08 AND Y>8;DS:=DS1 AND DS2;独上高楼:DRAWTEXT(DS,HIGH+0.0,'←高楼'),COLORGREEN;YJ1:=H/O>1.04;YJ2:=ABS(C-O)<c*0.03;< p="">YJ3:=C/EMA(C,13)>1.1;YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;一剑封喉:DRAWTEXT(YJ,HIGH+0.1,'←封喉'),COLORRED;T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;NN1:=CMA(C,13);TT3:=CMA(C,34);TT5:=CMA(C,55);阴破三线:DRAWTEXT(NN1 AND TT5 AND TT3,H+0.0,'←破线'),COLORBLUE;红衣黑客:DRAWTEXT(CROSS(白马线,烈马线),烈马线-0.0,'←红客'), COLORYELLOW,LINETHICK9;投石叉:DRAWICON(CROSS(白马线,黑马线),黑马线,1);红客叉:DRAWICON(CROSS(白马线,烈马线),烈马线,1);互换叉:DRAWICON(CROSS(黑马线,烈马线),烈马线,1);分道叉:DRAWICON(CROSS(黑马线,白马线),黑马线,2);穿心叉:DRAWICON(CROSS(烈马线,白马线),烈马线,2);各为叉:DRAWICON(CROSS(烈马线,黑马线),烈马线,2);{买卖成交量}量:VOL,VOLSTICK;预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<="" p=""> ((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORFF00FF,POINTDOT ;卖:-IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<="" ar1*(high-low),0-vol="" p="">买卖%:ABS(买/卖),LINETHICK0,COLORWHITE;二十换:SUM(V/CAPITAL*100,20),COLORRED,POINTDOT;预换:MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,COLORFFFF00,POINTDOT;STICKLINE(VOL>0,VOL,0,2.5,0),COLORFF9088;STICKLINE(买>0,0,买,2.5,0),COLORFF00FF;五日均量:MA(V,5),COLORWHITE;十日均量:MA(V,10),COLORYELLOW;红箭:DRAWICON(CROSS(五日均量,十日均量),十日均量,1);绿箭:DRAWICON(CROSS(十日均量,五日均量),十日均量,2);{绝代双骄MACD}DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;DEA:EMA(DIF,9);DEF:=2*(DIF-DEA);MACD:(DIF-DEA)*2,COLORSTICK;进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK1;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(DIF<ref(dif,1),2);< p="">畏法度:IF(K2,DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED ,LINETHICK1;绿柱持币:IF(MACD0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);天堂:DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA,'←天'),COLORFF00FF;加油:DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA,'←加'),COLORYELLOW;地狱:DRAWTEXT(CROSS(DEA,DIF) AND DIF<0,DEA,'←地'),COLOR00CC33;末日:DRAWTEXT(CROSS(DEA,DIF) AND DIF>0,DEA,'←末'),COLORLIBLUE;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.03,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.03,9);金叉:DRAWICON(CROSS(DIF,DEA),DEA,1);死叉:DRAWICON(CROSS(DEA,DIF),DEA,2);{股市天机}DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);DEA:=EMA(DIF,7);DEF:=2*(DIF-DEA);量价线形:(DIF-DEA)*2,COLORSTICK;STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;DIFF:EMA(CLOSE,9)-EMA(CLOSE,18),COLORWHITE;DEAA:EMA(DIFF,7),COLORYELLOW;日:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK2;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK2;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.01,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.0,9);金叉:DRAWICON(CROSS(DIFF,DEAA),DEA,1);死叉:DRAWICON(CROSS(DEAA,DIFF),DEA,2);</ref(进退有据,1),2);<></ref(dif,1),2);<></ref(进退有据,1),2);<></c*0.03;<></c*0.01;<></c*0.01;<></ma(c,55);<></ma(c,34);<></ma(c,13);<></ref(ema<></ma(c,55);<></ref(烈马线,1),2);<></ref(黑马线,1),2);<> </ref(白马线,1),2);<>。
通达信神奇数字指标公式(一)
通达信神奇数字指标公式(一)通达信神奇数字指标公式简介通达信是一款常用于股票分析的软件,其中包含了许多神奇数字指标公式,这些公式可以帮助投资者进行技术分析和预测。
在本文中,我们将列举一些常用的通达信神奇数字指标公式,并通过举例进行解释说明。
1. MACD 指标公式MACD(Moving Average Convergence/Divergence)即移动平均收敛/背离指标,主要用于预测价格趋势和判断买卖信号。
公式:DIFF: EMA(12) - EMA(26)DEA: EMA(DIFF,9)MACD: (DIFF - DEA) * 2解释说明: - DIFF:短期EMA(Exponential Moving Average)与长期EMA的差值,用于衡量市场的短期变动力度。
- DEA:DIFF的9日EMA,用于平滑DIFF的变化。
- MACD:DIFF与DEA的差值,倍增后的结果,可用于判断价格的快速变化和拐点。
2. KDJ 指标公式KDJ 指标是一种反映价格波动和买卖信号的技术指标,常用于短期股票交易中。
公式:RSV: (CLOSE - MIN(LOW, N))/(MAX(HIGH, N) - MIN(LO W, N))* 100K: SMA(RSV, M1)D: SMA(K, M2)J: 3K - 2D解释说明: - RSV:未成熟随机指标,计算最近N天内收盘价相对于N天内的最低价和最高价的比例。
用于度量价格的强弱程度。
- K:RSV的M1日简单移动平均值,用于平滑RSV的变动。
- D:K的M2日简单移动平均值,用于平滑K的变动。
- J:K与D的差值的3倍,用来判断价格的超买和超卖情况。
3. RSI 指标公式RSI(Relative Strength Index)指标用于衡量市场的买卖力量,帮助判断价格的超买和超卖情况。
公式:RSI: EMA(MAX(CLOSE - PRE_CLOSE, 0),N) / EMA(ABS (CLOSE - PRE_CLOSE),N) * 100解释说明: - RSI:相对强弱指数,通过计算一段时间内上涨日的平均涨幅和下跌日的平均跌幅,来判断市场的超买和超卖情况。
通达信指标公式源码 量价相合数着来炒股 副图 无未来
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));主动:=SUM(主动买盘,0)/SUM(主动卖盘,0)*-1;低主5:=LLV(主动,5);动比:=主动-低主5;高动5:=6/HHV(动比,5);主动心:=高动5*动比;K1:=主动心+1-REF(主动心,1)>0;K2:=主动心+1-REF(主动心,1)<0;主动心向:=主动心*K1-主动心*K2;{下面是量价了相合}FF:=CLOSE-REF(CLOSE,1);A:=MA(VOL*FF,2);A0:=MA(VOL*FF,3);A1:=MA(VOL*FF,5);A2:=MA(VOL*FF,10);A3:=MA(VOL*FF,20);A4:=MA(VOL*FF,30);B:=A-REF(A,1);B0:=A0-REF(A0,1);B1:=A1-REF(A1,1);B2:=A2-REF(A2,1);B3:=A3-REF(A3,1);B4:=A3-REF(A4,1);量价相合:(B>0)+(B0>0)+(B1>0)+(B2>0)+(B3>0)+(B4>0);YES:(量价相合>1)*量价相合*(主动心向>1 OR 主动心>60);IF(YES>=REF(YES,1),量价相合,DRAWNULL),COLORGREEN,LINETHICK2;IF(YES>=REF(YES,1),YES,DRAWNULL),COLORRED,LINETHICK2;周期1:IF(YES,BARSLAST(CROSS(YES,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK5; 5,COLORGREEN;。
【股票指标公式下载】-【通达信】股海看量(外盘、内盘、市盈率)
【通达信】股海看量(外盘、内盘、市盈率)-指标公式源码实际V: VOL,LINETHICK0 ;外盘: DYNAINFO(23),LINETHICK0 ;内盘: DYNAINFO(22),LINETHICK0 ;TT:=240/FROMOPEN;比:=TT;昨V:=REF(V,1);预比昨:实际V*TT/昨V,LINETHICK0;市盈率 :DYNAINFO(39) ;换:V/CAPITAL*100,LINETHICK0;百日总:=SUM(V,100);百日换:百日总/CAPITAL*100,LINETHICK0;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);买卖差:=买盘-卖盘;STICKLINE(C>=O,0,买盘+卖盘,2.8,1),COLORRED;STICKLINE(C<O,0,买盘+卖盘,2.8,1),COLORFFFF00;STICKLINE(买卖差>=0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED;STICKLINE(买卖差>=0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差>=0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00; STICKLINE(买卖差<0,0,买盘,2.5,0),COLORRED;STICKLINE(买卖差<0 AND C>=MA(C,30),0,买盘,3.0,0),COLORRED; STICKLINE(买卖差<0,0,卖盘,1.1,0),COLOR998800;STICKLINE(买卖差<0 AND C>=MA(C,30),0,卖盘,1.5,0),COLORDDCC00; STICKLINE(1,0,MAX(买盘,卖盘),0,0),COLORFFFFFF;进出量:=买卖差;红天3:=COUNT(进出量>0,3)=3;DRAWICON(红天3,-400 ,1);【通达信】股海看量(外盘、内盘、市盈率)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】综合副图(跟庄买卖、MACD、准备买入、财神)
【通达信】综合副图(跟庄买卖、MACD、准备买入、财神)-指标公式源码P:=13;S:=5;M:=1;DIFF:EMA(C,S)-EMA(C,P);DEA:EMA(DIFF,M),COLORRED;MACD:2*(DIFF-DEA),COLORSTICK;P1:=P;S1:=S;DIFF1:EMA(C,S1)-EMA(C,P1);DEA1:EMA(DIFF,M),COLORRED;MACD1:=2*(DIFF1-DEA1),COLORSTICK;MACD2:=DEA;STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2*50,3,0 ),COLOR00AAFF; STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2>0,0,MACD2*50,1.8,0 ),COLOR00BBFF;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2>0,0,MACD2*50,1.3,0 ),COLOR00CCFF;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2>0,0,MACD2*50,1.2,0 ),COLOR00DDFF;STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2*50,1,0 ),COLOR00EEFF; STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2>0,0,MACD2*50,0.5,0 ),COLOR00FFFF;STICKLINE(MACD2>REF(MACD2,1)ANDMACD2>0,0,MACD2*50,3.4,0 ),COLOR0000AA;STICKLINE(MACD2>REF(MACD2,1)ANDMACD2>0,0,MACD2*50,3.2,0),COLOR0011BB;STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2*50,3,0),COLOR0022CC; STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2*50,2,0),COLOR0033DD; STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2*50,1,0),COLOR0044EE; STICKLINE(MACD2>REF(MACD2,1)ANDMACD2>0,0,MACD2*50,0.5,0),COLOR0055FF;STICKLINE(MACD2>REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,3.4,0),COLORAA00BB;STICKLINE(MACD2>REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,3.2,0),COLORBB11BB;STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2*50,3,0),COLORCC22BB; STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2*50,2,0 ),COLORDD33BB; STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2*50,1,0),COLOREE44BB; STICKLINE(MACD2>REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,0.5,0 ),COLORFF55BB;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,3,0 ),COLORFF7700;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,1.5 ,0 ),COLORFF8811;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,1.2,0 ),COLORFFAA22;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,1.0 ,0 ),COLORFFBB33;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,0.8 ,0 ),COLORFFDD44;STICKLINE(MACD2<=REF(MACD2,1)ANDMACD2<=0,0,MACD2*50,0.5 ,0 ),COLORFFFF55;VARA:=REF(LOW,1);VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);VARD:=LLV(LOW,30);VARE:=HHV(VARC,30);VARF:=IF(MA(CLOSE,58),1,0);VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;VARH:=IF(VARG>28,28,VARG);吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;备钱:IF(吸筹,1,0),COLOR0FFFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);买入时机: IF(CROSS(J,3),65,0),COLORFF00FF,LINETHICK3;DRAWTEXT(买入时机,70.1,' 跟庄'),COLOR00FF00;VA:=(2*C+H+L)/4;VB:=LLV(L,5);VC:=HHV(H,5);红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),CO LOR00FFFF;秘密买点: IF(趋势<=3,20,0),COLOR00FF00,LINETHICK3;机构建仓: IF(趋势<5,40,0),COLORFFFFFF,LINETHICK3;N:=5;VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1) ,COLORYELLOW,LINETHICK0;VAR2:8,COLORGREEN,LINETHICK0;上升在即: IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK2;专吸庄血: IF(VAR1<=8,25,0),STICK,COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(VAR1,VAR2) ,80,'准备买入'),COLOR00FFFF;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;STICKLINE(买点,0,-30,-12,0),COLOR0000FF;STICKLINE(买点,-20,-30,-10,0),COLORWHITE;STICKLINE(买点,-20,-30,-6,0),COLORYELLOW;DRAWTEXT(买点,-35,'财神'),COLORFF00FF;【通达信】综合副图(跟庄买卖、MACD、准备买入、财神)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】黄金量(顶、底、成交量、换手)
【通达信】黄金量(顶、底、成交量、换手)-指标公式源码VOLUME:VOL,VOLSTICK;顶:=HHV(V,90);底:=LLV(V,90);地:=底+(顶-底)*0.06;下:=底+(顶-底)*0.28;中:=底+(顶-底)*0.50;上:=底+(顶-底)*0.75;【金】:REFDATE(地,DATE),COLOR00FFFF;【银】:REFDATE(下,DATE),COLORFFFFFF;【铜】:REFDATE(中,DATE),COLORLIRED;【铁】:REFDATE(上,DATE),COLORRED;【顶】:REFDATE(HHV(V,90),DATE),COLORCYAN;MA1:=MA(VOL,5),COLORYELLOW;MA2:=MA(VOL,10),COLORWHITE;MA3:=MA(VOL,20),COLORWHITE;MA4:=MA(VOL,40),COLORMAGENTA;换手:=V*100/CAPITAL;{---------------------------------------------------}新股成交量:IF(BARSCOUNT(CLOSE)<40,VOL,DRAWNULL),VOLSTICK;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交量(手):VOL,COLORWHITE,LINETHICK0;调整周期:IF(MA1<MA4,BARSLAST(CROSS(MA4,MA1))+1,BARSLAST(CROSS(MA4,MA1))-BAR SLAST(CROSS(MA1,MA4))),NODRAW;调整总换手:IF(MA1<MA4,SUM(换手,BARSLAST(CROSS(MA4,MA1))+1),SUM(换手,BARSLAST(CROSS(MA4,MA1))+1)-SUM(换手,BARSLAST(CROSS(MA1,MA4))+1)),NODRAW;调整均换手:调整总换手/调整周期,NODRAW;虚拟成交量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;放量上涨:C/REF(C,1)>=1.01 AND V/REF(V,1)>=1.5 AND V>MA(V,5) ANDREF(V,1)/REF(MA(V,5),1)<=1.8,NODRAW;{-------------------------------------------------------------} STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交量,0,4,-1),COLOR00C0C0; 主动买盘:=IF(C>OPEN,AA*(HIGH-LOW),IF(C<OPEN,AA*((HIGH-OPEN)+(C-LOW)),VOL/2) );主动卖盘:=IF(C>OPEN,0-AA*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-AA*(HIGH-LOW),0-VOL/2));STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,VOL,0,3,0),COLOR0000AA; STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,2.5,0),COLOR0000BB ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1.5,0),COLOR0000CC ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1,0),COLOR0000EE; STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR7B7B00;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR909000;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLORA8A800;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLORCECE00;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,3,0),COLORRED; STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,2.5,0),COLOR0066FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1.5,0),COLOR0099FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1,0),COLORYELLOW; STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR007B00;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR009000;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLOR00A800;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLOR00FF00;DRAWICON(放量上涨,0,23);【通达信】黄金量(顶、底、成交量、换手)-指标公式效果图(文档来源:若水财经社区)。
通达信量价关系副图指标公式(适用)
通达信量价关系副图指标公式(适用)DRAWGBK(C>0, RGB(0,108,108),RGB(88,0,0),0,11,0);成交额:AMOUNT/100000000,NODRAW;主力:(LARGEINTRDVOL-LARGEOUTTRDVOL)*(11)/100,NODRAW;大单:主力/成交额/100,NODRAW;连红:BARSLASTCOUNT(主力>0),COLORRED,NODRAW;预量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预量,0,3,-1),COLORFFFFFF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;TJB:=ZZ<=MIN(C,O) AND CTKG=1;ZF:=IF(TJA,1,IF(TJB,-1,0));TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);TJ2:=H=L AND C<REF(C,1);TJ3:=H=L AND C=REF(C,1);量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;买卖差:=JGL_DX*量_价,COLOR13AADD,NODRAW;买盘:=量_价*(1+JGL_DX)/2,COLOR1133AA,NODRAW;卖盘:=量_价*(1-JGL_DX)/2,COLORFFFF00,NODRAW;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;净量:=主动买盘+主动卖盘,NODRAW;STICKLINE(C<O ,0,VOL,3.0,0),COLORFF1100;STICKLINE(C<O ,0,VOL,2.5,0),COLORFF3300;STICKLINE(C<O ,0,VOL,2.1,0),COLORFF5500;STICKLINE(C<O ,0,VOL,1.5,0),COLORFF7700;STICKLINE(C<O ,0,VOL,0.9,0),COLORFF9900;STICKLINE(C<O ,0,VOL,0.3,0),COLORFFBB00;STICKLINE(C=O AND C<REF(C,1),0,VOL,3.0,0),COLOR006000;STICKLINE(C=O AND C<REF(C,1),0,VOL,2.5,0),COLOR007500;STICKLINE(C=O AND C<REF(C,1),0,VOL,2.1,0),COLOR009100;STICKLINE(C=O AND C<REF(C,1),0,VOL,1.5,0),COLOR00A600;STICKLINE(C=O AND C<REF(C,1),0,VOL,0.9,0),COLOR00BB00;STICKLINE(C=O AND C<REF(C,1),0,VOL,0.3,0),COLOR00CC00;STICKLINE(C=O AND C>REF(C,1),0,VOL,3.0,0),COLOR555555;STICKLINE(C=O AND C>REF(C,1),0,VOL,2.5,0),COLOR777777;STICKLINE(C=O AND C>REF(C,1),0,VOL,2.1,0),COLOR999999;STICKLINE(C=O AND C>REF(C,1),0,VOL,1.5,0),COLORBBBBBB;STICKLINE(C=O AND C>REF(C,1),0,VOL,0.9,0),COLORDDDDDD;STICKLINE(C=O AND C>REF(C,1),0,VOL,0.3,0),COLORFFFFFF;STICKLINE(C>O,0,VOL,3.0,0),COLORFF11FF; STICKLINE(C>O,0,VOL,2.5,0),COLORFF33FF; STICKLINE(C>O,0,VOL,2.1,0),COLORFF55FF; STICKLINE(C>O,0,VOL,1.5,0),COLORFF77FF; STICKLINE(C>O,0,VOL,0.9,0),COLORFF99FF; STICKLINE(C>O,0,VOL,0.3,0),COLORFFBBFF;资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW; STICKLINE(主动买盘>0,0,主动买盘,3.0,0),COLOR000055; STICKLINE(主动买盘>0,0,主动买盘,2.5,0),COLOR000077; STICKLINE(主动买盘>0,0,主动买盘,2.1,0),COLOR000099; STICKLINE(主动买盘>0,0,主动买盘,1.5,0),COLOR0000BB; STICKLINE(主动买盘>0,0,主动买盘,0.9,0),COLOR0000DD; STICKLINE(主动买盘>0,0,主动买盘,0.3,0),COLOR0000FF; STICKLINE(主动卖盘<0,0,主动卖盘,3.0,0),COLOR006000; STICKLINE(主动卖盘<0,0,主动卖盘,2.5,0),COLOR007500; STICKLINE(主动卖盘<0,0,主动卖盘,2.1,0),COLOR009100; STICKLINE(主动卖盘<0,0,主动卖盘,1.5,0),COLOR00A600; STICKLINE(主动卖盘<0,0,主动卖盘,0.9,0),COLOR00BB00; STICKLINE(主动卖盘<0,0,主动卖盘,0.3,0),COLOR00CC00; STICKLINE(资金异动>100 ,0,VOL,0.6,0),COLORYELLOW; TX80:80,POINTDOT COLORYELLOW;DX20:20,POINTDOT COLORGREEN;VAR2:=HHV(HIGH,21);K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED; D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN; VAR3:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);VAR6:=(K+VAR5)/2;VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);VAR8:=EMA(VAR6,5);VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2); DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED; DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;。
(买入)通达信道破天机指标公式-道破,指标源码
(买入)通达信道破天机指标公式-道破,指标源码摘要:参数: n 1 999 13VAR2:=MA(CLOSE,5);VAR3:=MA(CLOSE,10);VAR4:=MA(CLOSE, 20);VAR5:=MA(CLOSE,30);VAR6:=((((VAR2 + VAR3) + VAR4) + VAR5) / 4);VAR7:=(((VAR6 - REF(VAR6,N)) / REF(VAR6,N)) * 100);VAR9:=EMA(VAR7,5);反转:STICKLINE(VAR9>1*REF(VAR9, 1), VAR7, 0, 5, 0), COLOREE00EE;持股:STICKLINE(VAR7>1*REF(VAR7, 1), VAR7, VAR9, 5, 0), COLORRED;持币:STICKLINE(VAR7<1*REF(VAR7, 1), VAR7, VAR9, 5, 1), COLORGREEN;洗盘:参数: n 1 999 13VAR2:=MA(CLOSE,5);VAR3:=MA(CLOSE,10);VAR4:=MA(CLOSE,20);VAR5:=MA(CLOSE,30);VAR6:=((((VAR2 + VAR3) + VAR4) + VAR5) / 4);VAR7:=(((VAR6 - REF(VAR6,N)) / REF(VAR6,N)) * 100);VAR9:=EMA(VAR7,5);反转:STICKLINE(VAR9>1*REF(VAR9, 1), VAR7, 0, 5, 0), COLOREE00EE;持股:STICKLINE(VAR7>1*REF(VAR7, 1), VAR7, VAR9, 5, 0), COLORRED;持币:STICKLINE(VAR7<1*REF(VAR7, 1), VAR7, VAR9, 5, 1), COLORGREEN;洗盘:STICKLINE(VAR7<1*REF(VAR7, 1) AND VAR9>1*REF(VAR9, 1), VAR7, VAR9, 10, 0),COLOR00EEFF;STICKLINE((((VAR7 < REF(VAR7,1)) AND (VAR9 > (1 *REF(VAR9,1)))) AND (VAR7 >0)),0,VAR9,5,0),COLORFF00FF;生死线:0,COLOR7766CC;VAR10:=(((CLOSE - MA(CLOSE,58)) / MA(CLOSE,58)) * 100);VAR11:=((((VAR10 > (1 * REF(VAR10,1))) AND (VAR10 < (0 - 26))) AND (VAR10 > (0 - 40))) * 1.5);VAR12:=((VOL / CAPITAL) * 100);VAR13:=LLVBARS(LOW,50);VAR14:=SUM(VOL,VAR13);VAR15:=HHVBARS(HIGH,50);VAR16:=SUM(VOL,VAR15);VAR17:=(((CLOSE - REF(OPEN,VAR15)) / REF(OPEN,VAR15)) * 100);VAR18:=((VAR16 / CAPITAL) * 100);VAR19:=(((CLOSE - REF(OPEN,VAR13)) / REF(OPEN,VAR13)) * 100);VAR20:=((VAR14 / CAPITAL) * 100);VAR21:=MA(CLOSE,3);VAR22:=(REF(CLOSE,2) * 0.865);VAR23:=(REF(CLOSE,13) * 0.772);VAR24:=MIN(VAR22,VAR23);VAR25:=MA(CLOSE,13);大底:(IF((((((CLOSE - VAR24) / CLOSE) < 0.03) AND (VAR17 <(0 - 35))) AND ((SUM(VAR12,7) / 5) <1.8)),1,0) * 10),LINETHICK2,COLORFFFF00;VAR26:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR27:=((EMA(CLOSE,12) - EMA(CLOSE,26)) * 100);VAR28:=EMA(VAR27,9);VAR29:=(2 * (VAR27 - VAR28));STICKLINE(((VAR27 < (0 - 50)) AND (VAR26 > 7)),0,(0 -10),5,0),COLORFFFF66;DRAWTEXT(((VAR27 < (0 - 50)) AND (VAR26 > 7)),(0 - 10),'单边追涨');DRAWTEXT(大底,8,'大底-成功率95%'),COLORFFFFFF;DRAWICON((CROSS(VAR9,VAR7) AND (VAR7 > 0)),VAR9,5);DRAWTEXT((CROSS(VAR9,VAR7) AND (VAR7 > 0)),VAR9,' 逃顶'),COLORWHITE;KS13:=(((CLOSE - MA(CLOSE,13)) / MA(CLOSE,13)) * (0 - 100));RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);FASTK:=SMA(RSV,3,1);D:=SMA(FASTK,3,1);VA1:=SMA(D,5,1);VA2:=(((CLOSE / MA(CLOSE,40)) * 100) < 76);VA3:=(((CLOSE / MA(CLOSE,60)) * 100) < 74);VA4:=(HIGH > (LOW * 1.051));FNZH:=(VA4 AND (COUNT(VA4,5) > 1));LC:=((((FNZH AND (VA2 OR VA3)) AND (REF(KS13,1) >= 10)) AND ((REF(KS13,1) / KS13) >= 1.13))AND ((CLOSE / REF(CLOSE,1)) >= 1.02));DRAWICON(LC,5,12);DRAWTEXT(LC,15,'反弹'),COLOR0000FF;RSI:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - RSI),0),6,1) / SMA(ABS((CLOSE - RSI)),6,1)) * 100);DRAWICON(((REF(VAR58,1) > 85) AND CROSS(84,VAR58)),VAR7,5);VARL:=TROUGHBARS(3,15,1)<10;VARK:=PEAKBARS(3,15,1)<10;VARJ:=IF(VARL=1,10,0);VARH:=IF(VARK=1,10,0);底部S:=IF(VARJ=10,4,0);多头能量:0,COLORWHITE,LINETHICK0;神仙脚买入:IF(底部S=4 AND REF(底部S,1)=4 AND REF(底部S,2)=0,8,0),COLORFFFF00,LINETHICK4;DRAWTEXT(底部S=4 AND REF(底部S,1)=4 AND REF(底部S,2)=0,8.5,'神仙脚买入')COLORYELLOW;买入延迟线:底部S,LINETHICK3,COLOR00CCFF;VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;持币区域:VAR1,COLORFEDCBA,LINETHICK4;持股区域:IF(VAR1>0,VAR1,0),COLOR00BBFF,LINETHICK4;短顶:STICKLINE(VAR1>9 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+2,0,3,0),COLORGREEN;大顶:STICKLINE(VAR1>20 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;VAR2D:=HHV(VAR1>20,10);危险: STICKLINE(VAR2D AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD (CLOSE,20)),VAR1+10,0,4,0);注意止损:STICKLINE(VAR2D AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);短底:STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,0),COLORRED;大底D:STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,0),COLORYELLOW;买入准备:VAR1<-9 AND VAR1> REF(VAR1,1) ,LINETHICK3,COLORWHITE;最佳买入:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),COLORRED,LINETHICK2;P1:=BARSSINCE(最佳买入=1);{P1:=1011022;}{21}P:=21;MM1:=IF(DATE>P1,1,0);MM11:=SUM(MM1,0);MM:=MM11-1;MM2:=IF(MM>0,1,0);MMA1:=MM-INTPART((MM)/P)*P;MMB:=P-MMA1;MMB1:=IF(MMB=P,0,MMB);STICKLINE( MMA1=0,0,20,1 ,0 ),LINETHICK2,COLORRED;AAQ:=DATE;AA1Q:=IF(AAQ>=P1,1,0);AA2Q:=SUM(AA1Q,0)-2;MMQ:=AA2Q;MM2Q:=IF(MMQ>0,1,0);MMA1Q:=MMQ-INTPART((MMQ)/P)*P;MMBQ:=P-MMA1Q;剩余21:MMB1,NODRAW;{14}PMM:=14;MMMM1:=IF(DATE>P1,1,0);MMMM11:=SUM(MMMM1,0);MMMM:=MMMM11-1;MMMM2:=IF(MMMM>0,1,0);MMMMA1:=MMMM-INTPART((MMMM)/PMM)*PMM;MMMMB:=PMM-MMMMA1;MMMMB1:=IF(MMMMB=PMM,0,MMMMB);STICKLINE( MMMMA1=0,0,10,1 ,0 ),LINETHICK2,COLORGRE EN;AAQMM:=DATE;AA1QMM:=IF(AAQMM>=P1,1,0);AA2QMM:=SUM(AA1QMM,0)-2;MMMMQMM:=AA2QMM;MMMM2QMM:=IF(MMMMQMM>0,1,0);MMMMA1QMM:=MMMMQMM-INTPART((MMMMQMM)/PMM)*PMM;MMMMBQMM:=PMM-MMMMA1QMM;剩余14:MMMMB1,NODRAW;{7}PM:=7;MMM1:=IF(DATE>P1,1,0);MMM11:=SUM(MMM1,0);MMM:=MMM11-1;MMM2:=IF(MMM>0,1,0);MMMA1:=MMM-INTPART((MMM)/PM)*PM;MMMB:=PM-MMMA1;MMMB1:=IF(MMMB=PM,0,MMMB);STICKLINE( MMMA1=0,0,5,1 ,0 ),LINETHICK2,COLORWHITE;AAQM:=DATE;AA1QM:=IF(AAQM>=P1,1,0);AA2QM:=SUM(AA1QM,0)-2;MMMQM:=AA2QM;MMM2QM:=IF(MMMQM>0,1,0);MMMA1QM:=MMMQM-INTPART((MMMQM)/PM)*PM;MMMBQM:=PM-MMMA1QM;剩余7:MMMB1,NODRAW;周期1:MMBQ;周期2:MMMMBQMM;周期3:MMMBQM;负1:-MMBQ;负2:-MMMMBQMM;负3:-MMMBQM;变化1:剩余21-剩余14;变化2:剩余14-剩余7;变化3:剩余21-剩余7;变化4:-(剩余21-剩余14);变化5:-(剩余14-剩余7);变化6:-(剩余21-剩余7);声明:本站部分内容来自合作媒体及网络,不代表本站观点.版权归原作者所有.关键字:剩余,买入,变化,周期,持股,道破天机买入公式指标。
通达信指标公式大全
SZ3天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13)),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(C<O AND REF(C,1)>REF(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2))COLORRED,POINTDOT;SZ2短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2 AND V/REF(V,1)>=0.8;D:=H=HHV(H,3);A ANDB AND D;SZ仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORW HITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0),5,1)/SMA(ABS(LC-REF(LC,1)),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;{STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF(仙人,1),1,0),COLORCYAN;}攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+ 9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF( MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空>=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多,空);卖:=CROSS(空,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;MA18:MA(C,18),COLOR0096FF;MA30:MA(C,30),COLOR00FF99;MA60:MA(C,60),COLORFF00FF;MA120:MA(C,120),COLORWHITE;{MA250:MA(C,250),COLORCY AN;}D1:=((MEMA(CLOSE,3) - MEMA(CLOSE,6)) * 5);S:=MA(C,9);Z:=((EMA(D1,7) + EMA(CLOSE,5))-S)*100;P:=EMA(Z,2);D2:=IF(Z>P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3 OR L<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE);DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,7);DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,8);LC:=REF(C,1);LD:=IF(C<LC*0.89,1,0);LE:=COUNT(LD=1,20);LF:=COUNT(LD=1,6);LG:=MA6/4.5;RSI1:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLOR YELLOW;EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;MJ0:=IF(AA AND LE<1,1,0);V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);V AR3:=(CLOSE-V AR1)/V AR1*100<-10;V AR4:=(V AR1-VAR2)/V AR2*100<-16;V AR5:=V AR3 AND V AR4;V AR6:=V AR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA; DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;DRAWICON(V AR6,L*0.96,11);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);支撑位:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW,COLORLIRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELL OW;DRAWICON(CROSS(J,0) AND RSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2);DRAWTEXT(CROSS(J,5)AND RSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);SZ15多方炮A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);多方炮:A8 AND J<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));VARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);VARFY:= - ((((V ARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));V AR3C:=EMA(能量线,1);V AR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW *0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH *1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK:=EMA(((( CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - VAR3) / (V AR4 - V AR3)) * 100),3);V AR6:=((AK + V AR5) / 2);V AR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * V AR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线 1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW; V AR1:LLV(A7,21);V AR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>V AR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-V AR1)/(V AR2-V AR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;V AR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}V AR4:=EMA(EMA(EMA(V AR3,4),4),4);{可将3该为4,信号少点}E:=(V AR4-REF(VAR4,1))/REF(V AR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>V AR1 AND 上线1>一号支撑线AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS( EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3 )+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BAR SLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2: =HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST( Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_ 2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);SHOOT:REF(TJ,1)=0 AND TJ>=1;SZ18背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;DRAWICON(周金AND 日金,-0.1,7);DRAWICON(周金AND 月金,-0.15,11);DRAWICON(日金AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIFF),-0.15,0),COLORGREEN;DRAWICON(周死AND 日死,-0.1,8);DRAWICON(周死AND 月死,-0.15,12);DRAWICON(日死AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1,NODRAW;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.225,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.275,'三全项'),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,' 反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOW<REF(LOW,1) AND LOW<REF(LOW,5) AND MACD>REF(MACD,1) AND 0>MACD AND 0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21); V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=V ARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;SZ16水池STICKLINE(C>0,90,95,10,0),COLOR408000;STICKLINE(C>0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;风险值:ZHENGYI,COLORCY AN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10综合预警V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21);V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);EMA(IF(LOW<=VARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10>0;SZ11笑脸M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位+2),MIN(REF(DIF,定位+3),MIN(REF(DIF,定位+4),MIN(REF(DIF,定位+5),MIN(REF(DIF,定位+6),REF(DIF,定位+7)))))));今股价低值:=MIN(REF(L,1),MIN(REF(L,2),MIN(REF(L,3),MIN(REF(L,4),MIN(REF(L,5),MIN(REF(L, 6),REF(L,7)))))));DIF现低:=MIN(REF(DIF,1),MIN(REF(DIF,2),MIN(REF(DIF,3),MIN(REF(DIF,4),MIN(REF(DIF,5),M IN(REF(DIF,6),REF(DIF,7)))))));底部背离:=IF(CROSS(DIF,DEA) AND 今股价低值<前股价低值AND DIF现低>DIF前低,100,0);信号1:=IF(底部背离=100 OR REF(底部背离,1)=100 OR REF(底部背离,2)=100 OR REF(底部背离,3)=100 OR REF(底部背离,4)=100 OR REF(底部背离,5)=100OR REF(底部背离,6)=100 OR REF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1) AND REF(M13,1)<=REF(M13,2) AND REF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZD AND ZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100 OR REF(TJ,2)=100 OR REF(TJ,3)=100 OR REF(TJ,4)=100 OR REF(TJ,5)=100OR REF(TJ,6)=100 OR REF(TJ,7)=100 OR REF(TJ,8)=100 OR REF(TJ,9)=100 OR REF(TJ,10)=100 ORREF(TJ,11)=100 OR REF(TJ,12)=100 OR REF(TJ,13)=100 OR REF(TJ,14)=100 OR REF(TJ,15)=100OR REF(TJ,16)=100 OR REF(TJ,17)=100 OR REF(TJ,18)=100 OR REF(TJ,19)=100 OR REF(TJ,20)=100,100,0);超跌:=IF(ZJ=100 AND DD=100 AND C>M13,100,0);入场:=IF(超跌=100 AND 信号1=100,100,0);XG:入场=100;SZ12跟庄A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);V AR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);V AR2:=EMA(VAR1,8);V AR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(V AR3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;V AR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND V AR4>13,0,50,2,0),COLOR0099FF;V AR5:=FILTER((趋势<=13 AND V AR4>13),10);DRAWTEXT(V AR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND V AR4,0,30,3,0),COLORGRAY;V AR6:=FILTER((趋势>=90 AND V AR4),10);DRAWTEXT(V AR6,40,'清仓'),COLORGRAY;V AR7:=LLV(LOW,30);V AR8:=HHV(HIGH,30);V AR9:=EMA((CLOSE-V AR7)/(V AR8-V AR7)*4,4)*25;STICKLINE(V AR9>90,100,105,3,2),COLORRED;V AR10:=(V AR9-LLV(V AR9,4))/(HHV(V AR9,4)-LLV(V AR9,4))*100;DRAWTEXT(IF(CROSS(V AR9,V AR10) AND V AR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,V AR9),95,9);V AR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;V AR12:=HHV(V AR11,30)*8;火焰山:EMA(IF(LOW<=V AR7 AND 趋势<40,(V AR11+V AR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;V AR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;V AR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;V AR16:=MAX(EMA(V AR13,2)-EMA(V AR14,5),0)*200;V AR17:=EMA(V AR16,5);波浪峰:V AR17,STICK,COLORFF00FF;STICKLINE(V AR17<REF(V AR17,1),0,V AR17,1,0),COLOR00FF00;V AR18:=MA(趋势线,8);IF(CROSS(V AR2,V AR18) AND V AR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,V AR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪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),1) AND REF(ZIG(3,5),1)>=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),1) AND REF(ZIG(3,10),1)>=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),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(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:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;SZ14老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;SZ250HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);HDY<45;SZ20逃跑V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;收盘价逃顶:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2,COLORBLUE; DRAWTEXT(收盘价逃顶,80,'收盘价逃顶'),COLOR000999;SZ21总金额总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;V AR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;DRAWICON(反弹=80,趋势J2-0.005,1);阶段底:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,CO LORRED,LINETHICK2;V1:=AMOUNT/VOL/100;V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(L,2)+O+ REF(O,1)+REF(O,2))/12,LINETHICK2,COLORLICYAN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);保护价:(REF(CLOSE,2)+REF(CLOSE,1)+O)/3;N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCY AN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】股市天机(量价线形、进退有据、钱袋、金叉)-指标公式源码
DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:=EMA(DIF,7);
DEF:=2*(DIF-DEA);
量价线形:(DIF-DEA)*2,COLORSTICK;
STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED; STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00; STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED; STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00; DIFF:EMA(CLOSE,9)-EMA(CLOSE,18),COLORWHITE;
DEAA:EMA(DIFF,7),COLORYELLOW;
日:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0); 月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);
进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK2;
K1:=BACKSET(进退有据<REF(进退有据,1),2);
速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK2;
卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.01,8);
钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.0,9);
金叉:DRAWICON(CROSS(DIFF,DEAA),DEA,1);
死叉:DRAWICON(CROSS(DEAA,DIFF),DEA,2);
【通达信】股市天机(量价线形、进退有据、钱袋、金叉)-指标公式效果图
(文档来源:若水财经社区)。