通达信指标——高抛低吸主图(主图)

合集下载

通达信指标公式源码高抛低吸主图,组合看盘副图

通达信指标公式源码高抛低吸主图,组合看盘副图

主图1:高抛低吸五日线:MA(CLOSE,5);月线:MA(CLOSE,30);半年线:MA(CLOSE,120);年线:MA(CLOSE,250);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR3:=LLV(LOW,5);VAR4:=HHV(HIGH,4);散户:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR2;DRAWTEXT(CROSS(散户,庄家) AND 散户<47,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>60,H+0.05,'←高抛'),COLOR80FF00;DRAWICON(CROSS(散户,庄家) AND 散户<47,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>60,H+0.05,2);市场成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;操盘成本:(MA(C,30)+MA(C,72))/2,COLORRED;市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;DX:=JGL_DX*100,NODRAW;买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;量差:=买-卖,NODRAW,COLORYELLOW;STICKLINE(量差<=0,CLOSE,OPEN,3,0),COLOR009900;STICKLINE(量差<=0,CLOSE,OPEN,2.2,0),COLOR00BB00;STICKLINE(量差<=0,CLOSE,OPEN,1.5,0),COLOR00DD00;STICKLINE(量差<=0,CLOSE,OPEN,0.5,0),COLOR00FF00;STICKLINE(量差>=0,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(量差>=0,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(量差>=0,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(量差>=0,CLOSE,OPEN,0.5,0),COLORCC66FF;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;ZT:=C/REF(C,1)>1.097;STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;V3V:=V/REF(V,1)>=1.9 AND C<REF(C,1);STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'↖抄底'),COLORRED;N1:=5;N2:=7;N3:=11;EM1:EMA(C,N1),COLORWHITE;EM2:EMA(C,N2),COLORRED;EM3:EMA(C,N3),COLORGREEN;TJ11:=BETWEEN(EM2,EM1,EM3);DRAWICON(TJ11=0,L,14);Z:=MA(C,120);VAR31:=(MA(C,5)-Z)/Z;VAR41:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/10 0)/(MA(AMOUNT,5)/MA(VOL,5)/100);D1:DRAWTEXT(CLOSE>Z AND REF(VAR41,1)<30 AND VAR41>REF(VAR41,1) AND REF(VAR41,1)<REF(VAR41,2) ,LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) ANDREF(VAR5,1)<REF(VAR5,2) AND VAR31<-0.3,LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR41,5) AND VAR31<-0.4,LOW ,'★B'),COLORBLUE; 组合看盘:STICKLINE(C>0,0,100,15,0),COLORAA9988;VAR21:=REF(LOW,1);VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100; VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);VAR51:=LLV(LOW,30);VAR61:=HHV(VAR41,30);VAR71:=IF(MA(CLOSE,58),1,0);VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71; VAR91:=IF(VAR81>100,100,VAR81);吸筹:STICKLINE(VAR91>-120,0,VAR91,0.8,0),COLOR00FFFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,18,10,1),COLORYELLOW;兰卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(兰卖,100,82,10,1),COLORFFFF00;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,12,6,1),COLORRED;蓝卖:=FILTER(CROSS(89,RSI),7);STICKLINE(蓝卖,100,93,6,0),COLORFF0000;粉买:FILTER(CROSS(RSI,20),7),COLORFF00FF;STICKLINE(粉买,0,6,6,0),COLORFF00FF;绿卖:=FILTER(CROSS(88,RSI),7);STICKLINE(绿卖,100,88,6,0),COLOR00FF00;{★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;}ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLORFF00FF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限+ 下限)/2,COLORYELLOW,POINTDOT,LINETHICK1;60,LINETHICK1,POINTDOT,COLORYELLOW;10,LINETHICK1,POINTDOT,COLORFF00FF;VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;VAR4001:=EMA(VAR3001,5);操盘1:=3*VAR3001-2*VAR4001;A11:=CROSS(操盘1,VAR3001) AND VAR3001<2.1 AND C>O; STICKLINE(A11,20,0,4,0),COLOR0000FF;DRAWTEXT(A11,23,'满仓'),COLORRED;VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;VAR6:=(红线在上持股> (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股- 0.01),23); DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);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;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,'短'),COLORRED ; STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,0,3,0),COLORRED;A8A:=(C+O+L+H)/4;B8B:=REF(CLOSE,A8A);处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100; DZ1:=处女线>REF(处女线,1) AND 处女线>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI修正1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;DZ:=DZ1 AND DZ2 AND DZ4;STICKLINE(DZ,0,10,4,0),COLOR00FFFF;DRAWTEXT(DZ,10,'天牛'),COLOR00FFFF;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,55);选股:(ZZLJJ>REF(ZZLJJ,1) AND REF(ZZLJJ,1)<REF(ZZLJJ,2))*25; STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;。

通达信指标公式源码 分时低吸高抛很好用

通达信指标公式源码 分时低吸高抛很好用

MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORLICYAN;DRAWTEXT(CURRBARSCOUNT=8,阻力,' 阻力'),COLOR00DD00,LINETHICK2;支撑:L1+P1*0.5/8,COLOR00DD00;DRAWTEXT(CURRBARSCOUNT=8,支撑,' 支撑'),COLOR00DD00,LINETHICK2;现价:CLOSE,COLORWHITE,LINETHICK6;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'止损价位B★吸'),COLORRED,LINETHICK6;{吸}DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'止赢价位S★抛'),COLORGREEN,LINETHICK6;{抛};昨收:DYNAINFO(3),COLORFF9900,LINETHICK3;DRAWTEXT(CURRBARSCOUNT=8,昨收,'昨收'),COLORFF9900,LINETHICK2;今开:DYNAINFO(4),COLORFF00FF,LINETHICK3;DRAWTEXT(CURRBARSCOUNT=8,今开,'今开'),COLORFF00FF,LINETHICK2;今高:DYNAINFO(5),COLOREE2255;{ m}DRAWTEXT(CURRBARSCOUNT=8,今高,'今高'),COLOREE2255,LINETHICK2;今低:DYNAINFO(6),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=8,今低,'今低'),COLORGREEN,LINETHICK2;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=4,均价,'均价'),COLORYELLOW,LINETHICK6;CC:=HHV(IF(TIME<103000,C,0),0);VV:=HHV(IF(TIME<103000,V,0),0);ZF:=CC/DYNAINFO(3)<1.04;XH:=C>=CC AND V>=VV AND TIME>=103000 AND DYNAINFO(7)=C;GL:=FILTER(XH,60);DRAWTEXT(GL,DYNAINFO(7)*0.99,'突破'),COLORYELLOW,LINETHICK2;STICKLINE(GL,DYNAINFO(7)*0.98,DYNAINFO(7)*0.999,10,0) COLOR0000FF;最高价:HHV(H,480),DOTLINE,COLORRED;STICKLINE(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,C,8,0),COLORRED; DRAWTEXT(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,'上突'),COLORYELLOW;T:=BARSCOUNT(C);TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIMETOSEC(3600)>39600,240) ;DRAWTEXT(TP,L,'★突破'),COLORRED;PLOYLINE(TP,1),COLORGREEN,LINETHICK2;HHV(H,T),DOTLINE,COLOR00FFFF;{T+1止赢、止损}止赢:最高价,COLORGREEN;DRAWTEXT(ISLASTBAR,最高价,'止赢价位'),COLORGREEN,LINETHICK2;止损:均价,COLORFF00FF;DRAWTEXT(ISLASTBAR,均价,'均价为当日止损价位'),COLORYELLOW,LINETHICK2;。

通达信震荡高抛低吸公式源码K线图

通达信震荡高抛低吸公式源码K线图

通达信震荡高抛低吸公式源码K线图DF:=3;N1:=12;RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;K:=SMA(RSV,DF,1);D:=SMA(K,DF,1);KK:=SMA(RSV,DF,1);DD:=SMA(K,DF,1);N:=KK+DD;关注区:STICKLINE(N<50,N,50,2,0),COLORRED;风险区:STICKLINE(N>160,N,160,2,0),COLORGREEN;成本区:50,COLORYELLOW,LINETHICK2;GWGD:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);获利区:160,COLOR007700,LINETHICK2;操盘线:N,COLORFF00FF,LINETHICK1;买:DRAWICON(CROSS(N,50),50,26),COLORRED;卖:DRAWICON(CROSS(160,N),160,15),COLORGREEN;AA:=(C+O+L+H)/4;{以下含未来,不喜删除}BB:=REF(CLOSE,AA);获利盘:=SMA(MAX(CLOSE-BB,0),2,1)/SMA(ABS(CLOSE-BB),2,1)*100;DZ1:=获利盘>REF(获利盘,1) AND 获利盘>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI1:=EMA(EMA(EMA(CCI,2),2),2);CCI2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;选股:=DZ1 AND DZ2 AND DZ4; STICKLINE(选股,50,150,2,0),COLORYELLOW; DRAWTEXT(选股,120,'*暴涨'),COLORRED;参数1-4设置参数最小最大缺省1 M2 1.00 100.00 36.002 P 3.00 100.00 13.003 N 80.00 100.00 100.004 M 1.00 100.00 5.00参数5-8设置参数最小最大缺省5 SHORT 1.00 999.00 21.006 LONG 1.00 999.00 44.007 MIDD 1.00 999.00 11.008 P1 1.00 999.00 11.00。

通达信指标公式源码 高抛低吸

通达信指标公式源码 高抛低吸

DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0);N8:=STRCAT(CON2STR(YEAR,0),' 年');Y8:=STRCAT(CON2STR(MONTH,0),' 月');R8:=STRCAT(CON2STR(DAY,0),' 日');N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL);低:IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;压力:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.809,DRAWNULL),COLOR00FF00;低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NOD RAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE; STICKLINE(CCI>=200 AND H>=顶点,O,C,3,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,3,0),COLORYELLOW;DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0)); DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0)); DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,强势,强势,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,4,0),COLORABABAB; STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,4,0),COLOR00FFFF; STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,警示,'0.618'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,突破,'0.500'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=1,强势,'0.382'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;VA2:=(CLOSE+HIGH+LOW)/(3);VA3:=(EMA(VA2,10));VA4:=(REF(VA3,1));SJ8:=STRCAT(STRCAT(N8,Y8), R8);STICKLINE((VA3>VA4),VA3,VA4,3,0),COLORYELLOW;STICKLINE((VA3<VA4),VA3,VA4,3,0),COLORGREEN;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);VAR1:=HHV(HIGH,25);VAR2:=LLV(LOW,25);VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20);VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);VAR5:=CROSS(VAR4,VAR3);DRAWBMP(CROSS(VAR3,VAR4),H*1.04,'SELL1');DRAWBMP(CROSS(VAR4,VAR3),L*0.99,'BUY1');DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;STICKLINE(C<O,O,C,3,0),COLORFF6600;STICKLINE(C<O,O,C,2,0),COLORFF9900;STICKLINE(C<O,O,C,1.2,0),COLORFFCC00;STICKLINE(C<O,O,C,0.2,0),COLORCYAN;STICKLINE(C>O,O,C,3,0),COLOR000099;STICKLINE(C>O,O,C,2,0),COLOR0000CC;STICKLINE(C>O,O,C,1.3,0),COLOR0000FF;STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;。

通达信「高抛低吸」主图指标,一眼看穿主力动向,避免被套!

通达信「高抛低吸」主图指标,一眼看穿主力动向,避免被套!

通达信「高抛低吸」主图指标,一眼看穿主力动向,避免被套!
本期推荐给大家的是适用于各种新老股民朋友
的是通达信【高抛低吸】主图指标公式,公式
原理与指标名称同名。

主图参考使用:高抛低
吸提示、主图趋势线、红色做多、绿色做空。

如图所示:
长阳或涨停板分位划线参考。

跌停或长阴半分位划线参考。

画圈点为各指标的买点参考,高位红转绿做空参考
结合自己喜欢的副图参考,在拐点区如果多指标发出共同信号,成功率就高一些。

