【股票指标公式下载】-【通达信】天地相交(蛮准、补仓)

合集下载

【股票指标公式下载】-【通达信】天地分时(操盘、持股、支撑)

【股票指标公式下载】-【通达信】天地分时(操盘、持股、支撑)

【通达信】天地分时(操盘、持股、支撑)-指标公式源码STICKLINE(C>0,0,100,15,0),COLOR7C221C;VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);波:=VAR3;段:=VAR4;VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;DRAWTEXT(FILTER(VAR5,10)=1,40,'底'),COLORRED;STICKLINE(FILTER(VAR5,10)=1,0,20,10,0),COLORRED;VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;STICKLINE(FILTER(VAR9,5)=1,80,100,4,0),COLOR007700;STICKLINE(FILTER(VAR9,5)=1,80,100,3,0),COLOR009900;STICKLINE(FILTER(VAR9,5)=1,80,100,2,0),COLOR00BB00;STICKLINE(FILTER(VAR9,5)=1,80,100,1,0),COLOR00DD00;STICKLINE(FILTER(VAR9,5)=1,80,100,0.3,0),COLOR00FF00;DRAWTEXT(FILTER(VAR9,5)=1,70,'顶'),COLORGREEN;VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;STICKLINE(VAR8,85,100,10,0),COLOR0099FF;100,COLORBBBBBB,LINETHICK3;0,LINETHICK3;AA:=LLV(LOW,36);BB:=HHV(HIGH,30);云:80,COLORWHITE;天:87.5,COLORBLUE,LINETHICK3;DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);飞:=DD,COLOR00FFFF,LINETHICK2;{IF(DD>REF(DD,1),DD,DRAWNULL),COLORRED,LINETHICK2;IF(DD<REF(DD,1) AND DD<87.5,DD,DRAWNULL),COLOR00FF00,LINETHICK2;} 海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);买B:=IF(CROSS(海,90) AND (飞<40),30,0),COLORYELLOW,LINETHICK2;地:10,COLORGREEN,LINETHICK3;买A:IF((COUNT((飞>REF(飞,1)),1)=1) AND (REF(飞,1)<REF(REF(飞,1),1)) AND (飞<地),40,0),COLORRED,LINETHICK2;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),COLORRED;持股: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),LINETHICK,COLORRED;支撑:LLV(持股,3),LINETHICK,COLOR00FFFF;下跌:MA(持股,12),COLOR6B8E23,LINETHICK2;转向:=CROSS(持股,下跌) AND 下跌<30;MA1:=MA(持股,5);VAR18:=CROSS(MA1,持股) AND MA1>80;{STICKLINE(支撑<下跌,支撑,下跌,2,0),COLOR6B8E23;}DRAWBAND(支撑,RGB(238,0,6),下跌,RGB(256,250,60));{STICKLINE(持股>0,支撑,持股,2,0),COLORRED;}DRAWBAND(持股,RGB(238,0,6),支撑,RGB(256,150,60));STICKLINE(支撑>下跌,下跌,支撑,2,0),COLOR38B0DE;DRAWICON(转向,支撑*0.98,23);DRAWICON(VAR18,持股*1.03,15);E:=CROSS(83,RSI);STICKLINE( E,E,55,1,0),COLOR00FFFF;DRAWTEXT(E,50,' 逃顶'),COLORFF9966;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(IND EXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);领先:EMA(B1,5),COLORCYAN;生命线:EMA(VARD,1),COLORYELLOW;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;VV:=V1 AND V2 AND V3 AND V4;A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);STICKLINE((A3 AND A4)OR(V1 AND V2 AND V3 ANDV4),B1*1.03,B1*1.120,1,0),COLORYELLOW;A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2* SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ,CIRCLEDOT ,COLORFF9900 ;安全位:=20;低位转强:IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2;开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0), COLORLIRED,POINTDOT;A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);极地上涨:IF(A6,领先,0),COLORGREEN,LINETHICK2;STICKLINE(开始拉升>0,15,开始拉升*1.01,1,0),COLORBLUE;STICKLINE((开始拉升>0 AND 开始拉升<400) OR (极地上涨>0 AND 极地上涨<400) OR (低位转强>0 AND 低位转强<400) OR (低位转强>0),30,开始拉升,1,0),COLORRED;STICKLINE(开始拉升>0,15,开始拉升*0.6,3,0),COLORBLUE;STICKLINE(开始拉升>0,15,开始拉升*0.4,3,0),COLOR00FF00;STICKLINE(开始拉升>0,15,开始拉升*0.2,3,0),COLOR0099CC;STICKLINE(低位转强>0,15,低位转强*1.01,1,0),COLORMAGENTA;STICKLINE((低位转强>0)OR(极地上涨>0),15,低位转强*0.4,3,0),COLORYELLOW; STICKLINE(低位转强>0,15,低位转强*0.2,3,0),COLORFFCC66;STICKLINE(极地上涨>0,15,极地上涨*1.01,1,0),COLORYELLOW;【通达信】天地分时(操盘、持股、支撑)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】金盘MACD(低位金叉、二次金叉)

