江恩轮中轮指标,解决高抛低吸通达信指标公式源码
通达信指标公式源码高抛低吸主图,组合看盘副图
主图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;。
通达信指标公式源码高抛低吸主图,组合看盘副图
主图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;。
通达信指标公式源码一个超准的顶底指标公式{高抛低吸}
一个超准的顶底指标公式{高抛低吸},绝对好用(副图、说明、有未来)对选股没影响。
说明:1看图出信时,按提示买卖。
非常简单。
{高抛低吸}强弱分界: 50, POINTDOT;VAR2:=IF(MONTH<12,1,1);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK2,COLORRED; 散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK1,COLORFF9933; DRAWTEXT(CROSS(主力,散户) AND 主力<20,20,'低点'),LINETHICK2,COLORWHITE;DRAWICON(CROSS(主力,散户) AND 主力<20,21,1);DRAWTEXT(CROSS(主力,67) AND 散户<主力,58,'冲高'),LINETHICK2,COLOR9966FF;DRAWICON(CROSS(主力,67) AND 散户<主力,70,2);DRAWTEXT(CROSS(主力,76) AND 散户<主力,68,'小心被套'),LINETHICK2,COLOR669900;DRAWICON(CROSS(主力,76) AND 散户<主力,80,2);DRAWTEXT(CROSS(散户,主力) AND 散户>78,80,'卖出'),COLORWHITE; DRAWTEXT(CROSS(主力,散户) AND 主力<16,45,'买入'),COLORFFFF00;买入脉冲:IF(CROSS(主力,散户) AND 主力<16,40,5),LINETHICK2,COLORYELLOW;卖出脉冲:IF(CROSS(散户,主力) AND 散户>78,75,90),LINETHICK2,COLORGREEN;BB1:=WINNER(CLOSE)*100;BB2:=100-BB1;BB3:=ABS(BB1-BB2);。
江恩百分比 通达信指标公式源码
N:=6000;高:=REFDATE(HHV(H,N),DATE);低:=REFDATE(LLV(L,N),DATE);H11:=高-(高-低)*1.000;H10:=高-(高-低)*0.875;H9:=高-(高-低)*0.750;H8:=高-(高-低)*0.666;H7:=高-(高-低)*0.625;H6:=高-(高-低)*0.500;H5:=高-(高-低)*0.375;H4:=高-(高-低)*0.333;H3:=高-(高-低)*0.250;H2:=高-(高-低)*0.125;H1:=高-(高-低)*0.000;STICKLINE(CURRBARSCOUNT=18,高,高,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H1,H1,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H2,H2,120,1),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H1,'0.000'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H2,' 0.125'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H3,' 0.250'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H4,' 0.333'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H5,' 0.375'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H6,' 0.500'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H7,' 0.625'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H8,' 0.666'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H9,' 0.750'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H10,' 0.875'),COLOR656565; DRAWTEXT(CURRBARSCOUNT=10,H11,' 1.000'),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H3,H3,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H4,H4,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H6,H6,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H5,H5,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,低,低,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H7,H7,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H8,H8,120,1),COLOR656565;STICKLINE(CURRBARSCOUNT=18,H9,H9,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H10,H10,120,1),COLOR656565; STICKLINE(CURRBARSCOUNT=18,H11,H11,120,1),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,高*0.99,CON2STR(高,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H11,CON2STR(H11,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H10,CON2STR(H10,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H9,CON2STR(H9,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H8,CON2STR(H8,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H1,CON2STR(H1,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H2,CON2STR(H2,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H3,CON2STR(H3,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H6,CON2STR(H6,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H4,CON2STR(H4,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H5,CON2STR(H5,2)),COLOR656565; DRAWTEXT(CURRBARSCOUNT=35,H7,CON2STR(H7,2)),COLOR656565;低点:=800;高点:=800;时间:=1;价格:=1;调点:=1;PURC:=CONST(FINDHIGH(H,0,高点*10,1));PLZ:=CONST(BARSLAST(PURC=H))+1;顶X:=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));QQT:=CONST(FINDLOW(L,0,低点*10,1));PLL:=CONST(BARSLAST(QQT=L))+1;低X:=CONST(IF(PLL=1,L,REF(L,PLL-1)));ATM:=时间=2 OR 时间=2;QTM:=时间=1 OR 时间=1;BTM:=时间=1 OR 时间=1 OR 时间=1;AAZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.809),DRAWNULL); ABZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.5),DRAWNULL); ACZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.618),DRAWNULL); ADZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.382),DRAWNULL); AEZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*0.236),DRAWNULL); AFZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1),DRAWNULL); AGZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.809),DRAWNULL); AHZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.5),DRAWNULL); AIZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.618),DRAWNULL); AJZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.382),DRAWNULL); AKZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1.236),DRAWNULL); ALZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2),DRAWNULL); AMZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.236),DRAWNULL); ANZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.382),DRAWNULL); AOZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.5),DRAWNULL);APZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.618),DRAWNULL);AQZ:=IF(ATM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2.809),DRAWNULL);ARZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*3),DRAWNULL);ASZ:=IF(BTM,ROUND(IF(PLZ>PLL,PLZ,PLL)),DRAWNULL);HXCS1:=CURRBARSCOUNT=AAZ OR CURRBARSCOUNT=ABZ OR CURRBARSCOUNT=ACZ OR CURRBARSCOUNT=ADZOR CURRBARSCOUNT=AEZ OR CURRBARSCOUNT=AFZ OR CURRBARSCOUNT=AGZ OR CURRBARSCOUNT=AHZOR CURRBARSCOUNT=AIZ OR CURRBARSCOUNT=AJZ OR CURRBARSCOUNT=AKZ OR CURRBARSCOUNT=ALZOR CURRBARSCOUNT=AMZ OR CURRBARSCOUNT=ANZ OR CURRBARSCOUNT=AOZ OR CURRBARSCOUNT=APZ OR CURRBARSCOUNT=AQZ OR CURRBARSCOUNT=ARZ OR CURRBARSCOUNT=ASZ;QAZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1/8),DRAWNULL);QBZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2/8),DRAWNULL);QCZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*3/8),DRAWNULL);QDZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*4/3),DRAWNULL);QEZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*5/8),DRAWNULL);QGZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*6/8),DRAWNULL);QHZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*7/8),DRAWNULL);QIZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*9/8),DRAWNULL);QJZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*1/3),DRAWNULL);QKZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*2/3),DRAWNULL);QMZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*10/8),DRAWNULL);QNZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*11/8),DRAWNULL);QOZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*5/3),DRAWNULL);QPZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*13/8),DRAWNULL);QQZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*14/8),DRAWNULL);QRZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*15/8),DRAWNULL);QSZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*17/8),DRAWNULL);QTZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*18/8),DRAWNULL);QUZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*19/8),DRAWNULL);QVZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*21/8),DRAWNULL);QWZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*22/8),DRAWNULL);QXZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*23/8),DRAWNULL);QYZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*7/3),DRAWNULL);QZZ:=IF(QTM,ROUND(IF(PLZ>PLL,PLZ,PLL)-ABS(PLZ-PLL)*8/3),DRAWNULL);HXCS2:=CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QCZOR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QJZOR CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QRZOR CURRBARSCOUNT=QSZ OR CURRBARSCOUNT=QTZ OR CURRBARSCOUNT=QUZ OR CURRBARSCOUNT=QVZ OR CURRBARSCOUNT=QWZ OR CURRBARSCOUNT=QXZ OR CURRBARSCOUNT=QYZ OR CURRBARSCOUNT=QZZ ;STICKLINE(HXCS1 OR HXCS2 ,顶X,低X,0,0),COLOR656565;DRAWKLINE(H,O,L,C);天XX线:=IF(价格=5 AND 时间=5,DRAWNULL,顶X),COLOR656565;地XX线:=IF(价格=5 AND 时间=5,DRAWNULL,低X),COLOR656565;顶点:天XX线,COLOR656565;底点:地XX线,COLOR656565;DRAWTEXT(CURRBARSCOUNT=QAZ OR CURRBARSCOUNT=QIZ OR CURRBARSCOUNT=QSZ,顶X*0.98,'1/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QBZ OR CURRBARSCOUNT=QMZ OR CURRBARSCOUNT=QTZ,顶X*0.98,'2/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QCZ OR CURRBARSCOUNT=QNZ OR CURRBARSCOUNT=QUZ,顶X*0.98,'3/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QEZ OR CURRBARSCOUNT=QPZ OR CURRBARSCOUNT=QVZ,顶X*0.98,'5/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QGZ OR CURRBARSCOUNT=QQZ OR CURRBARSCOUNT=QWZ,顶X*0.98,'6/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QHZ OR CURRBARSCOUNT=QRZ OR CURRBARSCOUNT=QXZ,顶X*0.98,'7/8')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QJZ OR CURRBARSCOUNT=QDZ OR CURRBARSCOUNT=QYZ,顶X*0.98,'1/3')COLOR656565;DRAWTEXT(CURRBARSCOUNT=QKZ OR CURRBARSCOUNT=QOZ OR CURRBARSCOUNT=QZZ,顶X*0.98,'2/3')COLOR656565;STICKLINE(C>=O,H,L,0,0),COLORFFFFFF;STICKLINE(C>=O,C,O,3,1),COLORFFFFFF;STICKLINE(C<O,H,L,0,0),COLORB6B600;STICKLINE(C<O,C,O,3,1),COLORB6B600;。
通达信指标公式源码 高抛低吸
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;。
通达信指标公式源码 高抛低吸特色指标
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;。
江恩轮中轮指标源码
江恩轮中轮指标源码江恩轮中轮是诸多江恩爱好者喜欢的工具。
也是对江恩全部理论的概括和总结,将市场上的短、中和长期循环进行统一的描述,并将市场的价格点位融合到江恩的几何角度中,能很好的帮助投资来分析时间和价位的关系。
以下是笔者在网络中找到的指标源码,分享给喜欢江恩轮中轮的朋友!INPUT:最近天(30,1,360);当前月:=FRACPART(ROUND(当前日期/100)/100)*100;月:=MONTH;日:=DAY;N:=if(sysparam(1)=datacount,最近天,datacount-sysparam(1)+1);HH:=HHV(HIGH,N);LL:=LLV(LOW,N);VN:=N;IF VN>DATACOUNT THENVN=DATACOUNT+1;FOR I=DATACOUNT DOWNTO DATACOUNT-VN+1 DO BEGINHH[I]:=HH[DATACOUNT];LL[I]:=LL[DATACOUNT];END;TMP:=SETLBOUND(hh,DATACOUNT-VN+1);TMP:=SETLBOUND(ll,DATACOUNT-VN+1);KKH:=BARSLAST(H=HH);KKL:=BARSLAST(L=LL);N低日:=STRTONUM(NUMTOSTR(REF(DATE,KKL),0));N高日:=STRTONUM(NUMTOSTR(REF(DATE,KKH),0));多空:=IF(N低日>N高日,2,1),LINETHICK0;DATE1:=IF(多空=1,N低日,N高日);LLOW:=ref(LOW,BARSLAST(DATE1=DATE));H1:=STRTONUM(NUMTOSTR(hh,2));L1:=STRTONUM(NUMTOSTR(LLOW,2));VERTLINE(DATE=DATE1),COLORFFAAAA,LINETHICK1;{DRAWTEXT(DATE=DATE1,SYSPARAM(4)*0.95,'起\n \n\n测\n \n点'),COLORFFFFFF;}IF 多空=1 THEN BEGINPARTLINE(DATE>N低日,L1),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.042),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.083),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.125),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.167),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.208),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.25),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.292),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.33),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.375),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.417),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.458),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.5),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.542),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.583),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.625),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.667),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.708),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.75),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.792),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.833),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.875),COLORMAGENTA;PARTLINE(DATE>N低日,L1*1.917),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*1.958),COLORFFFF99,LINEDOT;PARTLINE(DATE>N低日,L1*2),COLORMAGENTA;DRAWTEXT(SYSPARAM(3)=BARPOS,L1+0.002,NUMTOSTR(L 1,2)+' 0 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.042+0.002,NUMT OSTR(L1*1.042,2)+' 15 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.083+0.002,NUMT OSTR(L1*1.083,2)+' 30 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.125+0.002,NUMT OSTR(L1*1.125,2)+' 45 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.167+0.002,NUMT OSTR(L1*1.167,2)+' 60 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.208+0.002,NUMT OSTR(L1*1.208,2)+' 75 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.25+0.002,NUMTO STR(L1*1.25,2)+' 90 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.292+0.002,NUMT OSTR(L1*1.292,2)+' 105 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.33+0.002,NUMTO STR(L1*1.33,2)+' 120 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.375+0.002,NUMT OSTR(L1*1.375,2)+' 135 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.417+0.002,NUMT OSTR(L1*1.417,2)+' 150 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.458+0.002,NUMT OSTR(L1*1.458,2)+' 165 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.5+0.002,NUMTOS TR(L1*1.5,2)+' 180 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.542+0.002,NUMT OSTR(L1*1.542,2)+' 195 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.583+0.002,NUMT OSTR(L1*1.583,2)+' 210 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.625+0.002,NUMT OSTR(L1*1.625,2)+' 225 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.667+0.002,NUMT OSTR(L1*1.667,2)+' 240 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.708+0.002,NUMT OSTR(L1*1.708,2)+' 255 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.75+0.002,NUMTO STR(L1*1.75,2)+' 270 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.792+0.002,NUMT OSTR(L1*1.792,2)+' 285 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.833+0.002,NUMT OSTR(L1*1.833,2)+' 290 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.875+0.002,NUMT OSTR(L1*1.875,2)+' 315 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.917+0.002,NUMT OSTR(L1*1.917,2)+' 330 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.958+0.002,NUMT OSTR(L1*1.958,2)+' 345 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,L1*2+0.002,NUMTOSTR (L1*2,2)+' 360 '),COLORWHITE,ALIGN2;END;ELSE BEGINPARTLINE(DATE>N高日,H1),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.042),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.083),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.125),COLORMAGENTA;H1*0.167),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.208),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.25),COLORMAGENTA;PARTLINE(DATE>N高日,H1-H1*0.292),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.33),COLORMAGENTA;PARTLINE(DATE>N高日,H1-H1*0.375),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.417),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.458),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.5),COLORMAGENTA;PARTLINE(DATE>N高日,H1-H1*0.542),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.583),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.625),COLORMAGENTA;PARTLINE(DATE>N高日,H1-H1*0.667),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.708),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.75),COLORMAGENTA;PARTLINE(DATE>N高日,H1-H1*0.792),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.833),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.875),COLORMAGENTA;H1*0.917),COLORFFFF99,LINEDOT;PARTLINE(DATE>N高日,H1-H1*0.958),COLORMAGENTA;DRAWTEXT(SYSPARAM(3)=BARPOS,H1+0.002,NUMTOSTR( H1-H1*0.042,2)+' 0 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.042+0.002,NUMTOSTR(H1-H1*0.042,2)+' 15 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.083+0.002,NUMTOSTR(H1-H1*0.083,2)+' 30 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.125+0.002,NUMTOSTR(H1-H1*0.125,2)+' 45 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.167+0.002,NUMTOSTR(H1-H1*0.167,2)+' 60 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.208+0.002,NUMTOSTR(H1-H1*0.208,2)+' 75 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.25+0.002,NUMTOSTR(H1-H1*0.25,2)+' 90 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.292+0.002,NUMTOSTR(H1-H1*0.292,2)+' 105 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.33+0.002,NUMTOSTR(H1-H1*0.33,2)+' 120 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-'),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.417+0.002,NUMTOSTR(H1-H1*0.417,2)+' 150 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.458+0.002,NUMTOSTR(H1-H1*0.458,2)+' 165 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.5+0.002,NUMTOSTR(H1-H1*0.5,2)+' 180 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.542+0.002,NUMTOSTR(H1-H1*0.542,2)+' 195 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.583+0.002,NUMTOSTR(H1-H1*0.583,2)+' 210 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.625+0.002,NUMTOSTR(H1-H1*0.625,2)+' 225 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.667+0.002,NUMTOSTR(H1-H1*0.667,2)+' 240 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.708+0.002,NUMTOSTR(H1-H1*0.708,2)+' 255 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.75+0.002,NUMTOSTR(H1-H1*0.75,2)+' 270 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-'),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.833+0.002,NUMTOSTR(H1-H1*0.833,2)+' 300 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.875+0.002,NUMTOSTR(H1-H1*0.875,2)+' 315 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.917+0.002,NUMTOSTR(H1-H1*0.917,2)+' 330 '),COLORWHITE,ALIGN2;DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.958+0.002,NUMTOSTR(H1-H1*0.958,2)+' 345 '),COLORWHITE,ALIGN2;END;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='1',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21、*25\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='2',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='3',c,NUMTOSTR(当前月,0)+'月转折日:6、15、*20、21\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='4',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='5',c,NUMTOSTR(当前月,0)+'月转折日:6、*12、15、21\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='6',c,NUMTOSTR(当前月,0)+'月转折日:6、*14、21\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='7',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*19、23\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='8',c,NUMTOSTR(当前月,0)+'月转折日:*6、8、15、23\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='9',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*18、23\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='10',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='11',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*28\n \n \n \n '),COLOR00FFFF,ALIGN4;DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='12',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),COLOR00FFFF,ALIGN4;。
通达信指标公式源码 通达信看量高抛低吸指标公式
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,6 0,IF(PERIOD=5,TOTALFZNUM,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:IF((CURRBARSCOUNT=1 ANDDYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW; STICKLINE((CURRBARSCOUNT=1 ANDDYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);{警示牌设置}警示牌:=1;高:=REFDATE(HHV(H,180),DATE)*1.05;低:=REFDATE(LLV(L,180),DATE)*0.95;A11:=MA(C,18);A12:=MA(C,50);A13:=MA(C,89);A14:=IF((MA(C,180)<=高AND MA(C,180)>=低) ORC>=MA(C,180),MA(C,180),DRAWNULL);{—————股性判断—————}牛股:=ISLASTBAR AND A11>A12 AND A12>A13 ANDA13>IF(A14=DRAWNULL,0,A14) AND C>A11 OR ISLASTBAR ANDA11>A12 AND C>=A11;猴股:=ISLASTBAR AND A11>A12 AND C<A11 ;熊股:=ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 ANDC<A13,A13<A14 AND C<A14) OR ISLASTBAR AND A11<A12; DRAWGBK(警示牌=1 AND 牛股,0,0,0,'牛股',0);DRAWGBK(警示牌=1 AND 猴股,0,0,0,'猴股',0);DRAWGBK(警示牌=1 AND 熊股,0,0,0,'熊股',0);ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100;ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZCMZL:=MA(ZLCM+SHCM,13);ZZLJJ:=EMA(ZZLKP,89);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1);T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0);T6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 );T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ ANDZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.46,TS1,0,'★监控:主力增仓'),COLOR8080FF; DRAWTEXT_FIX(T2,0.46,TS2,0,'★监控:主力减仓'),COLOR8080FF; DRAWTEXT_FIX(T3,0.46,TS3,0,'★监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4,0.46,TS4,0,'★监控:主力回补'),COLOR8080FF; DRAWTEXT_FIX(T5,0.46,TS5,0,'★监控:主力出逃'),COLORGREEN;DRAWTEXT_FIX(T6,0.66,TS6,0,'★决策:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7,0.66,TS7,0,'★决策:卖出风险'),COLORCYAN; DRAWTEXT_FIX(T8,0.66,TS8,0,'★决策:追涨博弈'),COLOR8080FF; DRAWTEXT_FIX(T9,0.66,TS9,0,'★决策:稳健持股'),COLOR8080FF; DRAWTEXT_FIX(T10,0.66,TS10,0,'★决策:盘跌减仓'),COLORWHITE; DRAWTEXT_FIX(T11,0.66,TS11,0,'★决策:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.26,TS12,0,'☆特别:筑底散兵坑'),COLOR66FFCC; DRAWTEXT_FIX(T13,0.26,TS13,0,'☆特别:铸顶风险区'),COLORCYAN; DRAWTEXT_FIX(T14,0.26,TS14,0,'☆特别:穿越主力'),COLOR8080FF; DRAWTEXT_FIX(T15,0.26,TS15,0,'☆特别:穿越主力'),COLORYELLOW; DRAWTEXT_FIX(T16,0.26,TS16,0,'☆特别:穿越散户 '),COLORGREEN; DRAWTEXT_FIX(T17,0.26,TS17,0,'☆特别:全盘穿越 '),COLOR3399FF; DRAWTEXT_FIX(T18,0.26,TS18,0,'☆特别:神秘黑洞'),COLOR9966FF;VAR01:=(2*C+H+L)/4;VAR02:=LLV(LOW,34);VAR03:=HHV(HIGH,34);AA:EMA((VAR01-VAR02)/(VAR03-VAR02)*100,5)NODRAW,COLORRED; BB:EMA(AA,5)NODRAW,COLOR00FFFF;STICKLINE(AA<20,2,7,1,1)NODRAW,COLORFF00FF;STICKLINE(AA>80,92,97,1,1)NODRAW,COLOR00FFFF;DRAWICON(AA>=BB,105,38);DRAWICON(BB>AA,105,39);M2:=EMA(C,2);M18:=EMA(C,18);买点:=IF(CROSS(M18,M2),5,0* 10000);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;Q:=EMA(VOL,13);Y:=EMA(AMOUNT,13);S:=((Y /Q) / 100);X:=(((CLOSE -S) / S) * 100);F:=((X < (0)) AND ZXNH);XQ:=F AND RSVV<VARB2-2;突击:买点AND XQ ,STICK,COLOR000000;DRAWICON(突击>0,突击,23);AX:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926); AXMA:=MA(AX,5);ANA:=PLOYLINE(CROSS(AX,AXMA),AXMA);ANB:=PLOYLINE(CROSS(AXMA,AX),AXMA);MD:=CROSS(AX,AXMA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND AXMA<=0)OR ((AXMA<=-45 OR CROSS(AXMA,-45)) AND (ANB<-60OR LLV("KDJ.J",3)<=-49) AND ANB>0));AQZ:=COUNT(CROSS(AX,AXMA),ANA<REF(ANA,5) ANDANB>REF(ANB,5));阴买:MD AND AQZ AND C<O,STICK,COLOR000000;DRAWICON(阴买>0,阴买,34);短期0:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));中期0:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));中长期0:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));长期0:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));四线归一:短期0<6 AND 中期0<6 AND 中长期0<6 AND 长期0<6,STICK,COLOR000000;DRAWICON(四线归一>0,四线归一,5);短转点:(((SMA(C,2,1)-(SMA(L,21,2)*0.95))*10)<2 ANDSMA(C,2,1)>REF(SMA(C,2,1),1) ANDREF(SMA(C,2,1),2)>REF(SMA(C,2,1),1))=1,STICK,COLOR000000; DRAWICON(短转点>0,短转点,23);。
高抛低吸通达信指标公式源码
使用说明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,'↑出局');。
超牛的通达信分时T高抛低吸指标公式
超牛的通达信分时T高抛低吸指标公式通达信分时T高抛低吸指标是通过分析分时图中的成交量、价格走势和趋势判断来确定高抛低吸的时机,帮助投资者进行短线交易的技术指标。
下面是该指标的详细公式及解析。
1.高抛低吸指标的计算公式:-高抛区成交量指标(HAAV)=C-O-高抛区价格指标(HAPA)=C/HAAV-低吸区成交量指标(PAAV)=O-C-低吸区价格指标(PAPA)=C/PAAV其中,C表示当前价格,O表示开盘价格。
2.解析高抛低吸指标:-高抛区成交量指标(HAAV):通过计算当前价格与开盘价格之差,来衡量高位抛压的大小。
如果HAAV值越大,说明高抛压力越大,市场情绪较为悲观,投资者应注意高抛风险。
-高抛区价格指标(HAPA):通过计算当前价格与HAAV值之比,来衡量高位抛压对价格的影响。
如果HAPA值越大,说明高抛压力越大,市场情绪较为悲观,投资者应注意高抛风险。
-低吸区成交量指标(PAAV):通过计算开盘价格与当前价格之差,来衡量低位吸筹的大小。
如果PAAV值越大,说明低吸买盘越活跃,市场情绪较为乐观,投资者有机会逢低吸纳。
-低吸区价格指标(PAPA):通过计算当前价格与PAAV值之比,来衡量低位吸筹对价格的影响。
如果PAPA值越大,说明低吸买盘越活跃,市场情绪较为乐观,投资者有机会逢低吸纳。
3.使用通达信分时T高抛低吸指标的注意事项:-结合其他技术指标:高抛低吸指标只是一种短线交易工具,投资者还需要结合其他技术指标和基本面分析,判断股票的实际投资价值,减少盲目交易的风险。
-确定适合的交易品种:不同股票的交易特点和市场情况不同,适合的交易品种也会有所差异,投资者需要根据自己的风险承受能力和交易经验,选择合适的交易品种。
-严格控制风险:短线交易风险较大,投资者在使用高抛低吸指标进行短线操作时,要严格控制风险,设定止损位和目标盈利位,及时止损止盈,避免长时间持仓造成的风险。
总结:通达信分时T高抛低吸指标是一种用于短线交易的技术指标,通过计算成交量、价格走势和趋势判断,为投资者提供高抛低吸的时机,帮助投资者在短时间内获取较高的收益。
通达信指标公式源码极品低吸高抛 源码
DRAWBAND(EMA(C,12),RGB(150,10,10),EMA(C,50),RGB(0,100,100));重心:(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);DRAWTEXT(CROSS(SJ,ZJ) AND LAST(SJ<ZJ,5,1)AND SJ<30,L-0.1,'←低吸'),COLOR00FF00;DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.1,'←高抛'),COLOR0077FF;Q5:MA(C,4);压力:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1);低吸:CROSS(SJ,ZJ) AND LAST(SJ<ZJ,5,1) AND SJ<30,COLORRED,NODRAW; DRAWICON(低吸,REF(CLOSE,1)*0.96,24);极品绝底:=IF(L<=LLV(L,100),-10,0);低吸极品:IF(低吸AND 极品绝底=-10,-1,0),COLORRED,NODRAW;蛟龙出宫:REF(低吸,1) AND C>1.02*MA(C,4)AND CROSS(C,MA(C,4)) AND C>压力AND C>O,COLORRED,NODRAW;{压撑线N 1 100 5}N:=5;Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),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 E1<E2));H2:=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),COLORRED,NODRAW;T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1),COLORRED,NODRAW;R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1),COLORRED,NODRAW;T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1),COLORRED,NODRAW;DRAWICON(U1,REF(CLOSE,1)*0.98,13);DRAWICON(S1,H*1.01,25);DRAWICON(U2,REF(CLOSE,1)*0.98,13);DRAWICON(S2,H*1.01,25);NOTEXT1:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED;NOTEXT2:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;下降压力:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW,LINETHICK2;。
江恩百分比通达信指标公式源码
江恩百分比通达信指标公式源码下面是江恩百分比通达信指标的源码实现:```indicator("Gann Percentages", overlay=true)//获取最高价和最低价的价差range = high - low//计算波动幅度上限和下限up1 = high + range * 0.125up2 = high + range * 0.25up3 = high + range * 0.5down1 = low - range * 0.125down2 = low - range * 0.25down3 = low - range * 0.5//绘制波动幅度上限和下限的水平线plot(up1, color=color.orange, linewidth=1)plot(up2, color=color.yellow, linewidth=1)plot(up3, color=color.green, linewidth=1)plot(down1, color=color.orange, linewidth=1) plot(down2, color=color.yellow, linewidth=1)plot(down3, color=color.green, linewidth=1)```该源码使用Pine Script编写,可以在TradingView上使用。
它首先计算最高价和最低价的价差,然后根据不同的波动幅度,计算出波动幅度的上限和下限。
最后,使用`plot`函数一一绘制出这些水平线。
这个指标的作用是用来观察价格在不同波动幅度上下限之间的运动情况,可以帮助投资者更好地判断市场的买入和卖出时机。
当价格触及或穿过上限时,可能意味着市场上涨势头强劲,投资者可以考虑卖出或持有;当价格触及或穿过下限时,可能意味着市场下跌趋势较大,投资者可以考虑买入或持有。
通达信源码指标公式江恩角度线
CURR:=CURRBARSCOUNT;TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));GTT:=CONST(BARSLAST(TCH=H))+1;SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));BCL:=CONST(FINDLOW(L,0,LDAY*10,1));DTT:=CONST(BARSLAST(BCL=L))+1;SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));L斜率:=下角度/IF(C<300,1000,10);最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));H斜率:=上角度/IF(C<300,1000,10);IM68:=((SX跌H-SX涨L)/8-(SX跌H-SX涨L)/8);GH跌X:=SX跌H+(SX跌H-SX涨L)/8; DL涨X:=SX涨L-(SX跌H-SX涨L)/8; GTHT:=IF(DTT>GTT,DTT,GTT); R:=ABS(GTT-DTT);DRAWBAND(IF(CURR<=GTHT,SX跌H,DRAWNULL),RGB(0,120,120),SX跌H,RGB(8,168,168));DRAWBAND(IF(CURR<=GTHT,SX涨L,DRAWNULL),RGB(0,120,120),SX涨L,RGB(0,160,160));STICKLINE(CURRBARSCOUNT=GTT,SX跌H,SX涨L,0,0),COLOR556600; STICKLINE(CURRBARSCOUNT=DTT,SX跌H,SX涨L,0,0),COLOR666666; STICKLINE(CURRBARSCOUNT=1,SX跌H,SX涨L,0,0),COLOR556600; DRAWKLINE(H,O,L,C);天线:=SX跌H; 地线:=SX涨L;K:=(天线-地线)/(IF(跌点>=涨点,跌点,涨点)-IF(跌点>=涨点,涨点,跌点));上斜线:=IF(地线+CONST(L斜率*4.00)*最低>=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL);上斜线0:=IF(地线+CONST(L斜率*2.00)*最低>=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL);上斜线1:=IF(地线+CONST(L斜率*1.5)*最低>=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL);上斜线2:=IF(地线+CONST(L斜率*1.00)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);上斜线3:=IF(地线+CONST(L斜率*0.70)*最低>=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL);上斜线4:=IF(地线+CONST(L斜率*0.50)*最低>=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL);上斜线5:=IF(地线+CONST(L斜率*0.365)*最低>=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);上斜线7:=IF(地线+CONST(L斜率*0.165)*最低>=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);上斜线8:=IF(地线+CONST(L斜率*0.123)*最低>=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);上斜线9:=IF(地线+CONST(L斜率*0.06)*最低>=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL);上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,DOTLINE; 上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,DOTLINE; 上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,DOTLINE; 上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,DOTLINE; 上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,DOTLINE; 上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL),COLOR00DDDD,DOTLINE; 上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,DOTLINE; 上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,DOTLINE; 上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,DOTLINE; 上0:IF(上斜线0<=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,DOTLINE; 上:IF(上斜线<=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,DOTLINE;下斜线:=IF(天线-CONST(H斜率*4.00)*最高<=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL);下斜线0:=IF(天线-CONST(H斜率*2.00)*最高<=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL);下斜线1:=IF(天线-CONST(H斜率*1.500)*最高<=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);下斜线3:=IF(天线-CONST(H斜率*0.70)*最高<=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL);下斜线4:=IF(天线-CONST(H斜率*0.50)*最高<=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL);下斜线5:=IF(天线-CONST(H斜率*0.365)*最高<=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);下斜线7:=IF(天线-CONST(H斜率*0.165)*最高<=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);下斜线8:=IF(天线-CONST(H斜率*0.123)*最高<=天线,天线-CONST(H斜率*0.123)*最高,DRAWNULL);下斜线9:=IF(天线-CONST(H斜率*0.06)*最高<=天线,天线-CONST(H斜率*0.06)*最高,DRAWNULL);下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORAAAAAA,DOTLINE; 下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORAAAAAA,DOTLINE; 下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORAAAAAA,DOTLINE; 下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORAAAAAA,DOTLINE; 下5:IF(下斜线5>=地线*0.95,下斜线5,DRAWNULL),COLORAAAAAA,DOTLINE;下4:IF(下斜线4>=地线*0.95,下斜线4,DRAWNULL),COLOR00DDDD,DOTLINE; 下3:IF(下斜线3>=地线*0.95,下斜线3,DRAWNULL),COLORAAAAAA,DOTLINE; 下2:IF(下斜线2>=地线*0.95,下斜线2,DRAWNULL),COLORAAAAAA,DOTLINE; 下1:IF(下斜线1>=地线*0.95,下斜线1,DRAWNULL),COLORAAAAAA,DOTLINE; 下0:IF(下斜线0>=地线*0.95,下斜线0,DRAWNULL),COLORAAAAAA,DOTLINE; 下:IF(下斜线>=地线*0.95,下斜线,DRAWNULL),COLORAAAAAA,DOTLINE;。