所有的指标都有局限性,要多方配合使用。

GIF。

通达信指标公式源码 主图高低点炒股 主图源码

通达信指标公式源码 主图高低点炒股 主图源码

源码:{n1 2 1000 13} {n2 2 1000 21} {n3 2 1000 34} {n4 2 1000 55}N:=5;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:= FILTER(C1,N);RH:=BACKSET(CURRBARSCOUNT=2,BARSLAST(HD)+1);SH:=RH>REF(RH,1);H1:REF(H ,BARSLAST(SH)),LINETHICK1;A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);RL:=BACKSET(CURRBARSCOUNT=2,BARSLAST(LD)+1);SL:=RL>REF(RL,1);L1:REF(L ,BARSLAST(SL)),LINETHICK1;HH0:=CONST(HHV(H,120))*1;LL0:=CONST(LLV(L,120))*1;MM0:=CONST((HH0+LL0)/2);HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.2),COLORRE D;LL1:=LL0;HLMAX:=MAX(HH1,LL1);HLMIN:=MIN(HH1,LL1);HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=(HLMAX-HLMIN);HLMN3:=HHV(V,250)/2;HLMN4:=HHV(V,250);VSTD:=STD(VOL,10),VOLSTICK;VZ:=(VSTD-HLMN3)*HLMN2/HLMN4+HLMN1;STICKLINE(C>O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,1),COLOR881888; STICKLINE(C<=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLOR888518; {N 2 1000 100 }MAVSTD5:=MA(VSTD,5);MAVSTD10:=MA(VSTD,10);STICKLINE(IF(CURRBARSCOUNT<=N,V=CONST(LLV(V,N)),DRAWNULL),VZ,(0 -HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;倍:=V/REF(V,1);VOL1:=VOL,VOLSTICK;换手:=VOL*10000/FINANCE(7);倍量拄:=VOL>=REF(V,1)*1.95 AND C>REF(C,1);梯量拄:=V>=REF(V,1) AND REF(V,1)>=REF(V,2) AND C>O AND REF(C>O,1); STICKLINE(梯量拄,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1,0),COLORLIRED{粉}; STICKLINE(倍量拄,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1,0),COLORYELLOW{黄}; STICKLINE(IF(CURRBARSCOUNT<=N1,V=CONST(LLV(V,N1)),DRAWNULL),VZ ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N2,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N3,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;STICKLINE(IF(CURRBARSCOUNT<=N4,V=CONST(LLV(V,N)),DRAWNULL),VZ,( 0-HLMN3)*HLMN2/HLMN4+HLMN1,3,0)COLORFF00FF;{VAR2:=0.0001*AMOUNT,VOLSTICK;百日地量:LV(VAR2,100)=VAR2,STICK,COLORMAGENTA,NODRAW;}N3:=100;百日地量:= V=LLV(V,N3) AND V>0 AND BARSCOUNT(V)>=N3; STICKLINE(百日地量,OPEN,CLOSE,1.8,0),COLORMAGENTA;N1:=13;N2:=55;地量10日:= V=LLV(V,N1) AND V>0 AND BARSCOUNT(V)>=N1;地量50日:= V=LLV(V,N2) AND V>0 AND BARSCOUNT(V)>=N2; STICKLINE(地量10日,OPEN,CLOSE,1.8,0),COLORWHITE;STICKLINE(地量50日,OPEN,CLOSE,1.8,0),COLORWHITE;G2:=REF(C,1);涨停:=IF((C-G2)*100/G2>=(10-0.01*100/G2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORMAGENTA;{STICKLINE(涨停,H,L,0,0),COLORMAGENTA;}跌停:=IF((G2-C)*100/G2>=(10-0.01*100/G2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;跌家数:INDEXDEC,NODRAW,COLORGREEN;HHH0:=CONST(HHV(H,120))*1;LLL0:=CONST(LLV(L,120))*1;MMM0:=CONST((HHH0+LLL0)/2);HHH1:=IF(CONST(C)<MMM0,LLL0-(HHH0-LLL0)*0.4,LLL0-(HHH0-LLL0)*0.2), COLORRED;LLL1:=LLL0;HHLMAX:=MAX(HHH1,LLL1);HHLMIN:=MIN(HHH1,LLL1);HHLMN1:=(HHLMAX+HHLMIN)/2;HHLMN2:=(HHLMAX-HHLMIN);HHLMN3:=HHV(V,250)/2;HHLMN4:=HHV(V,250);VVZ:=(V-HHLMN3)*HHLMN2/HHLMN4+HHLMN1;STICKLINE(C>=O,VVZ,(0-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,2,1),COLOR RED;STICKLINE(C<O,VVZ,(0-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,2,0),COLORC YAN;{(MA(V,5)-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,COLORFFFFFF;(MA(V,10)-HHLMN3)*HHLMN2/HHLMN4+HHLMN1,COLOR00FFFF;};A11:=CLOSE<OPEN;A12:=OPEN-CLOSE;{第一个阴线的实柱长}B11:=BARSLAST(CLOSE>=OPEN);B12:=REF(CLOSE,B11)-REF(OPEN,B11);{第一个阳线的实柱长}C10:=B11<3;C11:=A12-B12>0;C12:=VOL<REF(VOL,B11);C13:=VOL<REF(VOL,B11) AND REF(VOL,1)<REF(VOL,2);C14:=IF(B11=2,C13,C12);CC:=C10 AND C11 AND C13;{必须条件}G11:=VOL<SUM(VOL,5)/5;{好,不坏}G17:=VOL<(REF(VOL,B11)*1/4+REF(VOL,12)*3/4);{有副作用,禁用}G21:=VOL<(1/3*SUM(VOL,5)/5+1/3*REF(VOL,B11)+1/3*LLV(VOL,5));{好,不坏}G22:=10.00>100*SUM(DYNAINFO(37),5)/5;{小测试无副作用}G23:=10000000*(HIGH-LOW)/VOL;G24:=10000000*(REF(HIGH,B11)-REF(LOW,B11))/REF(VOL,B11);G241:=SUM(G24,12)/12;G25:=G23>G241;GG:=G11 AND G21 AND G22 AND G25;{重要的限制条件}F11:=CC AND GG;DRAWICON(F11,HIGH*1.01,27);{输出三:长阴短柱};T1:=CONST(LLVBARS(LOW,10));T1HIGH:=CONST(REF(HIGH,T1));CCB:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T1 AND H>T1HIGH));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T2 AND HIGH>T2HIGH));T3HIGH:=CONST(REF(HIGH,T3));凹口淘金:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLOR00FFFF,LINETHICK1;DRAWTEXT(ISLASTBAR, T3HIGH, '凹口淘金')LINETHICK1,COLOR00FFFF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),DOTLINE,COLORYELLOW;MAXV:=CONST(HHV(VOL,21));MAXS:=CONST(HHV(HIGH,21));BS:=MAXV/MAXS;VOLUME:=VOL/BS*0.10;ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0));NOTEXT1:MA(VOLUME,2)+ORIGIN;NOTEXT2:MA(VOLUME,6)+ORIGIN;NOTEXT3:MA(VOLUME,30)+ORIGIN;说明:画线包含高底价,凹口掏金平衡线;成交量包含百日地量,百日地量群,5日10日20日量线;主图还包含长阴短拄,长阴短拄群。

通达信指标公式源码 高抛低吸特色指标

通达信指标公式源码 高抛低吸特色指标

EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLO RYELLOW;VC:=((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;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRA WNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRA WNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。

通达信指标公式源码每一个波段高抛低吸实战主图

通达信指标公式源码每一个波段高抛低吸实战主图

每一个波段高抛低吸实战主图说明:1、只操作股价在强势线上的股票;2、在支撑线和生命线上的股票要快进快出;3、生命线以下的股票尽量不要参与操作,但选股信号往往出现在生命线以下。

其实鱼与熊掌不可兼得,我们买卖股票也不可能买在最低,卖在最高,只赚操作线上最安全的一段就可以了。

三线多头排列,强势线在最上面,股价刚上穿强势线或回落在强势线上附近,就是买入良机,股价跌破强势线就是卖出的时候。

4、选股满仓信号为出现低吸追满仓三个选股信号同时出现的信号。

主图强势线:MA(C,21);支撑线:MA(C,60);生命线:MA(C,120);MA5:=MA(C,3);MA10:=MA(C,7);MA20:=MA(C,21);MA60:=MA(C,60);MA120:=MA(C,120);MA250:=MA(C,250);A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,7),8)/EMA(EMA(ABS(A7),7),9);A9:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));A10:=CROSS(CLOSE,MA(CLOSE,7));A11:=C<MA5 AND MA5>MA10;A12:=CROSS(C,MA(C,21)) AND CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));A13:=CROSS(C,MA(C,21)) AND MA(C,21)<MA(C,60) AND MA(C,21)<MA(C,120);A14:=CROSS(C,MA(C,60)) ;A15:=MA(C,5)>MA(C,30) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30);A16:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2);A17:=AMO>REF(AMO,1)*2 OR REF(AMO,2)>REF(AMO,3)*2 ANDREF(AMO,1)<REF(AMO,2) AND REF(AMO,1)<AMO;A18:=A15 AND A16 AND A17;A19:=CROSS(C,MA(C,21)) ;MH:=A9 AND A10 OR A14 ;XG:=A11;低吸:=IF(C<生命线AND C<支撑线AND C<强势线,MH,A13);追:=IF(C>生命线AND C>支撑线AND C>强势线,MH,0) OR A18 OR A19;支撑买入:=IF(C<强势线AND C>生命线,MH,0);高抛:=IF(C>生命线AND C>支撑线AND C>强势线,XG,0);卖:=IF(C<生命线AND C<支撑线AND C<强势线,XG,0);A20:=A12 AND MH AND A13;DRAWTEXT(低吸,L-0.05,'↖低吸'),COLORYELLOW;DRAWTEXT(支撑买入,L-0.05,'↖支撑买入'),COLORYELLOW;DRAWTEXT(A20,L-0.45,'↖满仓'),COLORMAGENTA; DRAWTEXT(追,L-0.25,'↖追'),COLORMAGENTA;DRAWTEXT(FILTER(卖=1,5),H+0.05,' ↙卖'),COLORGREEN; DRAWTEXT(FILTER(高抛=1,5),H+0.05,' ↙高抛'),COLORGREEN;。