【股票指标公式下载】-【通达信】金盘MACD(低位金叉、二次金叉)

【通达信】金盘MACD(低位金叉、二次金叉)-指标公式源码GG:=VOL/SUM(REF(VOL,1),5);ZS:=INDEXV/SUM(REF(INDEXV,1),5);量比:GG/ZS COLORBLUE;{MACD超准}SQX:=(C-MA(CLOSE,13))*3;DIFF:EMA(MA(SQX,7),1),COLORWHITE;DEA:EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;低位金叉:IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,1,DRAWNULL),COLORYELLOW,LINETHICK4,CROSSDOT;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,1.1,DRAWNULL),COLORFF00FF,LINETHICK4,CROSSDOT; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) ANDCROSS(DIFF,DEA),1.2,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;势:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED LINETHICK2;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF ANDCROSS(DEA,DIFF),COLORWHITE;顶背离_:IF(REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFFAND CROSS(DEA,DIFF),1.3,DRAWNULL),COLORF08000,LINETHICK4,CROSSDOT;压:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN LINETHICK2;A3:=CROSS(DIFF,DEA) AND DEA<0;零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),1.4,DRAWNULL),COLORWHITE,LINETHICK4,CROSSDOT;NN:=35;N:=20;M:=18;AAA1:=-(EMA(CLOSE,NN/2) - EMA(CLOSE,N/2))*10,COLORYELLOW;BBB1:=EMA(AAA1,M/2),COLORWHITE;MACD2:=100*(AAA1-BBB1)/N/2, COLORSTICK;STICKLINE(MACD2>=0,MACD2,0,0.000001,0) COLORRED;STICKLINE(MACD2<0,MACD2,0,0.000001,0) COLORCYAN;年线:EMA(MACD2,250) COLORMAGENTA;SHORT:=6;LONG:=10;MID:=5;DIF1:=EMA(CLOSE,SHORT)*10-EMA(CLOSE,LONG)*10 COLORBROWN;DEA1:=EMA(DIF1,MID) COLORBLUE;MACD1:=(DIF1-DEA1)*2,COLORSTICK;STICKLINE(MACD1>=0,MACD1,0,0.0000001,0) COLORMAGENTA;STICKLINE(MACD1<0,MACD1,0,0.0000001,0) COLORGREEN;0.7 POINTDOT COLORYELLOW;3 POINTDOT COLORWHITE;【通达信】金盘MACD(低位金叉、二次金叉)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】指导买卖(今日阻力、今日支撑、底部位、压力位)

【股票指标公式下载】-【通达信】指导买卖(今日阻力、今日支撑、底部位、压力位)

