【股票指标公式下载】-【通达信】突破重围(空仓、持股、搏杀生命线、启动线)
通达信蓄势突破选股指标公式
通达信蓄势突破选股指标公式boll := ma(CLOSE,20);UPPER := BOLL + (2 * stD(CLOSE,20));LOWER := BOLL - (2 * STD(CLOSE,20));WIDTH := (UPPER - LOWER) / BOLL;MAWIDTH := MA(WIDTH,6);CV := CLOSE;bbiBOLL := (((MA(CV,3) + MA(CV,6)) + MA(CV,12)) + MA(CV,24)) / 4;UPR := BBIBOLL + (6 * STD(BBIBOLL,11));DWN := BBIBOLL - (6 * STD(BBIBOLL,11));WIDTH1 := (UPR - DWN) / BBIBOLL;MAWIDTH1 := MA(WIDTH1,6);UPPE := (1 + (6 / 100)) * MA(CLOSE,25);LOWE := (1 - (6 / 100)) * MA(CLOSE,25);ene := (UPPE + LOWE) / 2;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);DIF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIF,9);macd := (DIF - DEA) * 2;MA05 := MA(CLOSE,5);MA10 := MA(CLOSE,10);MA30 := MA(CLOSE,30);MA60 := MA(CLOSE,60);volUME := VOL;MAVOL5 := MA(VOLUME,5);MAVOL10 := MA(VOLUME,10);MAVOL30 := MA(VOLUME,30);MAVOL60 := MA(VOLUME,60);LB := DYNAINFO(17);换手率 := (100 * V) / CAPITAL;虚拟量 := IF((CURRBARSCOUNT = 1) AND (PERIOD = 5),(VOL * 240) / FROMOPEN,DRAWNULL);交易时间 := FROMOPEN;虚换手 := (换手率 * 240) / 交易时间;虚换比 := 虚换手 / REF(换手率,1);虚拟额 := (虚拟量 * C) * 100;ZT := CLOSE >= (REF(CLOSE,1) * 1.09);一字涨停 := ZT AND (OPEN = CLOSE);冲ZT := H >= (REF(CLOSE,1) * 1.09);ZT3 := COUNT(ZT,3);ZT5 := COUNT(ZT,5);ZT10 := COUNT(ZT,10);ZT30 := COUNT(ZT,30);ZT40 := COUNT(ZT,40);ZT60 := COUNT(ZT,60);MTR := EXPMEMA(MAX(MAX(HIGH - LOW,Abs(HIGH - REF(CLOSE,1))),ABS(REF(CLOSE,1) - LOW)),14);HD := HIGH - REF(HIGH,1);LD := REF(LOW,1) - LOW;DMP := EXPMEMA(IF((HD > 0) AND (HD > LD),HD,0),14);DMM := EXPMEMA(IF((LD > 0) AND (LD > HD),LD,0),14);pdi := (DMP * 100) / MTR;mdi := (DMM * 100) / MTR;ADX := EXPMEMA(((ABS(MDI - PDI)) / (MDI + PDI)) * 100,6);ADXR := EXPMEMA(ADX,6);AA := MA((((2 * CLOSE) + HIGH) + LOW) / 4,5);通道1 := (AA * 102) / 100;通道2 := (AA * (200 - 102)) / 100;CC := (ABS(((((2 * CLOSE) + HIGH) + LOW) / 4) - MA(CLOSE,20))) / MA(CLOSE,20);DD := DMA(CLOSE,CC);通道3 := (1 + (7 / 100)) * DD;通道4 := (1 - (7 / 100)) * DD;TYP := ((HIGH + LOW) + CLOSE) / 3;cci := (TYP - MA(TYP,14)) / (0.015 * AVEDEV(TYP,14));剔除大盘 := ((((((((((((CAPITAL > 100000000) OR NAMELIKE(1)) OR NAMELIKE(2)) OR (FINANCE(34) < 1)) OR (FINANCE(33) < -0.8)) OR (C > 50)) OR ((C > 35) AND ((CLOSE / FINANCE(34)) > 10))) OR ((CAPITAL >= 40000000) AND ((CLOSE / FINANCE(34)) >4))) OR ((CAPITAL >= 20000000) AND ((CLOSE / FINANCE(34)) >5))) OR ((CAPITAL >= 10000000) AND ((CLOSE / FINANCE(34)) > 7))) OR (CODELIKE(3) AND (FINANCE(33) < -0.2))) OR (CODELIKE(3) AND (CAPITAL > 6000000))) OR (CODELIKE(4) AND (CAPITAL > 10000000));我大盘 := NOT(剔除大盘);蓄势突破 : ((((((((((((((((((DATE < 1991201) AND ((ZT60 >= 1) OR (COUNT(冲ZT,30) >= 1))) AND ((HHV(C,3) >= HHV(C,60)) OR (HHV(H,3) >= HHV(H,60)))) AND (C > REF(通道3,1))) AND (C > 通道1)) AND (通道1 > REF(通道1,1))) AND (MA30 >= REF(MA30,1))) AND (MA60 >= REF(MA60,1))) AND (MA10 >= REF(MA10,1))) AND (HHV(虚换手,3) >= 5)) AND 我大盘) AND (DYNAINFO(4) > 0)) AND (((ADX > REF(ADX,1)) AND (ADXR > REF(ADXR,1))) OR ((ADX > REF(ADX,1)) AND (PDI > REF(PDI,1))))) AND (MDI < REF(MDI,1))) AND (PDI > 20)) AND (ADX > 30)) AND (ADXR > 30))AND (MDI < 20)) AND (CCI >= 100);。
通达信突破杀入主图 附突破杀入线选股预警
通达信突破杀入主图附突破杀入线选股预警NA:=STRCAT(CON2STR(YEAR,0),' 年');YA:=STRCAT(CON2STR(MONTH,0),' 月');RA:=STRCAT(CON2STR(DAY,0),' 日');SJ:=STRCAT(STRCAT(NA,YA), RA);DRAWTEXT_FIX(C>0,0.88,0,0,SJ);{布林+宝塔+蓝灰操盘}{蓝灰底}买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,HHV(H,60),LLV(L,60),5,0),COLOR000045; STICKLINE(买线<卖线,HHV(H,60),LLV(L,60),5,0),COLOR004500;{红轨道}红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;轨道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;SHENG:=IF(红轨道>=轨道,轨道,DRAWNULL);升:SHENG,COLORMAGENTA,LINETHICK2;{变色K线}N1:=14;M:=6;TR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(C LOSE,1)-LOW)),N1);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N1);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N1);PDI:=DMP*100/TR1,LINETHICK2;MDI:=DMM*100/TR1;ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:=EXPMEMA(ADX,M);VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),3,1),COLOR0000FF;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLORC08000;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; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA ; VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0) ,COLOR00FF00; }{箱体线}N:=7;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND(HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND(HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));突破杀入线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR,T3HIGH, 1),LINETHICK1,COLORYELLOW;DRAWTEXT(ISLASTBAR, T3HIGH, '杀入线!'),LINETHICK1,COLORYELLOW; AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8 );BA:=EMA(AB,5);A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);DY{中}:=((A1)+(B1))/2;箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),COLORGREEN,DOTLINE;箱腰:IF(AB>0 AND AB-BA<=0,DY,DY),COLORYELLOW,DOTLINE;箱低:IF(AB>0 AND AB-BA<=0,B1,B1),COLORRED,DOTLINE;DRAWTEXT(ISLASTBAR,箱顶,'箱顶'),COLORYELLOW;DRAWTEXT(ISLASTBAR,箱腰,'箱腰'),COLORYELLOW;DRAWTEXT(ISLASTBAR,箱低,'箱低'),COLORYELLOW;VARAA:=IF(CLOSE>150,91.3,0.913);{突破:INTPART(CLOSE/VARAA )*VARAA,POINTDOT,LINETHICK4,COLORRED; 再突破:突破+VARAA,POINTDOT,LINETHICK4,COLOR00FF00 ;回踩:(突破+再突破)/2,POINTDOT,COLORWHITE,LINETHICK4;} STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱低,箱腰,0.1,-1),COLORRED; STICKLINE(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱顶,箱腰,0.1,-1),COLORGREEN; DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱腰,1);DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱腰,2);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.01,0,'K线底部出红色或粉色,可低吸建仓!'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.05,0,'绿点表示长期的压力点!'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.10,0,'白点表示中短期的压力和支撑点,'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.16,0,'红点表示有效支撑或突破长中短期压力点!股价向下跌破,原则清仓!'),COLORGREEN;EE:=(H+L+O+2*C)/5;CRTP:=EE+(H-L);CRZL:=2*EE-L;CRZC:=2*EE-H;CRFZ:=EE-(H-L);高:CONST(CRTP),COLORRED;阻:CONST(CRZL),COLORC7C9FF;支:CONST(CRZC),COLOR7C9CFF;反:CONST(CRFZ),COLORDD00DD;DRAWTEXT(ISLASTBAR, 反, '反转价'),LINETHICK1,COLORDD00DD; DRAWTEXT(ISLASTBAR, 支, '支撑'),LINETHICK1,COLOR7C9CFF; DRAWTEXT(ISLASTBAR, 阻, '阻力'),LINETHICK1,COLORC7C9FF; DRAWTEXT(ISLASTBAR, 高, ' 高破线'),LINETHICK1,COLORGREEN;均线:=EXPMA(C,12),COLORGRAY,LINETHICK2;日:=50;昨前:=3;高2:=REF(HHV(H,日),昨前);低2:=REF(LLV(L,日),昨前);H4:=高2-(高2-低2)*0.618;H5:=高2-(高2-低2)*0.809;支撑80.9%:REFDATE(H5,DATE),COLORRED;支撑61.8%:REFDATE(H4,DATE),COLORGREEN,;STICKLINE(CURRBARSCOUNT=1,支撑80.9%,支撑80.9%,300,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=1,支撑61.8%,支撑61.8%,300,-1),COLORRED;DRAWTEXT(CURRBARSCOUNT=1 AND 支撑80.9%,支撑80.9%,'备钱'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1 AND 支撑61.8%,支撑61.8%,'转运'),COLORRED;WH1:=IF(L=LLV(L,9),L,0);WH2:=CONST(BARSLAST(WH1!=0));WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),D RAWNULL),COLORRED,DOTLINE;STICKLINE(CURRBARSCOUNT<=WH2+1 ANDL=LLV(L,9),O,C,3,0),COLORRED;DRAWTEXT(CURRBARSCOUNT=WH2+10,WH7,'LINE'),COLORRED; DRAWTEXT(ISLASTBAR,WH7,'进场'),COLORRED;WH8:IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,9),L,DRAWNULL),DRAWNU LL),CIRCLEDOT;H81:=IF(H=HHV(H,9),H,DRAWNULL);H82:=CONST(BARSLAST(H81!=DRAWNULL));H83:=CONST(IF(H82=0,L,REF(L,H82)));H84:=CONST(REF(BARSLAST(L<H83),H82+1)+H82+1);H85:=CONST(IF(H84=0,L,REF(L,H84)));H86:=CONST(REF(BARSLAST(L<H85),H84+1)+H84+1);H87:=IF(CURRBARSCOUNT<=H82+10,CONST(IF(H86=0,L,REF(L,H86))),DRA WNULL),DOTLINE;H88:=IF(CURRBARSCOUNT<=H82+1,IF(H=HHV(H,9),H,DRAWNULL),DRAWN ULL),CIRCLEDOT;DRAWTEXT(CURRBARSCOUNT=H82+10,H87,'LINE'),COLORYELLOW; DRAWTEXT(ISLASTBAR,H87,'止损'),COLORYELLOW;DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15);DRAWTEXT(起爆,MA(L,3),'↖暴张'),COLORYELLOW,LINETHICK2;LC:=REF((O+H+L+2*C)/5,1);{短线擒黑码}RSI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*10;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,23))/(0.015*AVEDEV(TYP,23));买:=CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),COLORRED;DRAWTEXT(CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),MA(L,3),'↖◆短线擒黑码◆'),COLORWHITE;DRAWICON(买,MA(L,3),17);卖:=CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),COLORGREEN;DRAWTEXT(CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),箱顶,'■■逃跑■■'),COLORGREEN;DRAWICON(卖,MA(H,3),28);{绝密买点}A81:=EMA(C,3),COLORWHITE;A82:=EMA(C,5),COLORYELLOW;A83:=EMA(C,7),COLORMAGENTA;A84:=EMA(C,12),COLORGREEN;A85:=EMA(C,20),COLORRED;A86:=EMA(C,50),COLORBLUE,LINETHICK2;SS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ; SSS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; DRAWICON(SS8 ,MA(L,3),5);DRAWTEXT(SS8,MA(L,3),'↖绝密买点'),COLORYELLOW;ZYX1:="DMI.PDI"(12,6);ZYX2:="DMI.MDI"(12,6);ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);ZYX4:=LLV(ZYX1,0);ZYX5:=BARSLAST(ZYX4=ZYX1);ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;ZYX7:=ZYX1>REF(ZYX1,1);ZYX8:=VOL>2*MA(VOL,30);ZYX9:="DMI.ADX"(12,6);ZYXA:="DMI.ADXR"(12,6);ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS( MA(CLOSE,10),MA(CLOSE,5)));{ZYXE:=0-"MACD.DIFF"(7,21,3);}ZYXF:=TROUGHBARS(3,15,1)<4;ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);ZYX11:=IF(ZYXF=1,50,0);ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);ZYX17:=HHV(ZYX1,ZYX16);ZYX18:=BARSLAST(ZYX1=ZYX17);{STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;}ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;ZYX1A:=ZYX13*100;DRAWICON(FILTER(ZYXF=1,3),MA(L,3),23);DRAWTEXT(FILTER(ZYXF=1,3),箱低,'■■铁底■■'),COLORGREEN;{量能平台}ND:=10;PTD:=CONST(LLVBARS(V,ND));TDPX:IF(CURRBARSCOUNT<=ND,CONST(IF(PTD=0,O,REF(O,PTD))),DRAWN ULL),COLORFF0000;IF(CURRBARSCOUNT=PTD+1,TDPX,DRAWNULL),CIRCLEDOT,COLORFF0000, LINETHICK2;DRAWTEXT(ISLASTBAR,TDPX,' 【地平线】'),COLORFF0000;G21:=30;T112:=CONST(HHVBARS(V,G21));T122:=IF(CURRBARSCOUNT<=G21+7,CONST(IF(T112=0,H,REF(H,T112))),D RAWNULL);T122A:=IF(CURRBARSCOUNT=T112+1,T122,DRAWNULL),CIRCLEDOT,COLO RWHITE;DRAWTEXT(ISLASTBAR,T122,'30天量能平台'),COLORWHITE;W10:=10;TW1:=CONST(HHVBARS(V,W10));TW0:=IF(CURRBARSCOUNT<=W10+7,CONST(IF(TW1=0,C,REF(C,TW1))),DR AWNULL);TW0A:=IF(CURRBARSCOUNT=TW1+1,TW0,DRAWNULL),CIRCLEDOT,COLOR WHITE;DRAWTEXT(ISLASTBAR,TW0,'10量能平台'),COLORWHITE;W20:=20;TW20:=CONST(HHVBARS(V,W20));TW22:=IF(CURRBARSCOUNT<=W20+7,CONST(IF(TW20=0,C,REF(C,TW20))) ,DRAWNULL);TW22A:=IF(CURRBARSCOUNT=TW20+1,TW22,DRAWNULL),COLORWHITE; DRAWTEXT(ISLASTBAR,TW22,'20量能平台'),COLORWHITE;MW:=10;MW1:=CONST(LLVBARS(V,MW));MW0:=IF(CURRBARSCOUNT<=MW+7,CONST(IF(MW1=0,O,REF(O,MW1))),D RAWNULL);MW0A:=IF(CURRBARSCOUNT=MW1+1,MW0,DRAWNULL),CIRCLEDOT,COLO RWHITE;DRAWTEXT(ISLASTBAR,MW0,'地量反弹量能平台'),COLORWHITE;{N1:=18;N2:=36;N3:=55;}EM1:=EMA(C,18),NODRAW;EM2:=EMA(C,36),COLORRED;EM3:=EMA(C,55),COLORGREEN;TJ8:=BETWEEN(EM2,EM1,EM3);{DRAWICON(TJ8=0,L,14);}B18:='<-----------------财富平台';DRAWTEXT(VOL=HHV(VOL,20),C ,B18),COLORRED;{超跌反弹}RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3*K-2*D),LINETHICK2;D2:=SMA(J,3,1)*0.82;VAR72:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR73:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR74:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR75:=(VAR72+2*VAR73+3*VAR74)/6;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA2:=EMA(DIFF,6);MACD超跌2:=(COUNT(DIFF<DEA2,19))=10;DRAWTEXT(CROSS(J,-3),MA(L,3),'↖超跌反弹'),COLORGREEN; {DRAWICON( FILTER(CROSS(J,D2),20),D2+0.02 ,1);};{突破盘整}W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWTEXT(突破盘整>0,MA(L,3),'↙突破盘整'),COLORRED;C6:=REF(C,1);涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;DRAWTEXT(涨停,MA(H,3),'↙涨停'),COLORYELLOW;RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;SELL2:=(CROSS(88,RSI1));DRAWTEXT(SELL2,MA(H,3),'↙★出'),COLOR00FF00;VB1:=C-REF(C,1);VB2:=100*EMA(EMA(VB1,6),6)/EMA(EMA(ABS(VB1),6),6);VB3:=IF(LLV(VB2,2)=LLV(VB2,7) AND COUNT(VB2<0,2) ANDCROSS(VB2,MA(VB2,2)),1,0);VB4:=FILTER(VB3=1,5);DRAWTEXT(VB4,MA(L,3),'↖★买'),COLOR00FFFF;{N 1 100 20 M 1 100 32 P1 1 100 80 P2 1 100 100}VARD1:=(C+H+O+L)/4;卖出:=XMA(VARD1,20)*(1+80/1000),COLORFFFFFF,LINETHICK3;买入:=XMA(VARD1,32)*(1-100/1000),COLOR0000FF,LINETHICK3;机会来临:=REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2; RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;DD2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;J2:=3*K2-2*DD2;BB1:=EMA(J2,5);BB2:=REF(BB1,1);金叉:=CROSS(BB1,BB2);DRAWTEXT(CROSS(C,卖出),MA(H,3),'↙卖出'),COLOR00FFFF; DRAWTEXT(CROSS(C,买入) AND BB1>BB2 AND C>REF(O,2),MA(L,3),'↖买入'),COLOR0000FF;DRAWICON(CROSS(C,买入) AND 金叉AND 机会来临,MA(L,3),13); DRAWTEXT(CROSS(C,买入) AND 金叉AND 机会来临,MA(L,3),'↖【绝杀点】'),COLOR00FF00;F:=EMA(CLOSE,10)-EMA(CLOSE,21);A:=EMA(F,8);MD:=(F-A)*2;ZQ:=BARSLAST(CROSS(F,A) AND A<=0.05)+1;LZ:=BARSLASTCOUNT(MD<REF(MD,1))>1;HZ:=BARSLASTCOUNT(MD>REF(MD,1))>1;LZQ:=BARSLASTCOUNT(LZ);HZQ:=BARSLASTCOUNT(HZ);LZQTJ:=COUNT(LZQ,ZQ);HZQTJ:=COUNT(HZQ,ZQ);NQR:=REF(CLOSE,4);SRZF:=((CLOSE-NQR)/NQR)*100,NODRAW;绝杀黑码:=REF(LZQTJ,1)>=2 AND REF(HZQTJ,1)>=3 AND HZQTJ=0 AND LZQTJ=0 AND SRZF>2,LINETHICK2;DRAWTEXT(绝杀黑码,MA(L,3),'↖★绝杀黑码'),COLOR00FFFF;箱顶@:箱顶+箱顶*0.02,COLORBLACK;选股预警公式:N:=7;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND(HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND(HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));突破杀入线:=DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLORYELLOW;CROSS(C,突破杀入线);。
通达信突破划线指标公式
通达信突破划线指标公式以下是通达信突破划线指标公式(⽆源码的请下载附件导⼊)DRAWGBK(C>0, RGB(40,120,20),RGB(00,00,00),0,0,1),LINETHICK2;{箱体 }N:=13;BC:=(H*0.382+L*0.618+O*0.382+C*0.618)/2;LJ:=IF(INDEXC=C,BC,(BC+AMOUNT/(V*100))/2),COLORGRAY;HT:=REF((HHV(LJ,N*0.691)+HHV(LJ,N)+HHV(LJ,N*1.309))/3,1),LINETHICK,COLORRED;LT:=REF((LLV(LJ,N*0.691)+LLV(LJ,N)+LLV(LJ,N*1.309))/3,1),LINETHICK,COLORGREEN;ZT:=(HT+LT)/2,LINETHICK,COLORYELLOW;STICKLINE(ISLASTBAR=1 AND LJSTICKLINE(ISLASTBAR=1 AND LJ=ZT,HT,LT,N*8,0),COLORGRAY;STICKLINE(ISLASTBAR=1 AND LJ>ZT,HT,LT,N*8,1),COLORWHITE;STICKLINE(ISLASTBAR=1,ZT,ZT,N*8,0),COLORWHITE;箱顶:HT,COLORWHITE,NODRAW;箱中:ZT,COLORWHITE,NODRAW;DRAWKLINE(H,O,L,C);{短期⽀撑压⼒线}N1:=5;A1:=REF(H,N1)=HHV(H,2*N1+1);B1:=FILTER(A1,N1);C1:=BACKSET(B1,N1+1);D1:=FILTER(C1,N1);A2:=REF(L,N1)=LLV(L,2*N1+1);B2:=FILTER(A2,N1);C2:=BACKSET(B2,N1+1);D2:=FILTER(C2,N1);E1:=(REF(LLV(L,2*N1),1)+REF(HHV(H,2*N1),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);短压⼒线:DRAWLINE(S2,H,S1,H,1),COLORGREEN,LINETHICK2;短⽀撑线:DRAWLINE(U2,L,U1,L,1),COLORRED,LINETHICK2;降边:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORCYAN,DOTLINE;涨边:DRAWLINE(LOW<=LLV(LOW,10),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1),COLORCYAN,DOTLINE;{中期趋势回归划线}UR:=6;LR:=UR;TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{⾼点定位}STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{⽤时}LR1:=FORCAST(C,NOD+1);NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点}LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点}EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8;AD:=ABS(NP-FP);{⾼差};DBL:=BARSLAST(BC1!=DRAWNULL)+1;DBH:=BARSLAST(TC1!=DRAWNULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC2));AT3:=CONST(BARSLAST(AT1-LRL=AT2));AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND LUT2:=HHV(LRL-UT1,MAX(BC2,TC2));UT3:=CONST(BARSLAST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制⾼}RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}中期中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962,LINETHICK2;中期上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLOR628962,LINETHICK2;中期下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),,COLOR628962,LINETHICK2; {彩⾊K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空⼼红}STICKLINE(CO,H,L,0,0),COLORRED;STICKLINE(CO,C,O,3,1),COLORRED;{深绿}STICKLINE(CSTICKLINE(CSTICKLINE(CSTICKLINE(C{蓝}STICKLINE(C>TYX5 AND CSTICKLINE(C>TYX5 AND CSTICKLINE(C>TYX5 AND CSTICKLINE(C>TYX5 AND C{黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND CSTICKLINE(C>TYX4 AND CSTICKLINE(C>TYX4 AND CSTICKLINE(C>TYX4 AND C{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;{突破}STICKLINE(REF(COUNT(CTYX3 AND C>O,C,O,1,0),COLOR00CCFF;{红绿三⾓【副图】}A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);B10304:=FILTER(A10304,3);C10304:=BACKSET(B10304,3+1);D10304:=FILTER(C10304,3);{⾼点}A20304:=REF(LOW,3)=LLV(LOW,2*3+1);B20304:=FILTER(A20304,3);C20304:=BACKSET(B20304,3+1);D20304:=FILTER(C20304,3);{低点}E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E20304:=(HIGH+LOW)/2;{⾼低点出现在同⼀K线上时可作取舍}H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; L10304:=(D20304 AND NOT(D10304 AND E10304=E20304));X10304:=REF(BARSLAST(H10304),1)+1;F10304:=BACKSET(H10304 AND COUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));G10304:=F10304>REF(F10304,1);I10304:=BACKSET(G10304,2);LD0304:=I10304>REF(I10304,1);{过滤后低点}L20304:=LD0304 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X20304:=REF(BARSLAST(L20304),1)+1;F20304:=BACKSET(L20304 AND COUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X20304));G20304:=F20304>REF(F20304,1);I20304:=BACKSET(G20304,2);HD0304:=I20304>REF(I20304,1);{过滤后⾼点}UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);VV0304:=UU0304>REF(UU0304,1);UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);VV20304:=UU20304>REF(UU20304,1);{以下语句为三⾓形部分}底:REF(L,BARSLAST(VV0304)),COLORYELLOW,LINETHICK2;顶:REF(H,BARSLAST(VV20304)),COLORYELLOW,LINETHICK1;{下跌三⾓形:绿⾊三⾓形画完介⼊}STICKLINE(VV0304,顶,底,0,0),COLORGREEN,LINETHICK2;DRAWLINE(VV20304,H,VV0304,L,0),COLORGREEN,LINETHICK2;{斜}DRAWLINE(VV20304,H,VV0304,顶,0),COLORGREEN,LINETHICK2;{上涨三⾓形:红⾊三⾓形画完出局}STICKLINE(VV20304 ,顶,底,0,0),COLOR009AFF,LINETHICK2;DRAWLINE(VV0304,L,VV20304,H,0),COLOR009AFF,LINETHICK2;{斜}DRAWLINE(VV0304,L,VV20304,底,0),COLOR009AFF,LINETHICK2;NN:=10;T11:=CONST(HHVBARS(V,NN));M:=10;Q1:=CONST(REF(HHVBARS(V,M),T11+1)+T11+1);Q0:IF(CURRBARSCOUNT<=T1+M+3 ANDCURRBARSCOUNT>=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLORBLUE,LINETHICK3;DRAWTEXT(ISLASTBAR,Q0,' 位置')COLORBLUE,LINETHICK3;IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL)LINETHICK5,COLORMAGENTA;M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(M1=0,O,REF(O,M1))),DRAWNULL)LINETHICK3,COLORMAGENTA; IF(CURRBARSCOUNT=M1+1,M0,DRAWNULL)LINETHICK3,COLORYELLOW;DRAWTEXT(ISLASTBAR,M0,' 纵轴1位置')COLORLIMAGENTA;DRAWTEXT(ISLASTBAR,MA2,'关注均线⾓度');过均必⽜:SUM(CLOSE*VOL,FROMOPEN)/SUM(VOL,FROMOPEN),COLORYELLOW,DOTLINE,LINETHICK4;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,34),34)/EMA(EMA(ABS(A7),34),34);买点:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))),COLORRED,LINETHICK2,NODRAW; {DRAWTEXT(买点,0.5,'买点'),COLORYELLOW,LINETHICK2;}N7:=5;A01:=REF(H,N7)=HHV(H,2*N7+1);B01:=FILTER(A01,N7);C01:=BACKSET(B01,N7+1);D01:=FILTER(C01,N7);A02:=REF(L,N7)=LLV(L,2*N7+1);B02:=FILTER(A02,N7);C02:=BACKSET(B02,N7+1);D02:=FILTER(C02,N7);E01:=(REF(LLV(L,2*N7),1)+REF(HHV(H,2*N7),1))/2;E02:=(H+L)/2;H01:=(D01 AND NOT(D02 AND E01>=E02)) OR ISLASTBAR OR BARSCOUNT(C)=1;L01:=(D02 AND NOT(D01 AND E01H02:=D01 AND NOT(D02 AND E01>=E02);X01:=REF(BARSLAST(H01),1)+1;F01:=BACKSET(H01 AND COUNT(L01,X01)>0,LLVBARS(IF(L01,L,10000),X01));G01:=F01>REF(F01,1);I11:=BACKSET(G01,2);LD0:=I11>REF(I11,1);L02:=LD0 OR ISLASTBAR OR BARSCOUNT(C)=1;X02:=REF(BARSLAST(L02),1)+1;F02:=BACKSET(L02 AND COUNT(H02,X02)>0,HHVBARS(IF(H02,H,0),X02));G02:=F2>REF(F2,1);I02:=BACKSET(G02,2);HD0:=I2>REF(I2,1);R01:=BACKSET(ISLASTBAR,BARSLAST(HD0)+1);S01:=R01>REF(R01,1);T01:=BACKSET(ISLASTBAR,BARSLAST(LD0)+1);U01:=T01>REF(T01,1);R02:=BACKSET(S1,REF(BARSLAST(HD0),1)+2);S02:=R02>REF(R02,1);T02:=BACKSET(U1,REF(BARSLAST(LD0),1)+2);U02:=T02>REF(T02,1);NOTEXT1:DRAWLINE(S2,H,S1,H,1),LINETHICK4,COLORRED,POINTDOT;NOTEXT2:DRAWLINE(U2,L,U1,L,1),COLOR00FF00,LINETHICK4,POINTDOT;N02:=5;N3:=5;W:=INTPART(3*N3/5);AA11:=REF(L,W)=LLV(L,2*W+1);QY11:=BACKSET(AA11,W+1);CC11:=FILTER(QY11,W) AND L=LLV(L,W+1);DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);低点⽀撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1),POINTDOT,LINETHICK4;{压⼒⽀撑}M00:=INTPART(3*N02/5);{压⼒线取}AAAA:=REF(H,M00)=HHV(H,2*M00+1);QYY:=BACKSET(AAAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS:=IF(CCC,CURRBARSCOUNT,0),NODRAW;DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS),NODRAW;GDCS11:=CONST(DINGBUTSS),NODRAW;DINGBUTS11:REF(DINGBUTSS,DDDD+1),NODRAW;GDCS22:=CONST(DINGBUTS11);⾼点压⼒M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORFF00FF,LINETHICK3,POINTDOT;P:=3;AB10:=REF(H,P)=HHV(H,2*P+1);B001:=FILTER(AB10,P);C001:=BACKSET(B001,P+1);D001:=FILTER(C001,P);{⾼点}A002:=REF(L,P)=LLV(L,2*P+1);B002:=FILTER(A002,P);C002:=BACKSET(B002,P+1);D002:=FILTER(C002,P);{低点}E001:=(REF(LLV(L,2*P),1)+REF(HHV(H,2*P),1))/2;E002:=(H+L)/2;{⾼低点出现在同⼀K线上时可作取舍}H001:=(D001 AND NOT(D002 AND E001>=E002)) OR BARSCOUNT(C)=1;L001:=(D002 AND NOT(D001 AND E1Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,7,STRCAT(Z3,GNBLOCK)),COLORRED;DRAWTEXT_FIX(ISLASTBAR,0.001,0.180,0,GNBLOCK),COLORCYAN;{概念};DRAWTEXT_FIX(1,0.13,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.36,0.00,0,EXTERNSTR(0,2))COLORFFCC66; DRAWTEXT_FIX(1,0.0,0.063,0,EXTERNSTR(0,1))COLOR00FFFF;。
通达信真实筹码主图指标公式
通达信真实筹码主图指标公式{以色带表示筹码的密集度:蓝色表示短筹密集,青黄色表示大量筹码沉淀,此时要密切关注股价突破方向和成交量配合。
在上升趋势中,还能用来寻找起爆点哟,当出现筹码高度密集信号时,关注股价是否启涨出现数阴包前阳,或能量不济多为假突破突破密筹区需要巨量配合假突破是无法滤去的,因为很可能是庄家想拉,但发现阻力很大,转而变成震荡洗盘;或者大盘不配合,庄家选择弃庄(形成顶部)。
}W00:=COST(1);W10:=COST(10);W20:=COST(20);W30:=COST(30);W40:=COST(40);W50:=COST(50);W60:=COST(60);W70:=COST(70);W80:=COST(80);W90:=COST(90);W100:=COST(99);W5:=COST(5);W15:=COST(15);W25:=COST(25);W35:=COST(35);W45:=COST(45);W55:=COST(55);W65:=COST(65);W75:=COST(75);W85:=COST(85);W95:=COST(95);C5:=W5-W00;C10:=W10-W5;C15:=W15-W10;C20:=W20-W15;C25:=W25-W20;C30:=W30-W25;C35:=W35-W30;C40:=W40-W35;C45:=W45-W40;C50:=W50-W45;C55:=W55-W50;C60:=W60-W55;C65:=W65-W60;C70:=W70-W65;C75:=W75-W70;C80:=W80-W75;C85:=W85-W80;C90:=W90-W85;C95:=W95-W90;C100:=W100-W95;ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30, MIN(C35,MIN(C40,MIN(C45,MIN(C50,MIN(C55,MIN(C60,MIN(C6 5,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C90,MIN(C95,C100) ))))))))))))))))));STICKLINE(ZX=C5,W00,W5,5,0),COLORFF8800;STICKLINE(ZX=C10,W10,W5,5,0),COLORFF8800;STICKLINE(ZX=C15,W15,W10,5,0),COLORFF8800;STICKLINE(ZX=C20,W20,W15,5,0),COLORFF8800;STICKLINE(ZX=C25,W25,W20,5,0),COLORFF8800;STICKLINE(ZX=C30,W30,W25,5,0),COLORFF8800;STICKLINE(ZX=C35,W35,W30,5,0),COLORFF8800; STICKLINE(ZX=C40,W40,W35,5,0),COLORFF8800; STICKLINE(ZX=C45,W45,W40,5,0),COLORFF8800; STICKLINE(ZX=C50,W50,W45,5,0),COLORFF8800; STICKLINE(ZX=C55,W55,W50,5,0),COLORFF8800; STICKLINE(ZX=C60,W60,W55,5,0),COLORFF8800; STICKLINE(ZX=C65,W65,W60,5,0),COLORFF8800; STICKLINE(ZX=C70,W70,W65,5,0),COLORFF8800; STICKLINE(ZX=C75,W75,W70,5,0),COLORFF8800; STICKLINE(ZX=C80,W80,W75,5,0),COLORFF8800; STICKLINE(ZX=C85,W85,W70,5,0),COLORFF8800; STICKLINE(ZX=C90,W90,W85,5,0),COLORFF8800; STICKLINE(ZX=C95,W95,W90,5,0),COLORFF8800; STICKLINE(ZX=C100,W100,W95,5,0),COLORFF8800;筹宽:=W100-W00;J90:=W90-W60;J80:=W80-W50;J70:=W70-W40;J60:=W60-W30;J50:=W50-W20;J40:=W40-W10;J30:=W30-W00;STICKLINE(J90/筹宽<0.08,W90,W60,5,0),COLOR74D9A4; STICKLINE(J80/筹宽<0.08,W80,W50,5,0),COLOR74D9A4; STICKLINE(J70/筹宽<0.08,W70,W40,5,0),COLOR74D9A4; STICKLINE(J60/筹宽<0.08,W60,W30,5,0),COLOR74D9A4; STICKLINE(J50/筹宽<0.08,W50,W20,5,0),COLOR74D9A4; STICKLINE(J40/筹宽<0.08,W40,W10,5,0),COLOR74D9A4; JJ90:=W90-W70;JJ80:=W80-W60;JJ70:=W70-W50;JJ60:=W60-W40;JJ50:=W50-W30;JJ40:=W40-W20;JJ30:=W30-W10;STICKLINE(JJ90/筹宽<0.05,W90,W70,5,0),COLORFFFF00; STICKLINE(JJ80/筹宽<0.05,W80,W60,5,0),COLORFFFF00; STICKLINE(JJ70/筹宽<0.05,W70,W50,5,0),COLORFFFF00; STICKLINE(JJ60/筹宽<0.05,W60,W40,5,0),COLORFFFF00; STICKLINE(JJ50/筹宽<0.05,W50,W30,5,0),COLORFFFF00; STICKLINE(JJ40/筹宽<0.05,W40,W20,5,0),COLORFFFF00; STICKLINE(JJ30/筹宽<0.05,W30,W10,5,0),COLORFFFF00; {彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED; STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED; {深绿}STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700; STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500; STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600; STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700; {蓝}STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44; STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700; STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22; STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44; {黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;。
【炒股必下载的公式】通达信超赢主图指标公式
通达信超赢主图指标公式JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);DRAWBAND(M3,RGB(140,70,30),M8,RGB(140,70,30));STICKLINE(A>B,A,B,5,0),COLORBLUE;STICKLINE(A<B,A,B,5,0),COLORGREEN;M13:EMA(M8,13),LINETHICK2,COLORWHITE;M55:EMA(M8,55),LINETHICK2,COLORYELLOW;VAR1:=EMA(M13,55),LINETHICK4;M81:EMA(M55,81), COLORRED,LINETHICK4;VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;VAR6:=CROSS(79,VAR5);VAR7:=FILTER(VAR6,4);A7:=(2*C+H+L)/4;VAR10:=LLV(LOW,34);VAR11:=HHV(HIGH,34);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1Q:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2Q:=(REF(VAR1Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3Q:=(REF(VAR2Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4Q:=(REF(VAR3Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5Q:=(REF(VAR4Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6Q:=(REF(VAR5Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7Q:=(REF(VAR6Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8Q:=(REF(VAR7Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9Q:=(REF(VAR8Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARAQ:=(REF(VAR9Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARBQ:=(REF(VARAQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARCQ:=(REF(VARBQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARDQ:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VAREQ:=(REF(VARDQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARFQ:=(REF(VAREQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10Q:=(REF(VARFQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11Q:=(REF(VAR10Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12Q:=(REF(VAR11Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13Q:=(REF(VAR12Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14Q:=(REF(VAR13Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15Q:=(REF(VAR14Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16Q:=(REF(VAR15Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17Q:=(REF(VAR16Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18Q:=(REF(VAR17Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19Q:=((REF(VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q ORVAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,1)) AND VAR1Q);VAR1AQ:=((REF(VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,1)) AND VARDQ); 红色持股:=VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:=VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q OR VAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:=VAR19Q,COLOR33AACC,NODRAW;洋红离场:=VAR1AQ,COLORMAGENTA,NODRAW;急跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW; 上市日期年:=REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:=REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:=REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(C>=O,L,H,0.3,0),COLOR0000CC;STICKLINE(C<O,L,H,0.3,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR454500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,1.5,0),COLOR656500;STICKLINE(青色观望,CLOSE,O,1,0),COLOR757500;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOR858500;CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWICON( CROSS(M55,M81),M81*0.95,1),COLORYELLOW;{抄底};。
突破前高或盘整或箱体通达信指标公式源码
突破前高或盘整或箱体通达信指标公式源码实战解析:向上跳空缺口三天不回补抓涨停战法在股市中,当出现一根放量跳空向上的大阳线后,市场仍在运行,但发现2天了,缺口没有回补,这意味着多头仍在掌控市场。
通常情况下,上涨有量,下跌无量是好现象。
当在关键位置放量向上跳空突破时,说明启动了行情!如果股票能够不补缺口,那么它很可能是一匹大黑马!我们应该引起充分的重视!如果一只股票在突破时或上升过程中出现跳空缺口,这一定是庄家的行为。
通过观察跳空之后股价的表现,就可以推测出庄家后期的运作方向。
如果庄家能够保护住跳空缺口,没有回补,这就意味着他并没有出货。
否则,他的出货加上散户的抛出,一定会回补缺口。
因此,我们要重视这个跳空缺口。
只要不回补,股价就能够缩量悬空在那里,就像飞碟一样悬在那里,这是庄股控盘的标志之一。
一旦后期向上突破,就还有惯性上升行情!一般来说,跳空三天不补就叫磁悬浮。
以下是选股公式:A1:=REF(O,3)/REF(C,4)>1.02 AND REF(L,3)>=REF(O,3);A2:=COUNT(A1,5)<4;A3:=REF(L,1)>REF(O,3) AND C>REF(O,3);XG:A1 AND A2 AND A3;根据选股公式,当出现高开、回档时不补缺、回升高过开盘价时,看多;当出现高开、回档时补缺、回升不高于开盘价时,看空,诱多;当出现低开、回升时补缺、回调时不低于开盘价时,诱空,看多;当出现低开低走或回升时不补缺时,看空。
需要注意的是:1.跳空缺口要有意义,是突破前高或盘整或箱体,需要仔细分析,放量上跳形成缺口代表一种趋势或力量的形成。
2.放量突破前高为好。
3.缺口裂度大为首选。
4.买入时机在出现缺口后的第二天。
当盘中回探缺口上沿位置时,缺口不补即可买入。
5.大盘的趋势是向上的,下跌趋势不成立。
通达信寻找临界点高成功率主图指标公式
通达信寻找临界点高成功率主图指标公式
用法:
本指标对控盘力量坐庄各环节智能分析研究,得出其各级别实际成本并设计阻击手段。
当股价走势落入第二条指标线以下,实战操作就具备了低吸伏击的操作基础。
第二、第三线段之间称为低吸伏击带!而股价走势落入第三条线(也就是最下面一条)时,物极必反,否极泰来,实战操作根据图形显示笑脸图标进行坚决阻击。
第三条线段以下称为铁底阻击区域,实战进场九生一死。
{寻找临界点}
{M(1,300,88)}
{N1(1,100,6)}
VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0A,1 3)*0.99);
(MA(VAR0A,13)*0.999);
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-
REF(ATR,1));
生命线:(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;
VAR1:=EMA(AMOUNT/VOL/100,3);控盘成本:EMA(VAR1,M),LINETHICK2;
低吸伏击:EMA(VAR1,M)*0.85,LINETHICK2,COLORFFFF00;
走势铁底:低吸伏击*0.87,LINETHICK3,COLORFF00FF;
VAR2:=LOW<=走势铁底AND CLOSE>REF(CLOSE,1)*1.02;DRAWICON(FILTER(VAR2,N1),L,5);。
1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)
本人长期使用的通达信选股持股指标公式--突破预警(非常好用)一、指标介绍突破预警,是根据筹码、压力位、均线、kdj计算,指当价格突破压力线时进行预警,此后股价大概率上升。
二、指标截图发出白色、红色三角箭头时,为买入信号。
三、公式源代码{突破预警M1=5 M2=10}AAA:C;M3:=EMA(CLOSE,5);M20:=EMA(CLOSE,10);A:=BARSLAST(CROSS(M3,M20));A1:=REF(BARSLAST(CROSS(M3,M20)),A+1); A2:=A+A1;AA:=REF(BARSLAST(CROSS(M3,M20)),A2+2);A3:=AA+A2;B:=BARSLAST(CROSS(M20,M3));B1:=REF(BARSLAST(CROSS(M20,M3)),B+1); B2:=B+B1;BB:=REF(BARSLAST(CROSS(M20,M3)),B2+2); X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);GD0:=REF(HHVBARS(H,X1+3),B);GD1:=REF(HHVBARS(H,Y1+3),B2);GG0:=BACKSET(ISLASTBAR,GD0+B+1);GG1:=BACKSET(ISLASTBAR,GD1+B2+1);TJ3:=CROSS(GG0,0.5);TJ4:=CROSS(GG1,0.5);上轨:=DRAWLINE(TJ4,H,TJ3,H,1);值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);顶1:IF(GG0,REF(HIGH,BARSLAST(值3)),0); 突破1:CROSS(C,顶1);突破2:COUNT(突破1,10);突破:(突破1 AND 突破2=1);四、公式使用方法功能---公式系统 ---公式管理器—新建—输入公式就可以了注:指标公式不是万能的。
【炒股必下载的公式】通达信超赢主图指标公式
通达信超赢主图指标公式JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);DRAWBAND(M3,RGB(140,70,30),M8,RGB(140,70,30));STICKLINE(A>B,A,B,5,0),COLORBLUE;STICKLINE(A<B,A,B,5,0),COLORGREEN;M13:EMA(M8,13),LINETHICK2,COLORWHITE;M55:EMA(M8,55),LINETHICK2,COLORYELLOW;VAR1:=EMA(M13,55),LINETHICK4;M81:EMA(M55,81), COLORRED,LINETHICK4;VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;VAR6:=CROSS(79,VAR5);VAR7:=FILTER(VAR6,4);A7:=(2*C+H+L)/4;VAR10:=LLV(LOW,34);VAR11:=HHV(HIGH,34);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1Q:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2Q:=(REF(VAR1Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3Q:=(REF(VAR2Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4Q:=(REF(VAR3Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5Q:=(REF(VAR4Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6Q:=(REF(VAR5Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7Q:=(REF(VAR6Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8Q:=(REF(VAR7Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9Q:=(REF(VAR8Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARAQ:=(REF(VAR9Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARBQ:=(REF(VARAQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARCQ:=(REF(VARBQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARDQ:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VAREQ:=(REF(VARDQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARFQ:=(REF(VAREQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10Q:=(REF(VARFQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11Q:=(REF(VAR10Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12Q:=(REF(VAR11Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13Q:=(REF(VAR12Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14Q:=(REF(VAR13Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15Q:=(REF(VAR14Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16Q:=(REF(VAR15Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17Q:=(REF(VAR16Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18Q:=(REF(VAR17Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19Q:=((REF(VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q ORVAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,1)) AND VAR1Q);VAR1AQ:=((REF(VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,1)) AND VARDQ); 红色持股:=VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:=VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q OR VAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:=VAR19Q,COLOR33AACC,NODRAW;洋红离场:=VAR1AQ,COLORMAGENTA,NODRAW;急跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW; 上市日期年:=REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:=REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:=REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(C>=O,L,H,0.3,0),COLOR0000CC;STICKLINE(C<O,L,H,0.3,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR454500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,1.5,0),COLOR656500;STICKLINE(青色观望,CLOSE,O,1,0),COLOR757500;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOR858500;CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWICON( CROSS(M55,M81),M81*0.95,1),COLORYELLOW;{抄底};。
【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)
【股票指标公式下载】-【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←⾸次开盘价距⾦的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌{----------------------利⽤MACD趋势进⾏精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海⾯:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采⽤21⽇⽉线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进⾏顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------⼤盘动向-------------------------------}VAR1⼤盘:=LLV(LOW,13);VAR2⼤盘:=HHV(HIGH,13);VAR3⼤盘:=(SMA((CLOSE-VAR1⼤盘)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1))-顶部/2;VAR4⼤盘:=SMA((VAR2⼤盘-CLOSE)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1)-顶部/2; ⼤盘散户:=IF(VAR4⼤盘<底部,底部,VAR4⼤盘),COLOR408000;⼤盘主⼒:=IF(VAR3⼤盘<底部,底部,VAR3⼤盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最⾼获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最⾼获利参数;VAR2C:=(COST(99.9)-COST(1))*最⾼获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;⾼密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主⼒:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主⼒:IF(个股主⼒=DRAWNULL,DRAWNULL,个股主⼒),COLOR330088;{--------------------换⼿率,五⽇换⼿率辅助判断个股活跃度-------------------}换⼿:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤⽇换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}⾦⾊背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;⾦⾊背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;⾦⾊背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));⾦⾊背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫⾊:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));⾼密峰墨蓝⾊:=DRAWBAND(⾼密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝⾊:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿⾊:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主⼒峰红⾊:DRAWBAND(主⼒,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若⽔论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}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); VARD:=CLOSEVARE:=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); 三平底翻⾦:=(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;主⼒启动线:=MA(V,5),COLORFFFFFF;主⼒洗盘线:=MA(V,35),COLOR00FFFF;资⾦异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线))),COLORYELLOW;启动:=(主⼒启动线>REF(主⼒启动线,1) AND (CROSS(VOL,主⼒启动线) AND (REF(VOL,1)线,2)))),COLOR45AAEE;成⽴:=三平底翻⾦ AND (出击 OR 启动);买⼊提⽰:=IF(成⽴=1,海⾯*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海⾯线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海⾯线:DRAWBAND(海⾯,RGB(0,153,153),海⾯,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海⾯线,底部线,多空线⽂字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线⽂字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海⾯线⽂字:DRAWTEXT(CURRBARSCOUNT=1,海⾯,' 海⾯线'),COLOR999900; 底部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线⽂字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。
Get格雅股票指标公式下载通达信突破重围空仓、持股、搏杀生命线、启动线
【股票指标公式下载】-【通达信】突破重围(空仓、持股、搏杀生命线、启动线)【通达信】突破重围〔空仓、持股、搏杀生命线、启动线〕-指标公式源码{参数 M 30/240/90}N:=89;HH:=CONST(HHV(H,N));LL:=CONST(LLV(L,N));MM:=CONST(HH/2+LL/2);CC:=CONST(C),CROSSDOT;YY:=CONST(IF(CC>=MM,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2)),POINTDOT;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;MHH:=CONST(HHV(MACD,N));MLL:=CONST(LLV(MACD,N));MMM0:=MHH/2-MLL/2; MMM:=IF(MMM0<(HH-LL)*0.1,(HH-LL)*0.1,MMM0); STICKLINE(0=0,YY+MMM,YY-MMM,5,0),COLOR444444;STICKLINE(MACD>=0 AND MACD>REF(MACD,1),YY,YY+MACD,0.2,0),COLORRED; STICKLINE(MACD>=0 AND MACD<REF(MACD,1),YY,YY+MACD,0.2,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD<REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FF00; STICKLINE(MACD<0 AND MACD>REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FFFF; RSVZ:=((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))-0.5)/100;KX:=SMA(RSVZ,4,1);DX:=SMA(KX,4,1);JX:=3*KX-2*DX;JJ:=(JX/0.005)*MMM;STICKLINE(JX>REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORMAGENTA; STICKLINE(JX<REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORGREEN;SAR1:=IF(CLOSE<SAR(2,3,10),SAR(2,3,10),0);SAR2:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),0);SARE:=IF(CLOSE>SAR(3,3,20),SAR(3,3,20),0);SARA:=IF(CLOSE>SAR(4,2,10),SAR(4,2,10),0);空仓:IF(MIN(SAR1,SAR2)>0,(SAR1+SAR2)/2,IF(SAR1+SAR2=0,DRAWNULL,SAR1+SAR2)){,CIRCLEDOT},COLORGREEN,LINETHICK5;持股:IF(MIN(SARE,SARA)>0,(SARE+SARA)/2,IF(SARE+SARA=0,DRAWNULL,SARE+SA RA)){,CIRCLEDOT},COLORMAGENTA,LINETHICK5;MA1:C,COLORYELLOW,NODRAW;MA3:MA(((3*C+L+O+H)/6),3),COLORYELLOW,NODRAW;BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;IF(C>BB5,BB5,DRAWNULL),COLORRED;IF(C<BB5,BB5,DRAWNULL),COLORCYAN;MH:=IF(MACD<0,-MACD,0);ML:=IF(MACD>0,-MACD,0);JJH:=IF(REF(JJ,1)>JJ,REF(JJ,1),JJ);JJL:=IF(REF(JJ,1)<JJ,REF(JJ,1),JJ);Z1:=IF(JJH>ML AND JJH<MH,JJH,IF(JJH>=MH,MH,DRAWNULL));Z2:=IF(JJL>ML AND JJL<MH,JJL,IF(JJL<=ML,ML,DRAWNULL));STICKLINE(0=0,YY+Z1,YY+Z2,0.1,0),COLORBLUE;DRAWTEXT(CURRBARSCOUNT=16 AND BACKSET(C>BB5,CURRBARSCOUNT)=1 AND BACKSET(CROSS(MA1,BBI)=1,CURRBARSCOUNT)=1,IF(CC>MM,LL,HH),'收BB5上,上穿BBI'),COLORRED;DRAWICON(CROSS(DIF,DEA), YY-MMM,1);DRAWICON(CROSS(DEA,DIF), YY+MMM,2);RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;K:=EMA(RSV,3);D:=EMA(K,3);J:=(3*K-2*D);KDJ1:=REF(COUNT(J<REF(J,1),5)>=3,1) AND REF(J,1)<20;KDJ2:=J>REF(J,1);反转:=IF(FILTER(KDJ1 AND KDJ2,3),50,0),COLORRED;VAR22:=REF(LOW,1);VAR33:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR44:=EMA(IF(CLOSE*1.3,VAR33*10,VAR33/10),3);VAR55:=LLV(LOW,13);VAR66:=HHV(VAR44,13);VAR77:=IF(MA(CLOSE,34),1,0);VAR888:=EMA(IF(LOW<=VAR55,(VAR44+VAR66*2)/2,0),3)/618*VAR77;VAR999:=IF(VAR888>100,100,VAR888);吸筹:=VAR999,LINETHICK1,COLORCD7F32 ;HHZ:=CONST(HHV(C,120))*1;LLZ:=CONST(LLV(C,120))*1;HL:=CONST(IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ-(HHZ-LLZ)*0.4,HHZ+(HHZ-LLZ)*0.4));HH1:=IF(CONST((HHZ+LLZ)/2)>CONST(C),HHZ,HL);LL1:=IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ,HL);HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2;HLMN4:=100-0;(50-50)*HLMN2/100+HLMN1,COLOR555555;(20-50)*HLMN2/100+HLMN1,COLOR555555;(80-50)*HLMN2/100+HLMN1,COLOR555555;(100-50)*HLMN2/100+HLMN1,COLOR555555;STICKLINE(吸筹,(0-50)*HLMN2/100+HLMN1,(VAR999-50)*HLMN2/100+HLMN1,2,10),COLORFF00FF;STICKLINE(J<=0,(90-50)*HLMN2/100+HLMN1,(100-50)*HLMN2/100+HLMN1,4,0),COLORYELLOW;IF(反转=50,(50-50)*HLMN2/100+HLMN1,(0-50)*HLMN2/100+HLMN1),COLORRED;KZ:(K-50)*HLMN2/100+HLMN1,COLORFFFFFF;DZ:(D-50)*HLMN2/100+HLMN1,COLOR00FFFF;JZ:(J-50)*HLMN2/100+HLMN1,COLOR00FF00;VL:=REF(LOW,1);VAR12Z:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14Z:=MA(VAR12Z,13);VAR15Z:=LLV(LOW,34);VAR18Z:=EMA(IF(LOW<=VAR15Z,VAR14Z,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)* 16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18Z>REF(VAR18Z,1),VAR18Z*8,0),20);DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'★'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22X:=SMA(VAR21,3,1);VAR23:=SMA(VAR22X,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'★'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶');DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'★');DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=8*(DIFZ-DEAZ);TYNNN:=60;A1:=REF(HIGH,TYNNN)=HHV(HIGH,2*TYNNN+1); B1:=FILTER(A1,TYNNN);C1:=BACKSET(B1,TYNNN+1); D1:=FILTER(C1,TYNNN);A2:=REF(LOW,TYNNN)=LLV(LOW,2*TYNNN+1); B2:=FILTER(A2,TYNNN);C2:=BACKSET(B2,TYNNN+1); D2:=FILTER(C2,TYNNN);E1:=(REF(LLV(LOW,2*TYNNN),1)+REF(HHV(HIGH,2*TYNNN),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2));X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);RCC:=REF(L,BARSLAST(VV));DRAWBAND(DIFZ*4+RCC,RGB(155,50,50),EMA(DIFZ*4+RCC,9),RGB(0,50,150)); STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR400080; STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR00FFFF;STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR008080; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLORC080FF;IF(C,EMA(DIFZ*4+RCC,9),DRAWNULL),COLORFFFFFF,LINETHICK1;IF(C,DIFZ*4+RCC,DRAWNULL),COLORRED,LINETHICK1;IF(DIFZ<=REF(DIFZ,1),DIFZ*4+RCC,DRAWNULL),COLORFFF000;JJV:=(H+L+C)/3;QJ0:=VOL/IF(H=L,4,H-L);QJ1:=IF(CAPITAL=0,QJ0*(JJV-MIN(C,O)),QJ0*(MIN(O,C)-L));QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJV-MIN(C,O)));QJ3:=QJ0*(H-MAX(O,C));QJ4:=QJ0*(MAX(C,O)-JJV);QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;DDX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;DDZ:=DD*17;DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;BB:=(CROSS(J,0)AND ((DDX>0 AND DDY>0) OR DDZ>400));DRAWTEXT(BB,L*0.98,'★斋主赚点钱玩'),COLOR00FFFF;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) ANDCROSS(MA(DX1,2),DX1);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),80,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损启动线'),COLORYELLOW;VAR1:=VOL*(OPEN+CLOSE)/2;搏杀生命线:SUM(VAR1,88)/SUM(VOL,88),LINETHICK3,COLORYELLOW;【通达信】突破重围〔空仓、持股、搏杀生命线、启动线〕-指标公式效果图 (文档来源:假设水财经社区)。
通达信指标公式源码通达信无敌平台突破选股公式
通达信无敌平台突破选股公式W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W5:=W4 AND COUNT(W4,5);VAR1:=LLV(LOW,13);VAR2:=HHV(HIGH,13);VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);AA:=VAR3;BB:=VAR4;VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*10 0;CC:=EMA(VAR5,3);均5:=MA(CLOSE,5), COLORYELLOW;均10:=MA(CLOSE,10), COLORF00FF0;均30:=MA(CLOSE,30), COLOR00FF00;均60:=MA(CLOSE, 60), COLORRED;均250:= MA(CLOSE, 250), COLORBLUE ;上轨:=均30 + 2*STD(CLOSE,30), COLORYELLOW ;下轨:=均30 - 2*STD(CLOSE,30), COLORYELLOW ;VV2:=REF(CLOSE,1);VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; VAR11:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR22:=REF(VAR11,1);VAR33:=SMA(MAX(VAR11-VAR22,0),10,1)/SMA(ABS(VAR11-VAR22),10,1)*100;HY3:=IF(COUNT(VAR33<20,5)>=1 AND COUNT(VAR11=LLV(VAR11,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;A:=MA(S,5),COLORGREEN,,LINETHICK2;BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;F:=MA(S,121);RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;K:=SMA(RSV,15,1);D:=SMA(K,15,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0);HJC:=( CROSS(CC,BB)AND CC>=REF(CC,1) AND BB<=REF(BB,3)AND CC>=49.5 AND MA(C,3)>=REF(MA(C,3),1)AND MA(C,7)>=REF(MA(C,7),1) ANDMA(C,60)>REF(MA(C,60),3)) OR S1,COLORRED;BHG:HJC>0 OR REF(HJC,1)>0 OR REF(HJC,2)>0 OR REF(HJC,3)>0 OR REF(HJC,4)>0 OR REF(HJC,5)>0 OR REF(HJC,6)>0 OR REF(HJC,7)>0 OR REF(HJC,8)>0 OR REF(HJC,9)>0 OR REF(HJC,10)>0 AND W5;。
【股票指标公式下载】-【通达信】顶底主图(攻击线、操盘线、生命线)
【通达信】顶底主图(攻击线、操盘线、生命线)-指标公式源码攻击线5:MA(C,5)LINETHICK1;操盘线10:MA(C,10)LINETHICK1;生命线30:MA(C,30)LINETHICK1;决策线60:MA(C,60)LINETHICK1;DRAWTEXT(CROSS(攻击线5,操盘线10),LOW*0.95,'攻抄金叉'),COLORRED; DRAWTEXT(CROSS(生命线30,决策线60),LOW*0.95,'生决金叉'),COLORMAGENTA; N:=20;M:=30;P1:=80;P2:=100;VAR101:=(C+H+O+L)/4;卖出:XMA(VAR101,N)*(1+P1/1000),COLORRED,LINETHICK2;买入:XMA(VAR101,M)*(1-P2/1000),COLORLIRED,LINETHICK2;幅度:=100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR101,3);STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORGREEN;MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:=MA(CLOSE,8),COLORFF0000;AA12:=MA(CLOSE,12),COLORFF0000;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:=LLV(LOW,30),;短期底部0:=LLV(HIGH,30);短底:=EMA(VAR01,5);支撑:=HHV(短底,60);压力1:=HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃'),COLORFFFF00;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1);VAR2:=SMA(飞龙顶底线1,3,1);VAR3:=((3 * 飞龙顶底线1) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线1 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);M80:=MA(CLOSE,80);短期底部:=(LLV(HIGH,30) * 0.93);MA80:=LLV(HIGH,30);短期底部2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D))));支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D <D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D <D24)))));RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1))))); RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D >D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24))))); 长期底部:=LLV(HIGH,30);DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'底成'),COLOR0EABFF;RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR001:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR001,20);VAR002:=CROSS(VAR001,飞龙顶底线);VAR003:=(VAR001 < MA(CLOSE,20));VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR005:=SMA(VAR004,5,1);VAR006:=SMA(VAR005,8,1);VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5));VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR007); VAR009:=IF((CLOSE > 1000),VAR007,VAR008);VAR00F:=CROSS(X1,X2);MA115:=VAR00F;低买:=(VAR002 AND VAR003);黑马起步:=VAR009;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((黑马起步 > 0),(HIGH * 1.04),'逃命'),COLORFF0000;逃遁:=(SMA(HIGH,21,2) * 1.05);阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位2 - REF(超跌位2,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力1)) AND (CLOSE < 压力1)) AND ((压力2 - REF(压力2,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'出击'),COLOR646E69;DRAWTEXT((((((低买 > 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'黑马'),COLOR00FF00; DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY -REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF; DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) >0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) >1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1)) AND (CLOSE > 阻挡线)),5),LOW,'涨10%'),COLORFFFFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄E'),COLORA100FF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < M80)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'买'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2 <= MA80)),8),LOW,'底'),COLORFFFF00;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 -REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORAFA0AF; DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLOR73777F;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'短线买');短趋势线:=MA(CLOSE,13);中趋势线1:=MA(CLOSE,33),LINETHICK1;中趋势线:=MA(CLOSE,55);涨:=IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;跌:=IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;STICKLINE(CROSS(MA(CLOSE,13),C) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L,L*0.98,3,0),COLORYELLOW;DRAWTEXT(CROSS(MA(CLOSE,13),C) AND INDEXC>MA(INDEXC,13) ANDMA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L*0.95,'买'),COLORRED,LINETHICK2;VAR011:=((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;VAR012:=HHV(VAR011>20,10);DRAWTEXT(VAR011<-20 AND INDEXC<MA(INDEXC,13) AND FILTER(VAR011>REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;VAR013:=IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL); DRAWTEXT((IF(CLOSE>MA(CLOSE,13) ANDOPEN<CLOSE,-0.1,0))AND((C-REF(C,1))/(REF(C,1))>0.061)AND(MA(CLOSE,13)=VAR013) AND (MA(CLOSE,1),MA(CLOSE,13)) AND(VOL>REF(HHV(VOL,3),1)*2),L*0.98,'主力介入'),COLORMAGENTA;X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);【通达信】顶底主图(攻击线、操盘线、生命线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】建仓爆发刀(建仓、启动、冲击、操作)
【通达信】建仓爆发刀(建仓、启动、冲击、操作)-指标公式源码MA1:=MA(COST(15),1);TJ:=BARSLAST(MA1<C);TJJ:=BARSLAST(MA1>C);建仓:SUM(V,TJ)/TJ/100,COLORFFFFFF;启动:SUM(V,TJJ)/TJJ/100,COLORFF00FF;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MCD := 2*(DIFF-DEA), COLORSTICK;AG:=CROSS(DIFF,DEA);MACD1:=SUM(V,BARSLAST(AG)+1)/CAPITAL*200,COLORRED;操作:IF(DEA>REF(DEA,1) AND DIFF>DEA,MACD1,0),COLORYELLOW; DRAWTEXT(CROSS(建仓,启动) ,建仓,'▲注'),COLORGREEN; DRAWTEXT(CROSS(启动,建仓) ,建仓,'▲关'),COLORRED;MM:=DOWNNDAY(启动,21);DRAWTEXT(MM ,启动,'▲动'),COLORBROWN;庄250:EMA(WINNER(C)*70,250)*2000,COLORCYAN;YY:=CROSS(EMA(WINNER(C)*70,1),EMA(WINNER(C)*70,181));庄1:EMA(WINNER(C)*70,1)*10,COLORLIRED;DRAWTEXT(YY,庄250*0.98,'▲冲击'),COLORWHITE;关注:= (CROSS(EMA(C,13),EMA(C,55))) ;DRAWTEXT(关注 ,建仓,'▲顾'),COLORLIBLUE;底7:EMA(C,7)*(EMA(C,7))*5,COLORBLUE;顶55: HHV(HIGH,60)*0.98*(EMA(C,55))*5,COLORFFFFCC;关:= (CROSS(底7,顶55)) ;DRAWTEXT(关 ,建仓,'▲顶'),COLORYELLOW;KK:=CROSS(EMA(WINNER(C)*70,2),EMA(WINNER(C)*70,181));FF:=CROSS(EMA(WINNER(C)*70,3),EMA(WINNER(C)*70,181));RR:=CROSS(EMA(WINNER(C)*70,7),EMA(WINNER(C)*70,181));TT:=CROSS(EMA(WINNER(C)*70,13),EMA(WINNER(C)*70,181));RU:=YY AND KK AND FF AND RR AND TT;DRAWTEXT(RU,建仓,'▲射'),COLORRED;【通达信】建仓爆发刀(建仓、启动、冲击、操作)-指标公式效果图(文档来源:若水财经社区)。
通达信突破笼子指标公式
通达信突破笼子指标公式
通达信突破笼子指标公式是一种技术分析工具,用于帮助投资者识别股票或其他资产的突破趋势。
这个指标的计算方式是基于价格的波动范围以及移动平均线的变化来确定股价的变动趋势。
通过这个指标,投资者可以更准确地把握市场趋势,从而做出更明智的投资决策。
为了使用通达信突破笼子指标公式,首先需要打开通达信软件,在公式编辑器中输入相应的公式代码。
接着,在股票或其他资产的K线图中应用这个指标,观察其变化情况。
当指标线突破上涨或下跌信号线时,可以判断出股价可能会上涨或下跌的趋势。
需要注意的是,通达信突破笼子指标并不是绝对准确的预测工具,它只是一种辅助分析工具,需要结合其他技术指标和基本面分析一起使用才能更好地理解市场走势。
投资者在使用这个指标时,应该谨慎分析,不盲目跟风,理性决策。
愿投资者通过学习和实践不断提升自己的技术分析能力,取得投资收益。
1本人长期使用的通达信选股持股 指标公式--突破预警(非常好用)
本人长期使用的通达信选股持股指标公式--突破预警(非常好用)一、指标介绍突破预警,是根据筹码、压力位、均线、kdj计算,指当价格突破压力线时进行预警,此后股价大概率上升。
二、指标截图发出白色、红色三角箭头时,为买入信号。
三、公式源代码{突破预警M1=5 M2=10}AAA:C;M3:=EMA(CLOSE,5);M20:=EMA(CLOSE,10);A:=BARSLAST(CROSS(M3,M20));A1:=REF(BARSLAST(CROSS(M3,M20)),A+1); A2:=A+A1;AA:=REF(BARSLAST(CROSS(M3,M20)),A2+2);A3:=AA+A2;B:=BARSLAST(CROSS(M20,M3));B1:=REF(BARSLAST(CROSS(M20,M3)),B+1); B2:=B+B1;BB:=REF(BARSLAST(CROSS(M20,M3)),B2+2); X1:=IF(A<B,A2-B,A-B);Y1:=IF(A2<B2,A3-B2,A2-B2);GD0:=REF(HHVBARS(H,X1+3),B);GD1:=REF(HHVBARS(H,Y1+3),B2);GG0:=BACKSET(ISLASTBAR,GD0+B+1);GG1:=BACKSET(ISLASTBAR,GD1+B2+1);TJ3:=CROSS(GG0,0.5);TJ4:=CROSS(GG1,0.5);上轨:=DRAWLINE(TJ4,H,TJ3,H,1);值3:=GG0>REF(GG0,1);值4:=GG1>REF(GG1,1);顶1:IF(GG0,REF(HIGH,BARSLAST(值3)),0); 突破1:CROSS(C,顶1);突破2:COUNT(突破1,10);突破:(突破1 AND 突破2=1);四、公式使用方法功能---公式系统 ---公式管理器—新建—输入公式就可以了注:指标公式不是万能的。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】突破重围(空仓、持股、搏杀生命线、启动线)-指标公式源码{参数 M 30/240/90}N:=89;HH:=CONST(HHV(H,N));LL:=CONST(LLV(L,N));MM:=CONST(HH/2+LL/2);CC:=CONST(C),CROSSDOT;YY:=CONST(IF(CC>=MM,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2)),POINTDOT;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;MHH:=CONST(HHV(MACD,N));MLL:=CONST(LLV(MACD,N));MMM0:=MHH/2-MLL/2; MMM:=IF(MMM0<(HH-LL)*0.1,(HH-LL)*0.1,MMM0); STICKLINE(0=0,YY+MMM,YY-MMM,5,0),COLOR444444;STICKLINE(MACD>=0 AND MACD>REF(MACD,1),YY,YY+MACD,0.2,0),COLORRED; STICKLINE(MACD>=0 AND MACD<REF(MACD,1),YY,YY+MACD,0.2,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD<REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FF00; STICKLINE(MACD<0 AND MACD>REF(MACD,1), YY,YY+MACD,0.2,0),COLOR00FFFF; RSVZ:=((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))-0.5)/100;KX:=SMA(RSVZ,4,1);DX:=SMA(KX,4,1);JX:=3*KX-2*DX;JJ:=(JX/0.005)*MMM;STICKLINE(JX>REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORMAGENTA; STICKLINE(JX<REF(JX,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORGREEN;SAR1:=IF(CLOSE<SAR(2,3,10),SAR(2,3,10),0);SAR2:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),0);SARE:=IF(CLOSE>SAR(3,3,20),SAR(3,3,20),0);SARA:=IF(CLOSE>SAR(4,2,10),SAR(4,2,10),0);空仓:IF(MIN(SAR1,SAR2)>0,(SAR1+SAR2)/2,IF(SAR1+SAR2=0,DRAWNULL,SAR1+SAR 2)){,CIRCLEDOT},COLORGREEN,LINETHICK5;持股:IF(MIN(SARE,SARA)>0,(SARE+SARA)/2,IF(SARE+SARA=0,DRAWNULL,SARE+SAR A)){,CIRCLEDOT},COLORMAGENTA,LINETHICK5;MA1:C,COLORYELLOW,NODRAW;MA3:MA(((3*C+L+O+H)/6),3),COLORYELLOW,NODRAW;BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;IF(C>BB5,BB5,DRAWNULL),COLORRED;IF(C<BB5,BB5,DRAWNULL),COLORCYAN;MH:=IF(MACD<0,-MACD,0);ML:=IF(MACD>0,-MACD,0);JJH:=IF(REF(JJ,1)>JJ,REF(JJ,1),JJ);JJL:=IF(REF(JJ,1)<JJ,REF(JJ,1),JJ);Z1:=IF(JJH>ML AND JJH<MH,JJH,IF(JJH>=MH,MH,DRAWNULL));Z2:=IF(JJL>ML AND JJL<MH,JJL,IF(JJL<=ML,ML,DRAWNULL));STICKLINE(0=0,YY+Z1,YY+Z2,0.1,0),COLORBLUE;DRAWTEXT(CURRBARSCOUNT=16 AND BACKSET(C>BB5,CURRBARSCOUNT)=1 AND BACKSET(CROSS(MA1,BBI)=1,CURRBARSCOUNT)=1,IF(CC>MM,LL,HH),'收BB5上,上穿BBI'),COLORRED;DRAWICON(CROSS(DIF,DEA), YY-MMM,1);DRAWICON(CROSS(DEA,DIF), YY+MMM,2);RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;K:=EMA(RSV,3);D:=EMA(K,3);J:=(3*K-2*D);KDJ1:=REF(COUNT(J<REF(J,1),5)>=3,1) AND REF(J,1)<20;KDJ2:=J>REF(J,1);反转:=IF(FILTER(KDJ1 AND KDJ2,3),50,0),COLORRED;VAR22:=REF(LOW,1);VAR33:=SMA(ABS(LOW-VAR22),3,1)/SMA(MAX(LOW-VAR22,0),3,1)*100;VAR44:=EMA(IF(CLOSE*1.3,VAR33*10,VAR33/10),3);VAR55:=LLV(LOW,13);VAR66:=HHV(VAR44,13);VAR77:=IF(MA(CLOSE,34),1,0);VAR888:=EMA(IF(LOW<=VAR55,(VAR44+VAR66*2)/2,0),3)/618*VAR77;VAR999:=IF(VAR888>100,100,VAR888);吸筹:=VAR999,LINETHICK1,COLORCD7F32 ;HHZ:=CONST(HHV(C,120))*1;LLZ:=CONST(LLV(C,120))*1;HL:=CONST(IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ-(HHZ-LLZ)*0.4,HHZ+(HHZ-L LZ)*0.4));HH1:=IF(CONST((HHZ+LLZ)/2)>CONST(C),HHZ,HL);LL1:=IF(CONST((HHZ+LLZ)/2)<CONST(C),LLZ,HL);HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2;HLMN4:=100-0;(50-50)*HLMN2/100+HLMN1,COLOR555555;(20-50)*HLMN2/100+HLMN1,COLOR555555;(80-50)*HLMN2/100+HLMN1,COLOR555555;(100-50)*HLMN2/100+HLMN1,COLOR555555;STICKLINE(吸筹,(0-50)*HLMN2/100+HLMN1,(VAR999-50)*HLMN2/100+HLMN1,2,10),COLORFF00FF;STICKLINE(J<=0,(90-50)*HLMN2/100+HLMN1,(100-50)*HLMN2/100+HLMN1,4,0),COLORYELLOW;IF(反转=50,(50-50)*HLMN2/100+HLMN1,(0-50)*HLMN2/100+HLMN1),COLORRED;KZ:(K-50)*HLMN2/100+HLMN1,COLORFFFFFF;DZ:(D-50)*HLMN2/100+HLMN1,COLOR00FFFF;JZ:(J-50)*HLMN2/100+HLMN1,COLOR00FF00;VL:=REF(LOW,1);VAR12Z:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14Z:=MA(VAR12Z,13);VAR15Z:=LLV(LOW,34);VAR18Z:=EMA(IF(LOW<=VAR15Z,VAR14Z,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 VAR18Z>REF(VAR18Z,1),VAR18Z*8,0),20); DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'★'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22X:=SMA(VAR21,3,1);VAR23:=SMA(VAR22X,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'★'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶');DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'★');DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=8*(DIFZ-DEAZ);TYNNN:=60;A1:=REF(HIGH,TYNNN)=HHV(HIGH,2*TYNNN+1); B1:=FILTER(A1,TYNNN);C1:=BACKSET(B1,TYNNN+1); D1:=FILTER(C1,TYNNN);A2:=REF(LOW,TYNNN)=LLV(LOW,2*TYNNN+1); B2:=FILTER(A2,TYNNN);C2:=BACKSET(B2,TYNNN+1); D2:=FILTER(C2,TYNNN);E1:=(REF(LLV(LOW,2*TYNNN),1)+REF(HHV(HIGH,2*TYNNN),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2));X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);RCC:=REF(L,BARSLAST(VV));DRAWBAND(DIFZ*4+RCC,RGB(155,50,50),EMA(DIFZ*4+RCC,9),RGB(0,50,150)); STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR400080; STICKLINE((RCC+MACDZ)>RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR00FFFF; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)<=REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLOR008080; STICKLINE((RCC+MACDZ)<=RCC AND(RCC+MACDZ)>REF(RCC+MACDZ,1),RCC,RCC+MACDZ,1,0),COLORC080FF;IF(C,EMA(DIFZ*4+RCC,9),DRAWNULL),COLORFFFFFF,LINETHICK1;IF(C,DIFZ*4+RCC,DRAWNULL),COLORRED,LINETHICK1;IF(DIFZ<=REF(DIFZ,1),DIFZ*4+RCC,DRAWNULL),COLORFFF000;JJV:=(H+L+C)/3;QJ0:=VOL/IF(H=L,4,H-L);QJ1:=IF(CAPITAL=0,QJ0*(JJV-MIN(C,O)),QJ0*(MIN(O,C)-L));QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJV-MIN(C,O)));QJ3:=QJ0*(H-MAX(O,C));QJ4:=QJ0*(MAX(C,O)-JJV);QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;DDX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;DDZ:=DD*17;DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;BB:=(CROSS(J,0)AND ((DDX>0 AND DDY>0) OR DDZ>400));DRAWTEXT(BB,L*0.98,'★斋主赚点钱玩'),COLOR00FFFF;MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) ANDCROSS(MA(DX1,2),DX1);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),80,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损启动线'),COLORYELLOW;VAR1:=VOL*(OPEN+CLOSE)/2;搏杀生命线:SUM(VAR1,88)/SUM(VOL,88),LINETHICK3,COLORYELLOW;【通达信】突破重围(空仓、持股、搏杀生命线、启动线)-指标公式效果图(文档来源:若水财经社区)。