通达信完美高抛低吸操作,看透主力建仓、吸筹洗盘,出货,附源码

通达信完美高抛低吸操作,看透主力建仓、吸筹洗盘,出货,附源码

通达信完美高抛低吸操作,看透主力建仓、吸筹洗盘,出货,附源码高抛低吸买卖点完美买卖点是股票主图叠加的买卖点指标,专门用来短线操作看买卖点的,在趋势和资金前提满足的情况下只需要严格按照高抛低吸买卖点提示加仓加仓操作就可以完美的做好该段的波段操作;公式源码:JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) ANDCLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) ANDCLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) ANDCLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) ANDCLOSE>=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) ANDCLOSE>=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 ORVAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);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);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF; {}辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTS L,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15* REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTS L,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10* REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTS L,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5* REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTS L,17)+2*REF(YTSL,18)+REF(YTSL,20))/211, COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFF F;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000F F;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000 CC;STICKLINE(C<O,L,H,0,0),COLOR99990 0;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR00 00E5;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),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;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;DRAWTEXT(短买,REF(CLOSE,1),'←买入'),COLOR33FFCC;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;DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←抛盘'),COLORFF99FF;看透主力之主力资金动向上面也说到我们去操作一只股票是需要前提的,比如,趋势、资金、行情等等,那么什么股票能操作什么股票不能操作呢?当然是主力在拉升或者建仓极端的股票能操作,没有主力资金参与的股票尽量不要操作,主力出货的股票绝对不能参与看透主力之主力资金动向解析图公式源码:VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+ VAR6*0.96+VAR1*0.558+VAR2*0.558+VA R3*0.558)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+ VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3* 0.65)/6,21);VAR9:=EMA((VAR4*1.3+VAR5*1.3+VA R6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.6 8)/6,21);VARA:=EMA((VAR7*3+VAR8*2+VAR9 )/6*1.738,21);VARB:=REF(LOW,1);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,V ARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);资金入场: EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0 ),3)/618*VAR10;IF(资金入场>0,资金入场,0),STICK,LINETHICK2, COLOR0000FF;今量: 资金入场;A1:IF(资金入场>0,今量*1.2,0),STICK,LINETHICK5, COLOR0000FF;A2:IF(资金入场>0,今量*0.8,0),STICK,LINETHICK5, COLOR0066FF;A3:IF(资金入场>0,今量*0.6,0),STICK,LINETHICK5, COLOR0099FF;A4:IF(资金入场>0,今量*0.4,0) ,STICK,LINETHICK5,COLOR00CCFF;A5:IF(资金入场>0,今量*0.2,0) ,STICK,LINETHICK5,COLOR00FFFF;看透主力之主力控盘除了通过直接的主力资金流向之外我们也可以通过主力控盘信息反映出一些主力意图,主力控盘就是主力队一只股票的控盘程度,黄色为高度控盘,红色为绝对控盘,不显示说明主力对这只股票的控盘度还不够或者没有主力参与,这时我们就需要结合主力资金指标一起使用了公式源码:B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1,0))*2.5,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度 ,3,0 ),COLOR00FFFF;STICKLINE( 控盘程度AND 控盘程度>100,100,控盘程度 ,3,0 ),COLORRED;。