【通达信】指导买卖(今日阻力、今日支撑、底部位、压力位)-指标公式源码GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COL ORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;今日阻力:REF(明日阻力 , 1),NODRAW;今日支撑:REF(明日支撑 , 1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,COLORWHITE;疯牛19.8:REFDATE(H19,DATE),POINTDOT,COLORYELLOW;突破38.2:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA;平衡50:REFDATE(H中,DATE),POINTDOT,COLORRED;回落61.8:REFDATE(H61,DATE),POINTDOT,COLORGREEN;安全80.9:REFDATE(H80,DATE),POINTDOT,COLORBLUE;低点:REFDATE(低,DATE),POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,疯牛19.8,'疯牛'),COLORYELLOW;DRAWTEXT(ISLASTBAR,突破38.2,'突破'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,平衡50,'平衡'),COLORRED;DRAWTEXT(ISLASTBAR,回落61.8,'回落'),COLORMAGENTA;{DRAWTEXT(ISLASTBAR,安全80.9,'安全'),COLORYELLOW;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE};VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;DRAWICON(VAR19,L*0.98,1);DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L) AND V>REF(V,3) AND C<O,O*1.1,2);MA6:EMA(C,6),COLORWHITE;MA18:EMA(C,18),COLORGREEN;牧:STICKLINE(MA6>MA18 AND MA6>=REF(MA6,1) ANDMA18>REF(MA18,1),MA6,MA18,0.3,0),COLORRED;马:STICKLINE(MA6>MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;人:STICKLINE(MA6<MA18 AND MA6<=REF(MA6,1) ANDMA18<REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;中:STICKLINE(MA6<MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;长:STICKLINE(MA6>MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;线:STICKLINE(MA6<MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;买进:=CROSS(MA6,MA18) AND MA18>=REF(MA18,1);DRAWICON(买进,L*0.95,9);DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'落袋'),COLORCYAN;【通达信】指导买卖(今日阻力、今日支撑、底部位、压力位)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】一招定乾坤(中线、买入、洗盘结束、均衡)

【股票指标公式下载】-【通达信】一招定乾坤(中线、买入、洗盘结束、均衡)

【通达信】一招定乾坤(中线、买入、洗盘结束、均衡)-指标公式源码M5:MA(CLOSE,5);M10:MA(CLOSE,10);M20:MA(CLOSE,20);M30:MA(CLOSE,30);M60:MA(CLOSE,60);M120:MA(CLOSE,120);M250:MA(CLOSE,250);中线【买入】:=COUNT(CLOSE<M20,5)=4 AND CLOSE/M20>1.004 ANDCROSS(CLOSE,M20) AND M20>=REF(M20,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR112:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR114:=MA(VAR112,13);VAR115:=LLV(LOW,34);VAR118:=EMA(IF(LOW<=VAR115,VAR114,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7, 1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*1 6.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR118>REF(VAR118,1),VAR118*8,0),20); DRAWTEXT(T,LOW-0.5,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.3,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.5,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.3,'|'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.5,'←逃'),COLORGREEN;JG:=CROSS(M5,M10);VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);NL:=CROSS(MAVOL1,MAVOL2);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;NA:=CROSS(DIF,DEA);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;KD:=CROSS(K,D) AND CROSS(J,D);一招定乾坤:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR (JG AND NA AND KD) OR (NL AND NA AND KD),L*0.95,'←一招定乾坤'),COLORYELLOW;X:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW*0.98,'←短进'),COLORLIMAGENTA;空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11); DRAWTEXT(VAR5,L*0.98,'←追涨'),COLORRED;PT:=XMA(H,20);PAN:=XMA(CLOSE,7);RUO:=MEMA(CLOSE,3);DRAWICON(LONGCROSS(PAN,RUO,0.25) AND PT>H ,L*0.98,1);VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100; DRAWTEXT(CROSS(84,VARC),H*1.01,'逃'),COLORYELLOW ;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进场'),COLORYELLOW;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV( L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出局'),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;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;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A75:=(CLOSE > M5);A76:=(M5 > M10);A77:=(CLOSE > M10);A78:=(M5 > M20);A79:=(CLOSE > M20);A710:=REF(M20,1);A711:=(M20 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 <V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右。

通达信指标公式源码 不需要L2数据,也能计算分时大单买卖,准确率还是蛮高的

通达信指标公式源码 不需要L2数据,也能计算分时大单买卖,准确率还是蛮高的

A1:=IF(C>REF(C,1) AND V>500 AND V<=1000,1,0); A2:=SUM(A1,0);A3:=600*A2;A4:=IF(C>REF(C,1) AND V>1000 AND V<=1500,1,0); A5:=SUM(A4,0);A6:=1200*A5;A7:=IF(C>REF(C,1) AND V>1500 AND V<=2000,1,0); A8:=SUM(A7,0);A9:=1700*A8;A10:=IF(C>REF(C,1) AND V>2000 AND V<=2500,1,0); A11:=SUM(A10,0);A12:=2200*A11;A13:=IF(C>REF(C,1) AND V>2500 AND V<=3000,1,0); A14:=SUM(A13,0);A15:=2700*A14;A16:=IF(C>REF(C,1) AND V>3000 AND V<=3500,1,0); A17:=SUM(A16,0);A18:=3200*A17;A19:=IF(C>REF(C,1) AND V>3500 AND V<=4000,1,0); A20:=SUM(A19,0);A21:=3700*A20;A22:=IF(C>REF(C,1) AND V>4000 AND V<=4500,1,0);A23:=SUM(A22,0);A24:=4300*A23;A25:=IF(C>REF(C,1) AND V>4500 AND V<=5000,1,0);A26:=SUM(A25,0);A27:=4700*A26;A28:=IF(C>REF(C,1) AND V>5000 AND V<=5500,1,0);A29:=SUM(A28,0);A30:=5200*A29;A31:=IF(C>REF(C,1) AND V>5500 AND V<=6000,1,0);A32:=SUM(A31,0);A33:=5700*A32;A34:=IF(C>REF(C,1) AND V>6000 AND V<=6500,1,0);A35:=SUM(A34,0);A36:=6200*A35;A37:=IF(C>REF(C,1) AND V>6500 AND V<=7000,1,0);A38:=SUM(A37,0);A39:=6700*A38;A40:=IF(C>REF(C,1) AND V>7000 AND V<=7500,1,0);A41:=SUM(A40,0);A42:=7200*A41;A43:=IF(C>REF(C,1) AND V>7500 AND V<=8000,1,0);A44:=SUM(A43,0);A45:=7700*A44;A46:=IF(C>REF(C,1) AND V>8000 AND V<=8500,1,0);A47:=SUM(A46,0);A48:=8200*A47;A49:=IF(C>REF(C,1) AND V>8500 AND V<=9000,1,0);A50:=SUM(A49,0);A501:=8700*A50;A502:=IF(C>REF(C,1) AND V>9000 AND V<=9500,1,0); A503:=SUM(A502,0);A504:=8700*A503;A505:=IF(C>REF(C,1) AND V>9500 AND V<=10000,1,0); A506:=SUM(A505,0);A507:=9700*A506;A508:=IF(C>REF(C,1) AND V>10000 AND V<=10500,1,0); A509:=SUM(A508,0);A510:=10200*A509;A511:=IF(C>REF(C,1) AND V>10500 AND V<=11000,1,0); A512:=SUM(A511,0);A513:=10700*A512;A514:=IF(C>REF(C,1) AND V>11000 AND V<=11500,1,0); A515:=SUM(A514,0);A516:=11200*A515;A517:=IF(C>REF(C,1) AND V>11500 AND V<=12000,1,0);A518:=SUM(A517,0);A519:=11700*A518;A520:=IF(C>REF(C,1) AND V>12000 AND V<=12500,1,0);A521:=SUM(A520,0);A522:=12200*A521;A523:=IF(C>REF(C,1) AND V>12500 AND V<=13000,1,0);A524:=SUM(A523,0);A525:=12700*A524;A526:=IF(C>REF(C,1) AND V>13000 AND V<=13500,1,0);A527:=SUM(A526,0);A528:=13200*A527;A529:=IF(C>REF(C,1) AND V>13500 AND V<=14000,1,0);A530:=SUM(A529,0);A531:=13700*A530;A532:=IF(C>REF(C,1) AND V>14000 AND V<=14500,1,0);A533:=SUM(A532,0);A534:=13700*A533;A535:=IF(C>REF(C,1) AND V>14500 AND V<=15000,1,0);A536:=SUM(A535,0);A537:=13700*A536;A538:=IF(C>REF(C,1) AND V>15000 AND V<=16000,1,0);A539:=SUM(A535,0);A540:=15500*A536;A541:=IF(C>REF(C,1) AND V>16000 AND V<=17000,1,0);A542:=SUM(A541,0);A543:=16500*A542;A544:=IF(C>REF(C,1) AND V>20000 AND V<=25000,1,0);A545:=SUM(A544,0);A546:=22000*A545;大单买:A3+A6+A9+A12+A15+A18+A21+A24+A27+A30+A33+A36+A39+A42+A 45+A48+A501+A503+A507+A510+A513+A516+A519+A522+A525+A528+A 531+A534+A537+A540+A543+A546;A51:=IF(C<REF(C,1) AND V>500 AND V<=1000,1,0);A52:=SUM(A51,0);A53:=600*A52;A54:=IF(C<REF(C,1) AND V>1000 AND V<=1500,1,0);A55:=SUM(A54,0);A56:=1200*A55;A57:=IF(C<REF(C,1) AND V>1500 AND V<=2000,1,0);A58:=SUM(A7,0);A59:=1700*A58;A60:=IF(C<REF(C,1) AND V>2000 AND V<=2500,1,0);A61:=SUM(A60,0);A62:=2200*A61;A63:=IF(C<REF(C,1) AND V>2500 AND V<=3000,1,0); A64:=SUM(A63,0);A65:=2700*A64;A66:=IF(C<REF(C,1) AND V>3000 AND V<=3500,1,0); A67:=SUM(A66,0);A68:=3200*A67;A69:=IF(C<REF(C,1) AND V>3500 AND V<=4000,1,0); A70:=SUM(A69,0);A71:=3700*A70;A72:=IF(C<REF(C,1) AND V>4000 AND V<=4500,1,0); A73:=SUM(A72,0);A74:=4300*A73;A75:=IF(C<REF(C,1) AND V>4500 AND V<=5000,1,0); A76:=SUM(A75,0);A77:=4700*A76;A78:=IF(C<REF(C,1) AND V>5000 AND V<=5500,1,0); A79:=SUM(A78,0);A80:=5200*A79;A81:=IF(C<REF(C,1) AND V>5500 AND V<=6000,1,0); A82:=SUM(A81,0);A83:=5700*A82;A84:=IF(C<REF(C,1) AND V>6000 AND V<=6500,1,0); A85:=SUM(A84,0);A86:=6200*A85;A87:=IF(C<REF(C,1) AND V>6500 AND V<=7000,1,0); A88:=SUM(A87,0);A89:=6700*A88;A90:=IF(C<REF(C,1) AND V>7000 AND V<=7500,1,0); A91:=SUM(A90,0);A92:=7200*A91;A93:=IF(C<REF(C,1) AND V>7500 AND V<=8000,1,0); A94:=SUM(A93,0);A95:=7700*A94;A96:=IF(C<REF(C,1) AND V>8000 AND V<=8500,1,0); A97:=SUM(A96,0);A98:=8200*A97;A99:=IF(C<REF(C,1) AND V>8500 AND V<=9000,1,0); A100:=SUM(A99,0);A101:=8700*A100;A102:=IF(C<REF(C,1) AND V>9000 AND V<=9500,1,0); A103:=SUM(A102,0);A104:=8700*A103;A105:=IF(C<REF(C,1) AND V>9500 AND V<=10000,1,0);A106:=SUM(A105,0);A107:=9700*A106;A108:=IF(C<REF(C,1) AND V>10000 AND V<=10500,1,0);A109:=SUM(A108,0);A110:=10200*A109;A111:=IF(C<REF(C,1) AND V>10500 AND V<=11000,1,0);A112:=SUM(A111,0);A113:=10700*A112;A114:=IF(C<REF(C,1) AND V>11000 AND V<=11500,1,0);A115:=SUM(A114,0);A116:=11200*A115;A117:=IF(C<REF(C,1) AND V>11500 AND V<=12000,1,0);A118:=SUM(A117,0);A119:=11700*A118;A120:=IF(C<REF(C,1) AND V>12000 AND V<=12500,1,0);A121:=SUM(A120,0);A122:=12200*A121;A123:=IF(C<REF(C,1) AND V>12500 AND V<=13000,1,0);A124:=SUM(A123,0);A125:=12700*A124;A126:=IF(C<REF(C,1) AND V>13000 AND V<=13500,1,0);A127:=SUM(A126,0);A128:=13200*A127;A129:=IF(C<REF(C,1) AND V>13500 AND V<=14000,1,0);A130:=SUM(A129,0);A131:=13700*A130;A132:=IF(C<REF(C,1) AND V>14000 AND V<=14500,1,0);A133:=SUM(A132,0);A134:=13700*A133;A135:=IF(C<REF(C,1) AND V>14500 AND V<=15000,1,0);A136:=SUM(A135,0);A137:=13700*A136;A138:=IF(C<REF(C,1) AND V>15000 AND V<=16000,1,0);A139:=SUM(A138,0);A140:=15500*A139;A141:=IF(C<REF(C,1) AND V>20000 AND V<=25000,1,0);A142:=SUM(A141,0);A143:=22000*A142;大单卖:A53+A56+A59+A62+A65+A68+A71+A74+A77+A80+A83+A86+A89+A92 +A95+A98+A101+A104+A107+A110+A113+A116+A119+A122+A125+A128 +A131+A134+A137+A140+A143;DRAWRECTREL(550,CONST(100-大单买/1000)*1000/100,580,1000,90);DRAWRECTREL(580,CONST(100-大单卖/1000)*1000/100,610,1000,RGB(0,255,0));DRAWTEXT_FIX(1,0.500,0.20,0,STRCAT(STRCAT('【大单买】',CON2STR(大单买,2)),'手')),COLORYELLOW;DRAWTEXT_FIX(1,0.500,0.30,0,STRCAT(STRCAT('【大单卖】',CON2STR(大单卖,2)),'手')),COLORYELLOW;。

通达信准确率%以上选股公式

通达信准确率%以上选股公式

通达信准确率%以上选股公式专买老鼠仓{老鼠仓}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;<>。

【指标公式源码下载】通达信大中牛指标公式【均线、安全线、顶线、背离】

【指标公式源码下载】通达信大中牛指标公式【均线、安全线、顶线、背离】

通达信大中牛指标公式【均线、安全线、顶线、背离】当该指标出现大牛和中牛重叠提示时,可以大胆买入,持股待涨,赚够5个点走人.N1:=5;N2:=10;LC:=REF(CLOSE,1);A0:=(2*C+H+L)/4;均线:=MA(A0,3)>REF(MA(A0,3),1);安全线:2,COLORRED,POINTDOT,LINETHICK4;A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;D:MA(K,3),COLORFF0000,LINETHICK1;J:3*K-2*D,LINETHICK1,COLORF00FF0;DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CRO SS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(C ROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAS T(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CRO SS(MA13,MA5))+1),0),COLOR00FF00;BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);底线:0,COLORFF00FF;顶线:10,COLORFF0000;STICKLINE(UP,0,0.2,3,0),COLOR0000FF;STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;STICKLINE(BT,0,3,2,0),COLOR000088;STICKLINE(BT,0,3,1,0),COLOR0000CC;STICKLINE(BT,0,3,0.22,0),COLOR0000FF;DRAWTEXT(BT,3,'短牛'),COLOR0000FF;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(TJ1,0,2,3,0),COLOR880088;STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,1,5,0),COLOR008888;STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,10,9,5,0),COLOR008800;STICKLINE(ST,10,9,2,0),COLOR00AA00;STICKLINE(ST,10,9,1,0),COLOR00CC00;STICKLINE(ST,10,9,0.2,0),COLOR00FF00;DRAWTEXT(ST,9,'卖'),COLOR00FF00;DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:EMA(DIFF,9),COLORFFFF00;A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);DRAWTEXT(底背离,-0.6,'底背离'),COLORWHITE;A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(顶背离,11,'顶背离'),COLORWHITE;。

