散户看盘指标通达信指标公式源码
主力散户筹码通达信指标公式源码
主⼒散户筹码通达信指标公式源码主⼒散户筹码指标,主⼒散户动向⼀⽬了然弱势区:20,LINETHICK2,COLORGREEN;强弱分⽔岭:50,LINETHICK2,COLORWHITE;强势区:80,LINETHICK2,COLORRED;风险区:95,LINETHICK2,COLORLICYAN;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);⽀撑:REFDATE(V2,DATE),COLORYELLOW,NODRAW;阻⼒:REFDATE(V3,DATE),COLORYELLOW,NODRAW;主⼒:EMA(100*(CLOSE-LLV (LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;⾛势: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),COLORYELLOW;主⼒筹码集中度:WINNER(C)*100 ,COLORLIMAGENTA,LINETHICK1;M:=60;散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGREEN,LINETHICK1,DOTLINE;散户筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORLICYAN,LINETHICK1,DOTLINE;主⼒换⼿率:100*VOL/CAPITAL,NODRAW,COLORLIGREEN;主⼒筹码估算:EMA(WINNER(CLOSE)*70,3),NODRAW;散户筹码估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢⽐率:散户筹码估算/(主⼒筹码估算+散户筹码估算)*100,NODRAW;主⼒控盘⽐率:主⼒筹码估算/(主⼒筹码估算+散户筹码估算)*100,NODRAW;市场总量:=MA(主⼒筹码估算+散户筹码估算,13),COLORGREEN,LINETHICK2;筹码总量:=IF(市场总量>REF(市场总量,1),市场总量,DRAWNULL),COLORWHITE,LINETHICK2;DRAWRECTREL(0,0,220,650,RGB(01,000,000));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.0,0, '主⼒:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.0,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.0,0,主⼒),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.08,0, '⾛势:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.08,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.08,0,⾛势),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.24,0, '主⼒换⼿率:'),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.24,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.24,0,主⼒换⼿率),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.32,0,'散户:'),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.32,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.32,0,散户),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.40,0,'⽀撑:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.40,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.40,0,⽀撑),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.48,0,'阻⼒:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.48,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.48,0,阻⼒),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.0,0, '主⼒筹码集中度:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.0,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.0,0,主⼒筹码集中度),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.08,0, '主⼒控盘⽐率:'),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.08,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.08,0,主⼒控盘⽐率),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.16,0, '主⼒筹码估算:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.16,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.16,0,主⼒筹码估算),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.32,0, '散户套牢⽐率:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.32,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.32,0,散户套牢⽐率),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.40,0, '散户筹码集中度:'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.40,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.40,0,散户筹码集中度),COLORGREEN;。
通达信一眼看穿主力指标公式
通达信一眼看穿主力指标公式换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORYELLOW;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,9.6,9.8),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,4.8,5),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);换手率:VOL/CAPITAL*100,LINETHICK0;机构量:=ZLCJ,COLORMAGENTA,NODRAW;大户量:=DHCJ,COLORYELLOW,NODRAW; 中户量:=ZHCJ,COLORLIBLUE,NODRAW; 散户量:=SHCJ,COLORBLUE,NODRAW;。
通达信指标公式源码高抛低吸主图,组合看盘副图
主图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;。
通达信指标公式源码大全
通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。
LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。
Color=FF00FF。
LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。
LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。
LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/VAR3;VAR5:=(Close-LLV(Low,528))/(HHV(High,528)-LLV(Low,528))*100;VAR6:=(Close-LLV(Close,530))/(HHV(Close,530)-LLV(Close,530))*100;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。
【指标公式源码下载】通达信机构,主力,散户资金构成指标公式【多空、减仓、反弹、寻底、换手、均量】
通达信机构,主力,散户资金构成指标公式【多空、减仓、反弹、寻底、换手、均量】V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。
「精选指标」通达信公式优化散户综合操盘精华主图指标公式
「精选指标」通达信公式优化散户综合操盘精华主图指标公式通达信指标公式今天通达信公式优化散户综合操盘精华主图指标公式使用说明这里发的指标公式均是通达信电脑版软件,很多指标公式手机软件有的可能不能用注意:指标只是参考,决策靠自己。
有需要的可以研究研究,为自己的操作做一个参考。
章鱼哥VAR1:=AMOUNT/VOL/100;XL1:=((LLV(LOW,3)=LLV(LOW,60)) AND ((CLOSE/REF(CLOSE,1)) >= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21))/EMA(CLOSE,21))* 100);XL3:=CROSS(XL2,(0 - 20));指导:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK2,COLORWHITE;界:MA(CLOSE,27),LINETHICK2,COLORYELLOW;DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点');DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部');X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))* 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);STICKLINE(CLOSE>OPEN,H,LOW,0,0 ),COLOR9933FF;STICKLINE(OPEN>=CLOSE,L,HIGH,0,0 ),COLOR66CC33;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR009900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0),COLOR00CC00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF 00;D RAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进'),COLORYELLOW;LC:=REF(CLOSE,1);STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0 ),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))* 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;AA:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);A0:=(AH-AL)/40;B1:=L-A0;AA8:=CLOSE/REF(CLOSE,1)>=1.09;STICKLINE((AA+0)/34=FLOOR((AA+0)/34),B1,B1-1.5*A0,2,0),COLORF00FF0;VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;STICKLINE(AA8,OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE(AA8,LOW,HIGH,0.5 ,0 ),COLORYELLOW;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←吸'),COLORRED;BBB1:=MA(C,1);B2:=SMA(SMA(SMA(BBB1,2,1),2,1),2,1),COLORRED;SMA2:=MA(B2,2);MA1:=MA(CLOSE,8);MA2:=MA(CLOSE,13);VARB1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));WWWCHNMONEYCOM:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));买:DRAWTEXT(CROSS(VARB1,VAR3) AND B2>SMA2,(LOW * 0.97),'←⊙买'),COLORRED;温馨提示如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。
通达信指标公式源码 主力散户筹码集中度 副图源码
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA,LI NETHICK2;主力筹码集中度:WINNER(C)*100 ,COLORRED,LINETHICK2;散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,COLORGREEN,LINETHICK2;强弱分界: 80,COLORYELLOW;趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);XIAO1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);XIAO2:=SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1);XIAO3:=EMA(XIAO2,10);XIAO4:=LLV(LOW,33);XIAO5:=EMA(IF(LOW<=XIAO4,XIAO3,0),3);STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,3,0 ),COLOR000055;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.6,0 ),COLOR000077;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.1,0 ),COLOR000099;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,1.5,0 ),COLOR0000BB;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.9,0 ),COLOR0000DD;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.3,0 ),COLOR0000FF;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,3,0),COLOR005500;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.6,0),COLOR007700;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.1,0),COLOR009900;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,1.5,0),COLOR00BB00;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.9,0),COLOR00DD00;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.3,0),COLOR00FF00;私募进场:IF(XIAO5>REF(XIAO5,1),XIAO5,0),COLORRED,NODRAW;私募洗盘:IF(XIAO5<REF(XIAO5,1),XIAO5,0),COLORGREEN,NODRAW;B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;B2:=SMA(B1,9,1)+100;B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;观望期:=IF(B6>60,B6-60,0);T1:=STICKLINE(REF(观望期,1)<观望期,观望期,REF(观望期,1),9,0),COLORYELLOW; T2:=STICKLINE(REF(观望期,1)>观望期,观望期,REF(观望期,1),9,0),COLORCYAN;TAI1:=MA(C,1)/MA(REF(C,13),8)*100;TAI2:=MA(FORCAST(TAI1,21),3);TAI3:=REF(TAI1,1);TAI4:=REF(TAI1,2);邰1:=LLV(LOW,8);邰2:=HHV(HIGH,13);股市黑客:= EMA((CLOSE-邰1)/(邰2-邰1)*100,5),COLORRED;升跌临界:= EMA(0.667*REF(股市黑客,1)+0.333*股市黑客,2),COLORGREEN;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFF-DEA)*2;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF> REF(DIFF,A1+1) AND CROSS(DIFF,DEA); 顶背离:=REF(CLOSE,A2+1)< CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);①:IF(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04 AND观望期=0 AND C> REF(C,1),1),44,0),LINETHICK3,COLORCYAN;②:IF(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 ANDTAI3> TAI4,34,0),LINETHICK3,COLOR0000FF;③:IF(REF(股市黑客,1)<=13&&CROSS(股市黑客,升跌临界)&&REF(MA(C,55),1)>REF (MA(C,55),2)&& (VAR19 OR REF(VAR19,1)),23,0),COLORBLUE;④:IF(底背离,57,0),LINETHICK3,COLORBROWN;DRAWTEXT(底背离,54,'←MACD 底背离'),COLORWHITE;DRAWICON(REF(股市黑客,1)<=13&&CROSS(股市黑客,升跌临界)&&REF(MA(C,55),1)>REF(MA(C,55),2)&&(VAR19 OR REF(VAR19,1)),25,23);DRAWICON(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04AND 观望期=0 AND C>REF(C,1),1),46,23);DRAWICON(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 ANDTAI3>TAI4,36,23),COLORYELLOW;。
通达信指标公式源码 机构,大户,中户,散户资金流副图 资金出入一目了然 贴图
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。
通达信指标公式源码散户的佳音:能量指标公式
散户的佳音:能量指标公式V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:(MA((CLOSE - HY1) * 28,2))*0.1;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA;大户能量:(大户-均量)COLORYELLOW;中户能量:(中户-均量)COLORLIBLUE;散户能量:(散户-均量)COLORBLUE;0,POINTDOT;DRAWTEXT(ISLASTBAR,多空趋势,'多空趋势');DRAWTEXT(ISLASTBAR,主力能量,'1主力能量'),COLORRED;DRAWTEXT(ISLASTBAR,大户能量,'2大户能量'),COLORYELLOW;DRAWTEXT(ISLASTBAR,中户能量,'3中户能量'),COLORLICYAN;DRAWTEXT(ISLASTBAR,散户能量,'4散户能量'),COLORBLUE;DRAWICON(CROSS(主力能量,散户能量),散户能量,1);IF(主力能量>大户能量AND 大户能量>中户能量AND 中户能量>散户能量,0,DRAWNULL),COLORRED, LINETHICK2;{涨幅:DYNAINFO(14)*100,NODRAW ;N3:=BARSLAST(CROSS(C,MA(C,20)));N4:=BARSLAST(CROSS(MA(C,20),C));黑马跟踪:IF(N3<N4 AND 散户能量<0,N3+1,0);IF(黑马跟踪>0 ,黑马跟踪,DRAWNULL),COLORRED, LINETHICK2;}买点:=散户能量<0 AND 中户能量<0 AND 多空趋势>0 AND (CROSS(主力能量,大户能量) OR CROSS(主力能量,0));DRAWICON(买点,多空趋势,13);DRAWTEXT(主力能量>0 AND 大户能量>0 AND 中户能量<0 AND 散户能量<0 AND CROSS(多空趋势,0),0,'←好买点');。
【】【】【】【】【】通达信散户线指标公式源码(附图)
【】【】【】【】【】通达信散户线指标公式源码(附图)通达信散户线指标公式源码如下:M:=60;N:=30;散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)) COLORGRAY;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;STICKLINE(C>0,85,85,6,1),COLORMAGENTA;操作指导线:60,COLORRED;VAR1:=1;VAR2:=REF(LOW,1)*VAR1;VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;VAR5:=LLV(LOW,30)*VAR1;VAR6:=HHV(VAR4,30)*VAR1;VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7*VAR1;VAR9:=IF(VAR8>100,100,VAR8)*VAR1;吸筹:STICKLINE(VAR9>-150,0,VAR9,6,1),COLORMAGENTA;趋势线:=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) COLORRED LINETHICK2;STICKLINE(C>0,10,10,6,1),COLORFFAA00;见底信号:=10;买点准备:IF(趋势线<=10,30,0) COLORYELLOW;买入时间:IF(CROSS(趋势线,见底信号),50,0) COLORGREEN;VAR84:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);底部动量:EMA(IF(L<=LLV(L,30),VAR84,0),3)*10,COLORA0A0FF;起动:EMA(J,6),COLORRED LINETHICK1;抄底'逃顶'指标{-----------------}EMA250:MA(C,250),COLORRED;EMA6:MA(C,6),COLORRED LINETHICK2;EMA18:MA(C,18),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;EMA144:MA(C,144),COLORGREEN;EMA288:MA(C,288),COLORBLUE;中线【买入】:=COUNT(CLOSE<EMA18,5)=4 ANDCLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14:=MA(VAR12,13);VAR15:=LLV(LOW,34);VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;多空指标{--------------------------------}DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);DEA:=EMA(DIFF,9);MA(C,8),COLORWHITE;MA(C,21),COLORYELLOW;多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED;STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORWHITE;STICKLINE(DIFF<=DEA,H,L,0,0),COLORWHITE;DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'B'),COLORYELLOW;DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'S'),COLORGREEN;DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MA(C,8),COLORWHITE;MA(C,21),COLORYELLOW;多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORYELLOW;STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORYELLOW;DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'B'),COLORWHITE;DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'S'),COLORGREEN;指标原理该指标给出散户线值,通过观察散户值增减变化可以了解主力的操作行为。
资金动能 看清机构主力散户资金量能通达信指标公式源码
牛指标分享第四弹:资金动能看清机构主力散户资金量能V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 28,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0), COLORWHITE;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),24,22+多空趋势,1.5,0),COLORYELLOW;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,22,22.3),' 多空'),COLORWHITE;红操盘:MA(C,3),COLORRED,NODRAW;白减仓:MA(C,3),COLORWHITE,NODRAW;黄反抽:MA(C,3),COLORYELLOW,NODRAW;绿寻底:MA(C,3),COLORGREEN,NODRAW;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORLIGREEN;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORLIRED;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),' 机构'),COLORMAGENTA; 操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORLIGREEN;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORLIRED;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,9.6,9.8),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORLIGREEN;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORLIRED;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,4.8,5),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORLIGREEN;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORLIRED;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}DHCJ:=JZ*ABS(大户能量);{9日换手偏离均量值换算当日成交量}ZHCJ:=JZ*ABS(中户能量);{17日换手偏离均量值换算当日成交量}SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;机构量:=ZLCJ,COLORMAGENTA,NODRAW;大户量:=DHCJ,COLORYELLOW,NODRAW;中户量:=ZHCJ,COLORLIBLUE,NODRAW;散户量:=SHCJ,COLORBLUE,NODRAW;。
通达信sc指标源码公式
通达信sc指标源码公式
通达信是国内广泛使用的股票分析软件,其中的SC指标(Sufficiency Counter,简称SC)是一种技术指标,它用于衡量股票的价格走势是否具有足够的能量进行持续的上涨或下跌。
SC指标的源码公式如下:
变量定义:
```
Hn: N个交易日内的最高价
Ln: N个交易日内的最低价
Cn: N个交易日的收盘价
```
首先,计算最高价的波动范围(HnRange):
```
HnRange = Hn - Ref(Hn, 1)
```
然后,计算最低价的波动范围(LnRange):
```
LnRange = Ln - Ref(Ln, 1)
```
接下来,计算SC指标的数值(SCValue):
```
SCValue = Sum(Max(0, Hn - Cn), M) / Sum(Max(0, HnRange - LnRange), M) * 100
```
其中,M为周期参数,通常为14或者20,表示计算SC指标的周期长度。
以上就是通达信中SC指标的源码公式,通过计算最高价和最低价的波动范围,以及收盘价与最高价之间的差异,衡量股票市场的供需关系和技术指标的变化。
需要注意的是,以上公式是通达信中的标准实现,不同的软件或平台可能会有略微不同的实现方式。
如果需要在其他软件或平台上使用SC指标,可以参考通达信的源码公式进行相应调整。
【】【】【】【】【】通达信散户线指标公式源码(附图)
【】【】【】【】【】通达信散户线指标公式源码(附图)展开全文通达信散户线指标公式源码如下:M:=60;N:=30;散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)) COLORGRAY;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;STICKLINE(C>0,85,85,6,1),COLORMAGENTA;操作指导线:60,COLORRED;VAR1:=1;VAR2:=REF(LOW,1)*VAR1;VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;VAR5:=LLV(LOW,30)*VAR1;VAR6:=HHV(VAR4,30)*VAR1;VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7*VAR1;VAR9:=IF(VAR8>100,100,VAR8)*VAR1;吸筹:STICKLINE(VAR9>-150,0,VAR9,6,1),COLORMAGENTA;趋势线:=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) COLORRED LINETHICK2;STICKLINE(C>0,10,10,6,1),COLORFFAA00;见底信号:=10;买点准备:IF(趋势线<=10,30,0) COLORYELLOW;买入时间:IF(CROSS(趋势线,见底信号),50,0) COLORGREEN;VAR84:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);底部动量:EMA(IF(L<=LLV(L,30),VAR84,0),3)*10,COLORA0A0FF;起动:EMA(J,6),COLORRED LINETHICK1;抄底'逃顶'指标{-----------------}EMA250:MA(C,250),COLORRED;EMA6:MA(C,6),COLORRED LINETHICK2;EMA18:MA(C,18),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;EMA144:MA(C,144),COLORGREEN;EMA288:MA(C,288),COLORBLUE;中线【买入】:=COUNT(CLOSE<EMA18,5)=4 ANDCLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR14:=MA(VAR12,13);VAR15:=LLV(LOW,34);VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;多空指标{--------------------------------}DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);DEA:=EMA(DIFF,9);MA(C,8),COLORWHITE;MA(C,21),COLORYELLOW;多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED;STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORWHITE;STICKLINE(DIFF<=DEA,H,L,0,0),COLORWHITE;DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'B'),COLORYELLOW;DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'S'),COLORGREEN;DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MA(C,8),COLORWHITE;MA(C,21),COLORYELLOW;多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORYELLOW;STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORYELLOW;DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'B'),COLORWHITE;DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'S'),COLORGREEN;指标原理该指标给出散户线值,通过观察散户值增减变化可以了解主力的操作行为。
主力 大户 中户 散户资金流 通达信指标公式源码
主力能量指标:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量),NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),'主力'),COLORRED;大户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;大户能量:(大户-均量),NODRAW;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),'大户'),COLORYELLOW;中户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;中户能量:(中户-均量),NODRAW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),'中户'),COLORMAGENTA;散户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;散户能量:(散户-均量),NODRAW;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),'散户'),COLORGREEN;。
通达信sc指标源码公式
通达信sc指标源码公式【原创实用版】目录1.通达信 sc 指标的概述2.通达信 sc 指标的计算公式3.通达信 sc 指标的应用法则4.通达信 sc 指标的实战案例正文一、通达信 sc 指标的概述通达信 sc 指标是一种用于判断股票趋势的指标,其全称为“顺势指标”,主要通过分析股价的高低点和收盘价之间的关系,来判断股票的趋势和转折点。
通达信 sc 指标是一种非常实用的技术分析工具,可以帮助投资者更好地把握市场机会,提高投资收益。
二、通达信 sc 指标的计算公式通达信 sc 指标的计算公式如下:sc = (close - low) / (high - low) * 100其中,close 表示收盘价,low 表示最低价,high 表示最高价。
计算结果的取值范围在 0-100 之间,一般认为,当 sc 指标值超过 75 时,股票处于超买状态,可能会出现下跌;当 sc 指标值低于 25 时,股票处于超卖状态,可能会出现上涨。
三、通达信 sc 指标的应用法则通达信 sc 指标的应用法则主要有以下几点:1.当 sc 指标值超过 75 时,股票处于超买状态,可能会出现下跌,投资者可以考虑卖出股票。
2.当 sc 指标值低于 25 时,股票处于超卖状态,可能会出现上涨,投资者可以考虑买入股票。
3.当 sc 指标值在 25-75 之间时,股票处于正常波动状态,投资者可以持有股票,或者根据其他技术指标做出买卖决策。
四、通达信 sc 指标的实战案例下面我们通过一个实战案例,来看一下通达信 sc 指标是如何帮助我们判断股票趋势的。
假设我们关注的股票是 600000,以下是该股票近期的通达信 sc 指标图:从图中可以看出,该股票的通达信 sc 指标值在 2 月份时低于 25,说明股票处于超卖状态,可能会出现上涨。
果然,在 3 月份,该股票出现了一波上涨行情,最高价达到了 10 元以上。
随后,该股票的通达信 sc 指标值在 4 月份超过了 75,说明股票处于超买状态,可能会出现下跌。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
自用kdj,MACD看透主力,散户看盘,均线变色自动画线指标,该指标自己使用1年以上,没有未来函数非常稳定,东西是不错的,就看怎样使用了。
指标只是辅助,具体交易要结合大盘和个股情况来看。
{四哥趋势-变色均线和趋势画线主图}{ N:1,100,8 P:0,1,0}ZGD:=HHV(H,60);ZGD2:=CONST(ZGD);ZDD:=LLV(L,60);ZDD2:=CONST(ZDD);GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);KOH:=L>REF(H,1);KOL:=H<REF(L,1);HIF:=L>REF(H,BARSLAST(KOH)+1);NHIF:=L<=REF(H,BARSLAST(KOH)+1);LIF:=H<REF(L,BARSLAST(KOL)+1);NLIF:=H>=REF(L,BARSLAST(KOL)+1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORF FFFFF;底部:=LLV(HIGH,30),COLOR00FF00;AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);GDCS23:=CONST(REF(HIGH,DINGBUTS1-1)); DDCS23:=CONST(REF(L,DDTS2-1));XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1);XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2);BCG:=SUM(XG1,0); BCD:=SUM(XDD,0);今日阻力:REF(明日阻力, 1),NODRAW;今日支撑:REF(明日支撑, 1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGRE EN,LINETHICK2;低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE, LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23));低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),低点支撑));ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR5555 55,LINETHICK2;M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY:=BACKSET(AAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS:=IF(CCC,CURRBARSCOUNT,0);DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);上缺口:=P=0 AND HIF AND BARSLAST(KOH)<BARSLAST(NHIF)AND BARSLAST(HIF)<BARSLAST(NHIF);HG:=IF(上缺口,REF(H,BARSLAST(KOH)+1),DRAWNULL);STICKLINE(上缺口,HG,HG*1.001,10,0),COLOR888888;下缺口:=P=0 AND LIF AND BARSLAST(KOL)<BARSLAST(NLIF) AND BARSLAST(LIF)<BARSLAST(NLIF);LG:=IF(下缺口,REF(L,BARSLAST(KOL)+1),DRAWNULL);STICKLINE(下缺口,LG,LG*0.999,10,0),COLOR888888;高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRE D,LINETHICK1;AA11:=REF(L,M)=LLV(L,2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;STICKLINE(XG2,GDCS23,GDCS23,0.5,1),COLORWHITE;STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW;STICKLINE(XD2,DDCS23,DDCS23,0.5,1),COLORMAGENTA;STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN;STICKLINE(ISLASTBAR AND C>=今日阻力,今日阻力,今日阻力,10,1),COLOR0000FF; STICKLINE(ISLASTBAR AND C<今日阻力,今日阻力,今日阻力,10,1),COLOR00FF00; STICKLINE(ISLASTBAR AND C>=今日支撑,今日支撑,今日支撑,10,1),COLORFF00FF; STICKLINE(ISLASTBAR AND C<今日支撑,今日支撑,今日支撑,10,1),COLORFF8800; STICKLINE(ISLASTBAR ,压力位,压力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR ,底部位,底部位,100,0),COLOR00FF00;MA5:MA(C,5),COLORWHITE;MA30:MA(C,30);DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK3;A:=(MA5>多空线);IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;A1:=(MA5<多空线);IF(A1,多空线,DRAWNULL),COLORWHITE;V1:=CLOSE*VOL;V2:=EMA(V1,13)/EMA(VOL,13);CYS:=(EMA((CLOSE-V2)/V2,1)*100);AAAA:=CYS;MIDD:=MA(CYS,20);CCCC:=MIDD+0.85*STD(CYS,10);TM6:=AAAA>CCCC;IF(TM6,MA5,DRAWNULL),COLORRED,LINETHICK2;{天翼KDJ指标}N:=9;M1:=3;M2:=3;低吸区:20,LINETHICK0;STICKLINE(C,19,20,1,0),COLORGREEN;风险区:80,LINETHICK0;STICKLINE(C,79,80,1,0),COLORYELLOW;RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;K:SMA(RSV,M1,1),COLORRED,LINETHICK3;D:SMA(K,M2,1),COLORWHITE,LINETHICK3;J:3*K-2*D,COLORMAGENTA;DRAWBAND(K,RGB(255,0,0),D,DRAWNULL);吸筹:D<20,COLORYELLOW;STICKLINE(D<20,D,20,2,0),COLORYELLOW;高抛:D>80,COLORDA8E3D;STICKLINE(D>80,D,80,2,0),COLORDA8E3D;DRAWTEXT(FILTER(吸筹=1,15),35,'吸筹'),COLORDA8E3D;DRAWTEXT(FILTER(高抛=1,15),95,'高抛'),COLORYELLOW;DRAWICON(CROSS(K,D),D*0.98,1);DRAWICON(CROSS(D,K),K*1.02,2);{MACD看透主力}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);OBV2:=EMA(OBV1,3)-MA(OBV1,9);OBV3:=EMA(IF(OBV2>0,OBV2,0),3);MAC3:=MA(C,3);SHORT:=12;LONG:=26;MID:=9;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;DEA:EMA(DIF,MID)COLORFF9900 ;主力买:IF(DIF>REF(DIF,1),DIF,0),NODRAW;主力卖:IF(DIF<REF(DIF,1),DIF,0),NODRAW;MACD:=(DIF-DEA)*2;STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,1.2,0),COLORYELLOW; 吸:=MACD<0 AND MACD>REF(MACD,1);拉:=MACD>0 AND MACD>REF(MACD,1);派:=MACD>0 AND MACD<REF(MACD,1);落:=MACD<0 AND MACD<REF(MACD,1);STICKLINE(吸,0,MACD,0.5,0),COLORRED;STICKLINE(拉,0,MACD,0.5,0),COLORRED;STICKLINE(派,0,MACD,0.5,0),COLORGREEN;STICKLINE(落,0,MACD,0.5,0),COLORWHITE;主力吸筹:吸,COLORYELLOW,NODRAW;主力拉升:拉,COLORRED,NODRAW;主力派送:派,COLORGREEN,NODRAW;主力砸盘:落,COLORFFAA00,NODRAW;JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,COLORWHITE,NODRAW;二次金叉:CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,COLORRED,NODRAW;STICKLINE(低位金叉,0,0.08,2,0),COLORFF00FF;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));A2:=BARSLAST(REF(CROSS(DEA,DIF),1));底背离:REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) ANDCROSS(DIF,DEA),COLORGREEN,NODRAW;STICKLINE(底背离,0,0.03,2,0),COLOR00FF00;DRAWTEXT(底背离,0.12,'底背离'),COLORFF00FF;双金叉:低位金叉AND 二次金叉,COLORFF00FF,NODRAW;三全项:低位金叉AND 二次金叉AND 底背离,COLORWHITE ,NODRAW;顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF); STICKLINE(二次金叉,0,0.06,2,0),COLORFFCC00;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2;{散户看盘}散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,1); 卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,2);。