【通达信】财运亨通(高抛低吸、主力建仓、强弱分界、主力吸货)

【通达信】财运亨通(高抛低吸、主力建仓、强弱分界、主力吸货)

【通达信】财运亨通(高抛低吸、主力建仓、强弱分界、主力吸货){财运亨通+建仓}{财运亨通}VAR1K:=(2*CLOSE+HIGH+LOW+OPEN)/5;高抛: 80;VAR2K:=LLV(LOW,34);VAR3K:=HHV(HIGH,34);SK: EMA((VAR1K-VAR2K)/(VAR3K-VAR2K)*100,13)LINESTICK ,;SD: EMA(SK,3)LINETHICK3,COLORSTICK,;低吸: 20; 强弱分界:=50;VAR4K:=IF(CROSS(SK,SD),40,22);VAR5K:=IF(CROSS(SD,SK),60,78);{短卖出: VAR5K; 短买进: VAR4K;}{主力建仓-副图}VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);VAR4:=LLV(LOW,38);VAR5:=HHV(VAR3,38);VAR6:=IF(LLV(LOW,90),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VA R6;VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR9:=SMA(VAR8,13,8); 底线:0,COLOR00FFFF; 主力吸货:VAR7,COLOR0000FF;吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;风险:CEILING(SMA(VAR9,13,8)),LINETHICK3,COLORGREEN;涨跌:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2* SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK3,COLORRED;{波段炒作} 卖出线: 99;阶段卖: 90;趋势:=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);底部: 10;买入警戒: IF(趋势<=10,50,0);。

高抛低吸通达信指标公式源码

高抛低吸通达信指标公式源码

使用说明1、只操作股价在强势线上的股票;2、在支撑线和生命线上的股票要快进快出;3、生命线以下的股票尽量不要参与操作,但选股信号往往出现在生命线以下。

其实鱼与熊掌不可兼得,我们买卖股票也不可能买在最低,卖在最高,只赚操作线上最安全的一段就可以了。

三线多头排列,强势线在最上面,股价刚上穿强势线或回落在强势线上附近,就是买入良机,股价跌破强势线就是卖出的时候。

4、选股满仓信主图:强势线:MA(C,21);支撑线:MA(C,60);生命线:MA(C,120);MA5:=MA(C,3);MA10:=MA(C,7);MA20:=MA(C,21);MA60:=MA(C,60);MA120:=MA(C,120);MA250:=MA(C,250);A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,7),8)/EMA(EMA(ABS(A7),7),9);A9:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));A10:=CROSS(CLOSE,MA(CLOSE,7));A11:=C<MA5 AND MA5>MA10;A12:=CROSS(C,MA(C,21)) AND CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));A13:=CROSS(C,MA(C,21)) AND MA(C,21)<MA(C,60) AND MA(C,21)<MA(C,120);A14:=CROSS(C,MA(C,60)) ;A15:=MA(C,5)>MA(C,30) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30);A16:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2);A17:=AMO>REF(AMO,1)*2 OR REF(AMO,2)>REF(AMO,3)*2 ANDREF(AMO,1)<REF(AMO,2) AND REF(AMO,1)<AMO;A18:=A15 AND A16 AND A17;A19:=CROSS(C,MA(C,21)) ;MH:=A9 AND A10 OR A14 ;XG:=A11;低吸:=IF(C<生命线AND C<支撑线AND C<强势线,MH,A13);追:=IF(C>生命线AND C>支撑线AND C>强势线,MH,0) OR A18 OR A19;支撑买入:=IF(C<强势线AND C>生命线,MH,0);高抛:=IF(C>生命线AND C>支撑线AND C>强势线,XG,0);卖:=IF(C<生命线AND C<支撑线AND C<强势线,XG,0);A20:=A12 AND MH AND A13;DRAWTEXT(低吸,L-0.05,'↖低吸'),COLORYELLOW;DRAWTEXT(支撑买入,L-0.05,'↖支撑买入'),COLORYELLOW;DRAWTEXT(A20,L-0.45,'↖满仓'),COLORMAGENTA;DRAWTEXT(追,L-0.25,'↖追'),COLORMAGENTA;DRAWTEXT(FILTER(卖=1,5),H+0.05,' ↙卖'),COLORGREEN;DRAWTEXT(FILTER(高抛=1,5),H+0.05,' ↙高抛'),COLORGREEN;选股A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,7),8)/EMA(EMA(ABS(A7),7),9);A9:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))); A10:=CROSS(CLOSE,MA(CLOSE,7));A13:=CROSS(C,MA(C,21)) AND MA(C,21)<MA(C,60) AND MA(C,21)<MA(C,120); A14:=CROSS(C,MA(C,60)) ;MH:=A9 AND A10 OR A14 ;A12:=CROSS(C,MA(C,21)) AND CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120)); 满仓:A12 AND MH AND A13;号为出现低吸追满仓三个选股信号同时出现的信号。