通达信指标——布林天地(主图)

通达信指标——布林天地(主图)

{布林天地-主图[通达顺主图公式]}{N 1 100 15 P 0 20 2复制内容到剪贴板代码: }MID : MA(CLOSE,N);UPPER: MID + P*STD(CLOSE,N);LOWER: MID - P*STD(CLOSE,N);V AR1:=CLOSE > REF(CLOSE,1) AND CLOSE > REF(CLOSE,2);V AR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V ARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V ARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V ARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V ARD:=CLOSE < REF(CLOSE,1) AND CLOSE < REF(CLOSE,2);V ARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V ARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR19:=REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR VAR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1) AND V AR1;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),12,1),COLORMAGENTA;V AR1A:=REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1) AND V ARD;STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),12,1),COLORYELLOW;。

金钻指标-天地三色:(价值2000元)通达信指标公式

金钻指标-天地三色:(价值2000元)通达信指标公式

金钻指标-天地三色:(价值2000元)通达信指标公式金钻指标-天地三色是一种在通达信软件中使用的技术指标,具有较高的价值。

该指标可以帮助投资者分析股票走势和预测未来的趋势。

指标公式天地三色指标的计算方法如下:STEP1:计算天地三色指标的初级数值1. 首先计算四个相关买卖价:H(最高价),L(最低价),C (收盘价)和O(开盘价)。