通达信指标公式源码 一个高抛低吸副图

通达信指标公式源码 一个高抛低吸副图

VAR2:=(C-REF(C,1))/REF(C,1)*100;VAR3:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100; VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);J:3*VAR4-2*VAR5,COLOR00FFFF;VAR6:=J>1*REF(J,1);VAR7:=LLVBARS(L,50);VAR8:=SUM(V,VAR7);VAR9:=HHVBARS(H,50);VAR10:=SUM(V,VAR9);VAR11:=(C-REF(O,VAR9))/REF(O,VAR9)*100; VAR12:=VAR10/CAPITAL*100;VAR13:=(C-REF(O,VAR7))/REF(O,VAR7)*100; VAR14:=VAR8/CAPITAL*100;VAR15:=MA(WINNER(C),N)*100;VAR16:=EMA(VAR4,N);A2:EMA(VAR4,N),COLORFFDDCC;A3:=EMA(A2,N);A4:=EMA(A3,N);A5:=EMA(A4,N);A6:=EMA(A5,N);A7:=EMA(A6,N);VAR17:=EMA(A7,N);VAR18:=EMA(VAR17,N);VAR19:=EMA(VAR18,N);AA:=EMA(A5,N2);中期大底:LLV(J,AA),LINETHICK2,COLOR0000FF;上:=IF(MA(H,3)*1.05,30,0)*10-AA;下:=IF(MA(L,3)*0.96,30,0)*2/中期大底;中:=IF(MA(H,3)*1.05,30,0);电:=J;DRAWTEXT(CROSS(A4,A A) AND VAR11<N3,AA,'●底'),COLORFFFF00;DRAWTEXT(CROSS(A2,J) AND A2>N4,A2+4.22,'●峰'),COLOR00FFFF;DRAWTEXT(CROSS(J,A2) AND VAR6 AND A2<20 AND VAR2>9 OR A2>1*REF(A2,1) AND VAR2>4 AND A2<60,A2,'●拉升'),COLORFFFFCC;STICKLINE(J>=A2,A2,J,2,0),COLOR0000FF;STICKLINE(J<=A2,J,A2,2,0),COLOR00FF00;压力:HHV(J,60),COLOR00FFFF;支撑:=LLV(AA,13);STICKLINE(J<=中期大底AND 中-REF(中,1)>0 AND C>=O*0.99,1,88,3,0),COLOR0000FF;DRAWICON(J<=中期大底AND 中-REF(中,1)>0 AND C>=O*0.99,88,1),COLOR00FF00; STICKLINE(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),中期大底,70,3,0),COLOR00FF00;DRAWICON(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),70,1); STICKLINE(CROSS(上,下) AND C>=O,中期大底,60,2,0),COLORFF0000;B0:=MA(C,3);B01:=MA(C,4);B1:=(H+L+C)/3;B2:=HHV(B1,15);B3:=LLV(B1,15);B4:=B2-B3;B5:MA((B1-B3)/B4,2)*100,COLOR000080;B6:=HHV(B1,4*15);B7:=LLV(B1,4*15);B8:=B6-B7;B9:=MA((B1-B7)/B8,2)*100;BA:=HHV(B1,16*15);BB:=LLV(B1,16*15);BC:=BA-BB;BD:=MA((B1-BB)/BC,2)*100;顶线:=98;底线:=1;DRAWTEXT(CROSS(98,B5) AND C<H/1.03,98,'↑出局');。

通达信指标——高抛低吸主图(主图)

通达信指标——高抛低吸主图(主图)

通达信指标——高抛低吸主图(主图)EMA13 := EMA(C。

13)。

COLOR WHITE;EMA21 := EMA(C。

21)。

COLOR YELLOW;EMA34 := EMA(C。

34)。

COLOR FF00FF;EMA60 := MA(C。

60)。

COLOR FFCC66;VAR2 := (2 * CLOSE + HIGH + LOW) / 4;VAR3 := IF(YEAR。

= 2099 AND MONTH。

2.0.1);VAR4 := LLV(LOW。

5)。

VAR5 := HHV(HIGH。

4);散户 := EMA((VAR2 - VAR4) / (VAR5 - VAR4) * 100.4) * VAR3;庄家 := EMA(0.667 * REF(散户。

1) + 0.333 * 散户。

2) * VAR3;DRAWTEXT(CROSS(散户。

庄家) AND 散户 < 30.L - 0.05.'←低吸')。

COLOR LIRED;DRAWTEXT(CROSS(庄家。

散户) AND 散户。

70.H + 0.05.'←高抛')。

COLOR GREEN;DRAWICON(CROSS(散户。

庄家) AND 散户 < 30.L - 0.05.1);DRAWICON(CROSS(庄家。

散户) AND 散户。

70.H + 0.05.2);VAR9 := CLOSE - REF(CLOSE。

5);VARA := EMA(EMA(VAR9.5)。

5) /EMA(EMA(ABS(VAR9)。

5)。

5);VARC := EMA(EMA(VAR9.20)。

20) /EMA(EMA(ABS(VAR9)。

20)。

20);卖出 := IF(VARA。

0 AND CROSS(VARC。

VARA)。

90.100);DRAWICON(卖出 < 0.H + 0.05.2);买线 := EMA(CLOSE。

[通达信]好用的短线指标--高抛低吸

[通达信]好用的短线指标--高抛低吸

[通达信]好用的短线指标--高抛低吸[通达信] 好用的短线指标--高抛低吸(转)依KDJ理念编写,无未来函数,是创作最满意指标之一。

本指标线条较多,注意细看。

但主要分辨有两组,分别是短线KDJ(三细线)表现急速,强烈,特适合短速操作,高抛底吸做价差时作为快参指标;和波段KDJ(K=趋J=向二粗线)反映对后市中期内的趋向强弱,辅助短线操盘时对后市信心的帮助研判。

以下是使用提示:买卖点信号出现当天,结合“趋”“向”的趋势,考虑当天及明天的价值操作。

注:在“中轴”以上,当出现“吸”的买入信号时,如果要介入必须仔细结合其它指标,确认安全方好小心杀进!另外:黄●=关注;蓝●=观望;白●=卖;红●=买。

--建议综合参详--1.{参数:N:1 10 3 N1:1 10 3 M1:1 10 3 M2:1 10 2}2.3.波:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;4.浪:=SMA(波, 9, 1);5.幅:=SMA(浪, 3, 1);6.趋:EMA(浪, 3),COLORRED,LINETHICK2;7.向:3*浪-2*幅,COLORGREEN,LINETHICK2;8.潘:=SMA(IF(CLOSE>REF(CLOSE,1), CLOSE-REF(CLOSE,1),0),N,1);9.亮:=SMA(IF(CLOSE<=REF(CLOSE,1),ABS(CLOSE-REF(CLOSE,1)),0),N,1);10.财:=100*潘/(潘+亮);11.星:=EMA(财,3);12.极:=EMA(星,3);13.品:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;14.高:=SMA(品,M1,1);15.抛:=EMA(高,M2);16.低:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));17.吸:=(IF(CLOSE>OPEN,低*(HIGH-LOW),IF(CLOSE<OPEN,低*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-低*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-低*(HIGH-LOW),0-VOL/2)));18.副:=(吸/20)/1.15;19.图:=((副*0.55+(REF(副,1)*0.33))+(REF(副,2)*0.22));20.公:=EMA(图,2);21.式:=公/1000;22.DRAWTEXT(CROSS(星, 极) AND REF(极,1)<60, REF(极,1),'←吸'),COLORFF937F,LINETHICK1;23.DRAWTEXT(CROSS(极, 星) AND REF(星,1)>50, REF(星,1),'←抛'),COLORWHITE,LINETHICK1;24.●关注:0,CIRCLEDOT,COLOR00CFFF,LINETHICK2;25.●观望:IF((星>=极AND 抛>=REF(抛,1) AND MA(C,3)>=REF(MA(C,3),1)) OR (抛>=REF(抛,1) AND 式>0 AND MA(C,3)>=REF(MA(C,3),1)) OR(星>=极AND 式>0 AND MA(C,3)>=REF(MA(C,3),1)) OR (星>=极AND 式>0 AND 抛>=REF(抛,1)),0,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHIC K2;26.●卖:IF(星<极AND 抛<REF(抛,1) AND 式<=0,0,DRAWNULL AND MA(C,3)<REF(MA(C,3),1)),CIRCLEDOT,COLORWHITE,LINETHICK2;27.●买:IF(星>=极AND 抛>=REF(抛,1) AND 式>0 AND MA(C,3)>=REF(MA(C,3),1),0,DRAWNULL),CIRCLEDOT,COLORRED ,LINETHICK2;28.先知:3*星-2*极,COLORLIBLUE,LINETHICK1;29.转:EMA(财,3),COLOR7690FF,LINETHICK1;30.势:EMA(转,3),COLORMAGENTA,LINETHICK1;31.安:20,COLORAAAA55;32.危:80,COLORFFCCCC;33.中轴:50,COLORADABFF;。

通达信指标公式源码 高抛低吸

通达信指标公式源码 高抛低吸

DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0);N8:=STRCAT(CON2STR(YEAR,0),' 年');Y8:=STRCAT(CON2STR(MONTH,0),' 月');R8:=STRCAT(CON2STR(DAY,0),' 日');N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL);低:IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;强势: IF(CURRBARSCOUNT<=N/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;压力:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.809,DRAWNULL),COLOR00FF00;低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NOD RAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE; STICKLINE(CCI>=200 AND H>=顶点,O,C,3,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,3,0),COLORYELLOW;DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0)); DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0)); DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,强势,强势,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,4,0),COLORABABAB; STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,4,0),COLOR00FFFF; STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,警示,'0.618'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,突破,'0.500'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=1,强势,'0.382'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;VA2:=(CLOSE+HIGH+LOW)/(3);VA3:=(EMA(VA2,10));VA4:=(REF(VA3,1));SJ8:=STRCAT(STRCAT(N8,Y8), R8);STICKLINE((VA3>VA4),VA3,VA4,3,0),COLORYELLOW;STICKLINE((VA3<VA4),VA3,VA4,3,0),COLORGREEN;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);VAR1:=HHV(HIGH,25);VAR2:=LLV(LOW,25);VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20);VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);VAR5:=CROSS(VAR4,VAR3);DRAWBMP(CROSS(VAR3,VAR4),H*1.04,'SELL1');DRAWBMP(CROSS(VAR4,VAR3),L*0.99,'BUY1');DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;STICKLINE(C<O,O,C,3,0),COLORFF6600;STICKLINE(C<O,O,C,2,0),COLORFF9900;STICKLINE(C<O,O,C,1.2,0),COLORFFCC00;STICKLINE(C<O,O,C,0.2,0),COLORCYAN;STICKLINE(C>O,O,C,3,0),COLOR000099;STICKLINE(C>O,O,C,2,0),COLOR0000CC;STICKLINE(C>O,O,C,1.3,0),COLOR0000FF;STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;。

通达信指标公式源码高抛低吸主图,组合看盘副图

通达信指标公式源码高抛低吸主图,组合看盘副图