2. 计算第一步的平均值:REF_AVG1 = (H + L + C + O) / 4。

3. 计算DIFF = C - REF_AVG1。

4. 计算DIFF的绝对值:ABS_DIFF = ABS(DIFF)。

5. 计算天地三色指标的初级数值:SR = SUM(ABS_DIFF, N) / (SUM(H, N) - SUM(L, N)),其中N为统计周期。

STEP2:计算天地三色指标的高级数值1. 计算SR的平滑值:EMA_SR = EMA(SR, M),其中M为平滑周期。

2. 计算DIF = REF(EMA_SR, 1) - EMA_SR。

3. 计算DEA = EMA(DIF, M2),其中M2为平滑周期2。

4. 计算天地三色指标的高级数值:G2G8 = 100 * (DIF -REF(DIF, 1)) / EMA(DIF, 1)。

使用方法金钻指标-天地三色提供了以下几个主要的应用方法:1. 趋势分析:通过观察天地三色指标的数值变化和趋势,可以判断股票是处于上升趋势、下降趋势还是盘整状态。

2. 买卖信号:当天地三色指标的高级数值G2G8从负值转为正值时,可以认为是买入信号;当G2G8从正值转为负值时,则是卖出信号。

3. 过滤器:结合其他技术指标一起使用,可以起到过滤无效买卖信号的作用。

注意事项1. 金钻指标-天地三色只是一种辅助分析工具,在使用时应结合其他技术指标和基本面分析来综合判断。

2. 应选择合适的统计周期N和平滑周期M、M2,以适应不同股票的特点和交易风格。

3. 在实际操作中,应谨慎对待买卖信号,并在交易风险可控的情况下进行操作。

【股票指标公式下载】-【通达信】改良上下时空(上涨、天线、地线、中线)

【股票指标公式下载】-【通达信】改良上下时空(上涨、天线、地线、中线)

【通达信】改良上下时空(上涨、天线、地线、中线)-指标公式源码HH:=HHV(H,200);LL:=LLV(L,200);上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW; ↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW; ↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00;中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00;STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;{2}高:=天线;低:=地线;H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;风:REFDATE(H1,DATE),COLORYELLOW;花:REFDATE(H2,DATE),COLORLICYAN;雪:REFDATE(H3,DATE),COLORRED;月:REFDATE(H4,DATE),COLORLIGREEN;静:REFDATE(H5,DATE),COLORMAGENTA;DRAWTEXT(下跌=0,高,'高'),COLORGREEN;DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN;DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY;DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW;DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED;DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA;DRAWTEXT(上涨=0,低,'低'),COLORRED;DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF;DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF;DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF;DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF;DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF;DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF;DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF;DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF;DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF;DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF;DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00;DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00;DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00;DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00;DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00;DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00;DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00;DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00;DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00;DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00;【通达信】改良上下时空(上涨、天线、地线、中线)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】实战解盘(MACD)

【股票指标公式下载】-【通达信】实战解盘(MACD)