主图1:高抛低吸五日线:MA(CLOSE,5);月线:MA(CLOSE,30);半年线:MA(CLOSE,120);年线:MA(CLOSE,250);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR3:=LLV(LOW,5);VAR4:=HHV(HIGH,4);散户:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR2;DRAWTEXT(CROSS(散户,庄家) AND 散户<47,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>60,H+0.05,'←高抛'),COLOR80FF00;DRAWICON(CROSS(散户,庄家) AND 散户<47,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>60,H+0.05,2);市场成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;操盘成本:(MA(C,30)+MA(C,72))/2,COLORRED;市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;DX:=JGL_DX*100,NODRAW;买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;量差:=买-卖,NODRAW,COLORYELLOW;STICKLINE(量差<=0,CLOSE,OPEN,3,0),COLOR009900;STICKLINE(量差<=0,CLOSE,OPEN,2.2,0),COLOR00BB00;STICKLINE(量差<=0,CLOSE,OPEN,1.5,0),COLOR00DD00;STICKLINE(量差<=0,CLOSE,OPEN,0.5,0),COLOR00FF00;STICKLINE(量差>=0,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(量差>=0,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(量差>=0,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(量差>=0,CLOSE,OPEN,0.5,0),COLORCC66FF;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;ZT:=C/REF(C,1)>1.097;STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;V3V:=V/REF(V,1)>=1.9 AND C<REF(C,1);STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'↖抄底'),COLORRED;N1:=5;N2:=7;N3:=11;EM1:EMA(C,N1),COLORWHITE;EM2:EMA(C,N2),COLORRED;EM3:EMA(C,N3),COLORGREEN;TJ11:=BETWEEN(EM2,EM1,EM3);DRAWICON(TJ11=0,L,14);Z:=MA(C,120);VAR31:=(MA(C,5)-Z)/Z;VAR41:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/10 0)/(MA(AMOUNT,5)/MA(VOL,5)/100);D1:DRAWTEXT(CLOSE>Z AND REF(VAR41,1)<30 AND VAR41>REF(VAR41,1) AND REF(VAR41,1)<REF(VAR41,2) ,LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) ANDREF(VAR5,1)<REF(VAR5,2) AND VAR31<-0.3,LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR41,5) AND VAR31<-0.4,LOW ,'★B'),COLORBLUE; 组合看盘:STICKLINE(C>0,0,100,15,0),COLORAA9988;VAR21:=REF(LOW,1);VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100; VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);VAR51:=LLV(LOW,30);VAR61:=HHV(VAR41,30);VAR71:=IF(MA(CLOSE,58),1,0);VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71; VAR91:=IF(VAR81>100,100,VAR81);吸筹:STICKLINE(VAR91>-120,0,VAR91,0.8,0),COLOR00FFFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,18,10,1),COLORYELLOW;兰卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(兰卖,100,82,10,1),COLORFFFF00;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,12,6,1),COLORRED;蓝卖:=FILTER(CROSS(89,RSI),7);STICKLINE(蓝卖,100,93,6,0),COLORFF0000;粉买:FILTER(CROSS(RSI,20),7),COLORFF00FF;STICKLINE(粉买,0,6,6,0),COLORFF00FF;绿卖:=FILTER(CROSS(88,RSI),7);STICKLINE(绿卖,100,88,6,0),COLOR00FF00;{★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;}ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLORFF00FF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限+ 下限)/2,COLORYELLOW,POINTDOT,LINETHICK1;60,LINETHICK1,POINTDOT,COLORYELLOW;10,LINETHICK1,POINTDOT,COLORFF00FF;VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;VAR4001:=EMA(VAR3001,5);操盘1:=3*VAR3001-2*VAR4001;A11:=CROSS(操盘1,VAR3001) AND VAR3001<2.1 AND C>O; STICKLINE(A11,20,0,4,0),COLOR0000FF;DRAWTEXT(A11,23,'满仓'),COLORRED;VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;VAR6:=(红线在上持股> (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股- 0.01),23); DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);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;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,'短'),COLORRED ; STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,0,3,0),COLORRED;A8A:=(C+O+L+H)/4;B8B:=REF(CLOSE,A8A);处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100; DZ1:=处女线>REF(处女线,1) AND 处女线>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI修正1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;DZ:=DZ1 AND DZ2 AND DZ4;STICKLINE(DZ,0,10,4,0),COLOR00FFFF;DRAWTEXT(DZ,10,'天牛'),COLOR00FFFF;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,55);选股:(ZZLJJ>REF(ZZLJJ,1) AND REF(ZZLJJ,1)<REF(ZZLJJ,2))*25; STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;。

简单实用的高抛低吸指标通达信指标公式源码

简单实用的高抛低吸指标通达信指标公式源码
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VARC:=IF(900101<DATE AND DATE<99991230,1,0);
VARE:=REF(LOW,1)*0.ቤተ መጻሕፍቲ ባይዱ;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
卖出:IF(强弱<平均AND D<REF(D,1) ,50,DRAWNULL AND MA(C,3)<REF(MA(C,3),1)),CIRCLEDOT,LINETHICK2,COLORGREEN;
观望:IF((强弱>=平均AND D>=REF(D,1) AND MA(C,3)>=REF(MA(C,3),1)) OR (D>=REF(D,1) AND MA(C,3)>=REF(MA(C,3),1)) OR(强弱>=平均AND MA(C,3)>=REF(MA(C,3),1)) OR (强弱>=平均AND D>=REF(D,1)),50,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORLIMAGENTA;
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

EMA13:=EMA(C,13),COLORWHITE;
EMA21:=EMA(C,21),COLORYELLOW;
EMA34:=EMA(C,34),COLORFF00FF;
EMA60:=MA(C,60),COLORFFCC66;
V AR2:=(2*CLOSE+HIGH+LOW)/4;
V AR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
V AR4:=LLV(LOW,5); V AR5:=HHV(HIGH,4);
散户:=EMA((VAR2-V AR4)/(V AR5-VAR4)*100,4)*V AR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*V AR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
V AR9:=CLOSE-REF(CLOSE,5);
V ARA:=EMA(EMA(V AR9,5),5)/EMA(EMA(ABS(V AR9),5),5);
V ARC:=EMA(EMA(V AR9,20),20)/EMA(EMA(ABS(V AR9),20),20);
卖出:=IF(VARA>0 AND CROSS(V ARC,V ARA),90,100);
DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW ;
VC:=((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;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK2;
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),C OLORMAGENTA{,LINETHICK2};
逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),C OLORCY AN,{LINETHICK2};
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。

相关文档
最新文档