【通达信】实战解盘(MACD)-指标公式源码DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD2:=(2 * (DIFF - DEA));DU0:=CROSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF((TDU3 < TUD3),REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3)); JDU0:=(((REF(CLOSE,1) <= REF(UDGLINE,1)) AND (CLOSE > UDGLINE)) AND (TDU0 < TUD0));JUD0:=(((REF(CLOSE,1) >= REF(UDGLINE,1)) AND (CLOSE < UDGLINE)) AND (TUD0 < TDU0));JDU1:=(JDU0 AND (COUNT(JDU0,TDU0) = 1));JUD1:=(JUD0 AND (COUNT(JUD0,TUD0) = 1));JDU2:=(JDU1 AND (REF(BARSLAST(JUD1),1) < REF(BARSLAST(JDU1),1))); JUD2:=(JUD1 AND (REF(BARSLAST(JUD1),1) > REF(BARSLAST(JDU1),1))); JDU3:=(JDU1 AND (REF(BARSLAST(JUD1),1) > REF(BARSLAST(JDU1),1))); JUD3:=(JUD1 AND (REF(BARSLAST(JUD1),1) < REF(BARSLAST(JDU1),1))); BSLINE:=IF((BARSLAST(JDU2) <BARSLAST(JUD2)),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BA RSLAST(REF(CROSS(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2), REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));DRAWICON((JDU1 OR (BARSLAST(JDU1) < BARSLAST(JUD1))),0,10); STICKLINE((MACD2>=0),0,MACD2,3,1),COLOR0000FF;STICKLINE(((MACD2>=0) AND (MACD2 <REF(MACD2,1))),0,MACD2,3,0),COLORCYAN;STICKLINE((MACD2<0),0,MACD2,3,0),COLORFFFF00;STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,3,1),COLORRED;DIF:DIFF,LINETHICK2,COLOR00FFFF;DEF:DEA,COLOR00FF00;MACD:MACD2,LINETHICK0,COLORFFFF00;DEFUT:=BARSLAST(CROSS(MACD2,0));DEFDT:=BARSLAST(CROSS(0,MACD2));DEFUL:=IF((MACD2 >= 0),HHV(MACD2,(DEFUT + 1)),REF(HHV(MACD2,(DEFUT + 1)),(DEFDT + 1)));DEFDL:=IF((MACD2 < 0),LLV(MACD2,(DEFDT + 1)),REF(LLV(MACD2,(DEFDT + 1)),(DEFUT + 1)));DEFU2L:=REF(DEFUL,(DEFUT + 1));DEFD2L:=REF(DEFDL,(DEFDT + 1));DRAWICON(((((LLV(MACD2,4) > 0) AND (MACD2 < REF(MACD2,1))) AND(REF(MACD2,1) > REF(MACD2,2))) AND (REF(MACD2,2) >REF(MACD2,3))),MACD2,5);DRAWICON(((((HHV(MACD2,4) < 0) AND (MACD2 > REF(MACD2,1))) AND(REF(MACD2,1) < REF(MACD2,2))) AND (REF(MACD2,2) <REF(MACD2,3))),MACD2,4);DRAWICON(((((JUD1 OR (BARSLAST(JDU1) > BARSLAST(JUD1))) AND (MACD2 >= 0)) AND (REF(MACD2,1) < REF(DEFU2L,1))) AND (MACD2 > DEFU2L)),MACD2,12); DRAWICON(((((JDU1 OR (BARSLAST(JDU1) < BARSLAST(JUD1))) AND (MACD2 < 0)) AND (REF(MACD2,1) > REF(DEFD2L,1))) AND (MACD2 < DEFD2L)),MACD2,12);【通达信】实战解盘(MACD)-指标公式效果图(文档来源:若水财经社区)。

通达信天地线副图指标通达信指标公式源码

通达信天地线副图指标通达信指标公式源码

通达信天地线副图指标看捞钱手,智能黄金线,箱顶,箱底指示操作。

MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L +H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 ANDG1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;{IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);智能黄金线:A,COLORYELLOW,LINETHICK1;B:=REF(A,1);STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳') ,LINETHICK2,COLORRED;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖');DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,'★买'),COLOR00FF00;{}选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);{DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;STICKLINE(C>=O,C,O,5,0),COLORRED;STICKLINE(C>=O,H,L,0,0),COLORYELLOW;STICKLINE(C<=O,C,O,5,0),COLORGREEN;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF; STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;。

【股票指标公式下载】-【通达信】综合副图(跟庄买卖、MACD、准备买入、财神)

【股票指标公式下载】-【通达信】综合副图(跟庄买卖、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、准备买入、财神)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】二合一金叉(顶背离、低金叉、金叉共振)

【股票指标公式下载】-【通达信】二合一金叉(顶背离、低金叉、金叉共振)

【通达信】二合一金叉(顶背离、低金叉、金叉共振)-指标公式源码DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);} DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORYELLOW;D:SMA(K,9,3),COLORWHITE;J:3*K-2*D,COLORMAGENTA;IF(J<D,J,DRAWNULL),COLORFFEE44;0,COLORRED,LINETHICK2;20,COLORLIMAGENTA;{50,COLORWHITE;}80,COLORBLUE;100,COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,0,'高安全区'),COLORRED;DRAWTEXT(ISLASTBAR,20,'安全区'),COLORLIMAGENTA;DRAWTEXT(ISLASTBAR,80,'风险区'),COLORBLUE;DRAWTEXT(ISLASTBAR,100,'高风险区'),COLORGREEN;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;{DJ:=CROSS(J,D) AND D<20;DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;MDJ:=CROSS(DIF,DEA) AND DEA<0;DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORYELLOW;DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);DRAWICON(A,LOW*0.98,1);B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;DRAWICON(CROSS(K,D),D,1);DRAWICON(CROSS(D,K),D,2);BA:=DEA>REF(DEA,1);BB:=SUM(BA,5)>=4;BC:=C<O;BD:=SUM(BC,5)>=2;BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3); STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;SS:=EMA(C,11);LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;{短:EMA(LL,2),COLORGREEN,LINETHICK2;}{长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));(CROSS(AA,0.05)-1);【通达信】二合一金叉(顶背离、低金叉、金叉共振)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码 天地趋势

通达信指标公式源码 天地趋势

DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'12',0);生命线:=MA(C,60);牛熊线:=MA(C,120);DRAWBAND(生命线,RGB(200,50,55),牛熊线,RGB(0,100,50)); DRAWKLINE(H,O,L,C);股价96:="Y395";增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1);X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;IF(Y396>REF(Y396,1),Y396,DRAWNULL),COLORRED,LINETHICK2;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高风区2:Y396*1.125,COLORLIRED,COLORFF0000;高风区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1); W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1); XG:=W1 OR W2;VAR1:=AMOUNT/VOL/7;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,10)/VAR1/7;VAR4:=DMA(VAR2,VOL/VAR3);VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;XG1:=CROSS(VAR5,MA(VAR5,2)) AND VAR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 ANDFILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区3 AND H>高风区2;DRAWICON(WSR15 ANDFILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN; DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN; DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; }GET:=ZIG(3,3),COLORFFFFFF;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);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;V1:=(C+H+L)/3;MA3:=MA(V1,2);MA5:=MA(V1,5);DRAWBAND(MA2,RGB(200,50,55),MA5,RGB(0,100,50));遵:IF(MA2>=MA5,MA2,DRAWNULL),COLORRED;守:IF(MA5>=MA2,MA5,DRAWNULL),COLORFF9900;纪:IF(MA2>=MA5,MA5,DRAWNULL),COLOR00FFFF;律:IF(MA5>=MA2,MA2,DRAWNULL),COLOR00FF00; DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;。

通达信地量好指标公式源码

通达信地量好指标公式源码

通达信地量好指标公式源码MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,20);MA4:=MA(C,40);MA5:=MA(C,60);MA6:=MA(C,30);MA7:=MA(C,120);P3:=ABS(MA1-MA2)+ABS(MA2-MA3)+ABS(MA1-MA3);良知之花:=IF(P3/C<6/100,2,0)COLORFF00FF,LINETHICK3;K1:=1;M1:=5;M2:=10;M3:=20;M4:=60;P:=VOL;牛波波:=IF(MA(P,M1)>MA(P,M4)*0.9,2,0)COLORFF33CC,LINETHICK3;VOLUME:=VOL;LB:=VOL/REF(MA(VOL,5),1)COLORGREEN;LONG:=26;SHORT:=12;M:=9;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);顽强绽放:=IF(CROSS(DIFF,DEA) AND MACD>REF(MACD,1),1,0)COLORRED,LINETHICK2;香飘世界:=IF(CROSS(DIFF,DEA) AND DIFF<0 AND DEA<0AND MACD>REF(MACD,1),1,0)COLORRED,LINETHICK2;空依子:=IF(DIFF>0 AND DEA>0 AND CROSS(DIFF,DEA)AND MACD>REF(MACD,1),1,0)COLORRED,LINETHICK2;地量180:IF(VOL<REF(LLV(VOL,180),1),1.8,0)COLOR9999FF,LINETHICK 3;地量150:IF(VOL<REF(LLV(VOL,150),1),1.5,0)COLORFFFF00,LINETHICK 3;地量120:IF(VOL<REF(LLV(VOL,120),1),1.2,0)COLOR0066FF,LINETHICK 3;地量90:IF(VOL<REF(LLV(VOL,90),1),0.9,0)COLORYELLOW,LINETHICK3;地量60:IF(VOL<REF(LLV(VOL,60),1),0.6,0)COLORFF00FF,LINETHICK3;地量40:=IF(VOL<REF(LLV(VOL,40),1),0.4,0)COLORGREEN,LINETHICK3;春天里:=IF(香飘世界=1 AND REF(EXIST(香飘世界=1,40),12)AND (DEA>REF(DEA,12) OR DEA>REF(DEA,13)OR DEA>REF(DEA,14) OR DEA>REF(DEA,15)OR DEA>REF(DEA,16) OR DEA>REF(DEA,17)OR DEA>REF(DEA,18) OR DEA>REF(DEA,19)OR DEA>REF(DEA,20) OR DEA>REF(DEA,21)OR DEA>REF(DEA,22) OR DEA>REF(DEA,23)OR DEA>REF(DEA,24) OR DEA>REF(DEA,25)OR DEA>REF(DEA,26)),1,0)COLORFF00FF,LINETHICK2;希望1:=IF((EXIST(地量150=1.5,12) OR EXIST(地量120=1.2,12) OR EXIST(地量90=0.9,12)) AND 顽强绽放,1,0)COLORWHITE,LINETHICK8;希望2:=IF((EXIST(地量150=1.5,12) OR EXIST(地量120=1.2,12) OR EXIST(地量90=0.9,12)) AND 顽强绽放,1,0)COLORYELLOW,LINETHICK8;希望3:=IF((EXIST(地量120=1.2,10) OR EXIST(地量90=0.9,10) OR EXIST(地量60=0.6,10) OR EXIST(地量40=0.4,10))AND 顽强绽放,1,0)COLORYELLOW,LINETHICK8;安全奖:IF(希望1 AND 香飘世界AND (春天里 OR REF(春天里,1))AND LB>1,1.8,0)COLORGREEN,LINETHICK8;平和奖:IF(希望2 AND C<MA5*1.2AND LB>2.2,1.2,0)COLORRED,LINETHICK8;WJ:=(MA5>REF(MA5,1) AND REF(MA5,1)>REF(MA5,2))AND (MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1));勇气奖:IF(希望3 AND 空依子AND (良知之花 OR REF(良知之花,1)) AND WJAND C>MA1 AND MA1>MA5 AND MA3>MA5AND EXIST(MA1<MA3,5) AND LB>2,1,0)COLORYELLOW,LINETHICK8;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档