【股票指标公式下载】-【通达信】KDJ-1(副图)

合集下载

【通达信】KDJMACD二合一

【通达信】KDJMACD二合一

【通达信】KDJMACD二合一(顶底判断、大盘动向、成本突破)-指标公式源码A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←首次开盘价距金的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);{----------------------利用MACD趋势进行精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海面:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采用21日月线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进行顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------大盘动向-------------------------------}VAR1大盘:=LLV(LOW,13);VAR2大盘:=HHV(HIGH,13);VAR3大盘:=(SMA((CLOSE-VAR1大盘)/(VAR2大盘-VAR1大盘)*顶部,5,1))-顶部/2;VAR4大盘:=SMA((VAR2大盘-CLOSE)/(VAR2大盘-VAR1大盘)*顶部,5,1)-顶部/2; 大盘散户:=IF(VAR4大盘<底部,底部,VAR4大盘),COLOR408000;大盘主力:=IF(VAR3大盘<底部,底部,VAR3大盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最高获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最高获利参数;VAR2C:=(COST(99.9)-COST(1))*最高获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;高密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主力:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主力:IF(个股主力=DRAWNULL,DRAWNULL,个股主力),COLOR330088;{--------------------换手率,五日换手率辅助判断个股活跃度-------------------}换手:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤日换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}金色背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;金色背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;金色背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));金色背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫色:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));高密峰墨蓝色:=DRAWBAND(高密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝色:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿色:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主力峰红色:DRAWBAND(主力,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{-------的通达信■新宝塔线■-----原码-----------}VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARD:=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); 三平底翻金:=(REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1))AND VAR1;主力启动线:=MA(V,5),COLORFFFFFF;主力洗盘线:=MA(V,35),COLOR00FFFF;资金异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线))),COLORYELLOW;启动:=(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2)))),COLOR45AAEE;成立:=三平底翻金 AND (出击 OR 启动);买入提示:=IF(成立=1,海面*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海面线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海面线:DRAWBAND(海面,RGB(0,153,153),海面,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633; MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海面线,底部线,多空线文字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线文字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线文字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海面线文字:DRAWTEXT(CURRBARSCOUNT=1,海面,' 海面线'),COLOR999900; 底部线文字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线文字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】KDJMACD二合一(顶底判断、大盘动向、成本突破)-指标公式效果图(文档来源:若水财经社区)。

日周月KDJ副图(通达信)

日周月KDJ副图(通达信)

日周月KDJ副图(通达信)日周月KDJ副图(通达信)2010-05-24 股旁网分类:通达信公式标签: kdj月K:"KDJ.K"(89,3,3),COLOR00FF00;月D:"KDJ.D"(89,3,3),COLOR00FF00,LINETHICK2;周K:"KDJ.K"(27,3,3),COLORRED;周D:"KDJ.D"(27,3,3),COLORRED,LINETHICK2;日K:"KD.K"(5,3,3),COLORWHITE;日D:"KD.D"(5,3,3),COLORWHITE,LINETHICK2;日金叉:IF(CROSS(日K,日D),50,0),COLORFFFFFF;DRAWTEXT(日金叉,50,'日叉'),COLORFFFFFF;周金叉:IF(CROSS(周K,周D),30,0),COLORRED;DRAWTEXT(周金叉,30,'周叉'),COLORRED;月金叉:IF(CROSS(月K,月D),20,0),COLOR0080FF;DRAWTEXT(月金叉,20,'月叉'),COLORYELLOW;{KD在30以下多次金叉}JM:=CROSS("KDJ.K"(5,3,3),"KDJ.D"(5,3,3));JMCOUNT:=COUNT(JM,BARSLAST("KDJ.D"(5,3,3)>=30));JMTJ:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=1,21)=1);DRAWTEXT (JMTJ,70,'①'),COLORWHITE;JMTJ2:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=2,21)=1);DRAWTEXT (JMTJ2,70,'②'),COLORYELLOW;JMTJ3:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=3,21)=1);DRAWTEXT (JMTJ3,70,'③'),COLORYELLOW;JMTJ4:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=4,21)=1);DRAWTEXT (JMTJ4,70,'④'),COLORYELLOW;JMTJ5:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=5,21)=1);DRAWTEXT (JMTJ5,70,'⑤'),COLORYELLOW;0,COLORYELLOW;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);MACD底背离:STICKLINE(FILTER(B1>0,5),0,0.75,3,0),COLORGREEN;DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背离'),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);KDJ底背离:STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORYELLOW;DRAWTEXT(FILTER(B2>0,5),0.80,'KDJ底背离'),COLORYELLOW;LC :=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);RSI底背离:STICKLINE(FILTER(B3>0,5),0,0.5,3,0),COLORWHITE;DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背离'),COLORWHITE;2,COLORRED;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);MACD顶背离:STICKLINE(FILTER(D1>0,5),2,1.25,3,0),COLOR0066FF;DRAWTEXT(FILTER(D1>0,5),1.47,'MACD顶背离'),COLOR0066FF;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);KDJ顶背离:STICKLINE(FILTER(D2>0,5),2,1,3,0),COLORRED;DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ顶背离'),COLORRED;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);RSI顶背离:STICKLINE(FILTER(D3>0,5),2,1.5,3,0),COLORFF00FF;DRAWTEXT(FILTER(D3>0,5),1.75,'RSI顶背离'),COLORFF00FF;0,COLORFFA2AF;20,COLORFFA2AF,POINTDOT;50,COLORFFA2AF;80,COLORFFA2AF,POINTDOT;100,COLORFFA2AF;股票不是天天可做的,也没必要天天做,累的人不会赚钱,会赚钱的人不累。

通达信指标公式源码SKDJ顶底副图

通达信指标公式源码SKDJ顶底副图

{主力筹码2}CVAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;CVAR9:=SMA(CVAR8,13,8);{ M}风险:CEILING(SMA(CVAR9,13,8)),LINETHICK3,COLORRED;涨跌:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA(( C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK3,COLORYEL LOW;DRAWTEXT(CROSS(风险,涨跌) && 风险<20,风险,'预'),COLORYELLOW; DRAWICON(风险>= REF(风险,1) && REF(风险,2) > REF(风险,1),风险,1); DRAWICON(风险<= REF(风险,1) && REF(风险,1) > REF(风险,2),风险,2); {SKDJ}SKDJN:=9;SKDJM:=3;SKDJ_LOWV:=LLV(LOW,SKDJN);SKDJ_HIGHV:=HHV(HIGH,SKDJN);SKDJ_RSV:=EMA((CLOSE-SKDJ_LOWV)/(SKDJ_HIGHV-SKDJ_LOWV)*100,SKD JM);K0:EMA(SKDJ_RSV,SKDJM),COLORWHITE;D0:MA(K0,SKDJM),COLORYELLOW;乖离率:K0/D0;DRAWICON(CROSS(D0,K0),(D0+K0)/2,37);DRAWICON(CROSS(K0,D0),(D0+K0)/2,1);{背离}A1:=BARSLAST(REF(CROSS(K0,D0),1));底背离:REF(CLOSE,A1+1)>CLOSE AND K0>REF(K0,A1+1) ANDCROSS(K0,D0);DRAWLINE(A1=0,D0,底背离,D0,0),COLORRED,DOTLINE;A2:=BARSLAST(REF(CROSS(D0,K0),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D0,A2+1)>D0 ANDCROSS(D0,K0);DRAWLINE(A2=0,D0,顶背离,D0,0),COLORGREEN,DOTLINE;DRAWTEXT(底背离>0,D0-5,'底背离'),COLORRED;DRAWTEXT(顶背离>0,D0-5,'顶背离'),COLORGREEN;K60:=K0#MIN60;D60:=D0#MIN60;XG:IF((CROSS(K60,D60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 <=1) || (K60>REF(K60,1) && REF(K60,1)<=REF(K60,2)) ,15,0),COLORRED;{好} DBA:IF((CROSS(D60,K60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 >=1) || (K60<REF(K60,1) && REF(K60,1)>=REF(K60,2)) ,90,100),COLORYELLOW; DBS:IF((风险<= REF(风险,1) && REF(风险,1) > REF(风险,2)) || 风险>95,85,100),COLORGREEN;预警:IF((K0/D0 > REF(K0,1)/REF(D0,1)),10,0),COLORYELLOW;{(K0>=REF(K0,1) || K0 < REF(K0,1)) &&REF(K0,1) < REF(K0,2)};{(K0/D0 < REF(K0,1)/REF(D0,1)) || (K0/D0 > REF(K0,1)/REF(D0,1) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2)) || (CROSS(K0,D0) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2))};。

通达信经典的指标最实用 KDJ买卖副图指标

通达信经典的指标最实用 KDJ买卖副图指标

本副图用最经典的KDJ指标组合,副图摒弃花哨的画面,直观,一看就懂。

副图指标说明:一、中间柱形信号买卖:准确不漂移。

出现“B、S”提示可操作!二、上下三角信号买卖:该买卖信号有点漂移,但不能认为不好,当左侧信号出现时可认为是买卖的预警信号,当三角信号右侧闭合完整时买卖、也就是在第二天买入或卖出!三、换手率>16%时会有图标。

换手:VOL/CAPITAL*100,COLORLIBLUE,NODRAW;VAR1:=(4*CLOSE+HIGH+LOW)/4;VAR2:=EMA(EMA(EMA(VAR1,7),7),7);J:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;K:=MA(J,1);D:=MA(J,3)+0.03;Y:=0;中:60;DRAWICON(换手>16,K*3,10);DRAWICON(CROSS(D,K),中+35,8);STICKLINE(CROSS(D,K),中,中+18,1,0),COLORGREEN;DRAWICON(CROSS(K,D),中-40,7);STICKLINE(CROSS(K,D) ,中,中-18,1,0),COLORRED;{次日买入}N:=5;M:=10;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;KK:=SMA(RSV,5,1);DD:=SMA(KK,M,1);JK:=3*K-2*DD;VAR3:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);均价:=资金/量/100;渣:=(CLOSE-均价)/均价*100;金:=渣<0 AND ZXNH,COLORRED;烂铁:=渣>0 AND ZXNH,COLORRED;低买:IF(金AND RSV<VAR3-2,25,0),COLORRED,LINETHICK2;高卖:IF(烂铁AND RSV>VAR3,95,120),COLORGREEN,LINETHICK1;DRAWTEXT(CROSS(低买,20),5+REF(C,1),'←次日买')COLORLIRED;DRAWTEXT(CROSS(高卖,100),110-REF(C,1),'←次日卖')COLOR38C838;。

通达信KDJ完美指标公式

通达信KDJ完美指标公式

通达信KDJ完美指标公式通达信中的KDJ指标是由George C. Lane于1950年代开发的一种技术分析指标,该指标主要用于判断股票或其他金融品的超买超卖情况。

它基于随机指数的概念,通过计算最高价、最低价和收盘价之间的关系,从而为投资者提供购买和卖出的时机。

KDJ指标的计算公式如下:1.K值=(当日最高价-最低价)/(最高价-最低价)*1002.D值=K值的3日简单移动平均3.J值=3K值-2D值KDJ指标的计算过程相对简单,主要涉及到K值、D值和J值的计算,下面将重点对这三个值进行详细分析。

首先是K值的计算,K值是通过最高价和最低价之间的比例来计算的。

具体计算公式为:(当日最高价-最低价)/(最高价-最低价)*100。

K值的取值范围在0到100之间,一般来说,当K值超过80时,市场被认为是超买状态,投资者应该考虑卖出股票;而当K值低于20时,市场被认为是超卖状态,投资者应该考虑买入股票。

接下来是D值的计算,D值是K值的3日简单移动平均。

简单移动平均是指,将过去3日的K值相加后除以3,计算出来的结果即为D值。

可以说,D值是K值的平均值,它可以更好地反映股票价格的长期趋势。

当D值超过80时,市场被认为是超买状态,投资者应该考虑卖出股票;而当D值低于20时,市场被认为是超卖状态,投资者应该考虑买入股票。

最后是J值的计算,J值是通过3K值减去2D值得到的。

J值的计算公式为:3K值-2D值。

需要注意的是,J值是K值和D值的加权平均,它可以更好地判断股票价格的超买超卖情况。

当J值超过100时,市场被认为是超买状态,投资者应该考虑卖出股票;而当J值低于0时,市场被认为是超卖状态,投资者应该考虑买入股票。

总之,KDJ指标是一种较为常用的技术分析指标,通过计算最高价、最低价和收盘价之间的关系,可以帮助投资者判断股票或其他金融品的超买超卖情况。

在实际应用中,投资者可以根据K值、D值和J值的数值来制定买入和卖出的策略,从而提高投资的准确性和盈利能力。

通达信变态kdj指标公式(二)

通达信变态kdj指标公式(二)

通达信变态kdj指标公式(二)通达信变态kdj指标公式什么是通达信变态kdj指标公式通达信变态kdj指标公式是一种技术分析指标,用于衡量价格走势的强弱和超买超卖情况。

它是基于KDJ指标的改进版本,通过引入了一个新的公式来提高指标的准确性和敏感性。

相关公式通达信变态kdj指标公式包括以下几个关键公式: 1. RSV公式:RSV = (收盘价 - 最低价) / (最高价 - 最低价) * 100 - RSV表示当日收盘价在过去一段时间内的位置关系,其取值范围在0到100之间。

2.K值公式:K = SMA(RSV, M1)–K表示K线的数值,通过对RSV进行简单移动平均计算得出,其中M1为K值的周期参数。

3.D值公式:D = SMA(K, M2)–D表示D线的数值,通过对K值进行简单移动平均计算得出,其中M2为D值的周期参数。

4.J值公式:J = 3 * K - 2 * D–J表示J线的数值,通过对K值和D值进行线性组合得出。

具体解释与示例下面通过一个例子来解释和演示通达信变态kdj指标公式的计算过程:假设有一只股票的最高价和最低价数据如下:最高价:40, 42, 45, 48, 50 最低价:38, 40, 42, 45, 47我们以5日为周期计算kdj指标,即M1和M2都设为5。

首先计算RSV值: - 第1天:/ * 100 = - 第2天:/ * 100 = - 第3天:/ * 100 = - 第4天:/ * 100 = - 第5天:/ * 100 = 然后计算K值: - 第1天:K = ( + + + + ) / 5 = - 第2天:K = ( + + + + ) / 5 = - 第3天:K = ( + + + + ) / 5 = - 第4天:K = ( + + + + ) / 5 = - 第5天:K = ( + + + + ) / 5 = 接着计算D值: - 第1天:D = ( + + + + ) / 5 = - 第2天:D = ( + + + + ) / 5 = - 第3天:D = ( + + + + ) / 5 = - 第4天:D = ( + + + + ) / 5 = - 第5天:D = ( + + + + ) / 5 = 最后计算J值: - 第1天:J = 3 * - 2 * = - 第2天:J = 3 * - 2 * = - 第3天:J = 3 * - 2 * = - 第4天:J = 3 * - 2 * = - 第5天:J = 3 * - 2 * =通过以上计算,我们得到了KDJ指标的数值序列,用于衡量价格走势的强弱和超买超卖情况。

【股票指标公式下载】-【通达信】行业指数(副图)

【股票指标公式下载】-【通达信】行业指数(副图)
G5:=G3>REF(G3,1);
DRAWICON(G4 AND G5,军工MA5,1);
【通达信】行业指数(副图)-指标公式效果图
下载次数: 0
2010-12-11 11:43
下载(65.59 KB)
2010-12-11 11:41
(文档来源:若水财经社区)
A2:=EXPMA(CCC1,50);
A3:=A1/A2;
A4:=REF(A3,1)<REF(A3,2);
A5:=A3>REF(A3,1);
DRAWICON(A4 AND A5,房地MA5,1);
B:='煤炭行业';
CCC2:=HORCALC(B,103,0,3);
煤炭MA5:MA(CCC2,5);
B1:=EXPMA(CCC2,12);
B2:=EXPMA(CCC2,50);
B3:=B1/B2;
B4:=REF(B3,1)<REF(B3,2);
B5:=B3>REF(B3,1);
DRAWICON(B4 AND B5,煤炭MA5,1);
D:='有色金属';
CCC4:=HORCALC(D,103,0,3);
DRAWICON(F4 AND F5,酒店旅游MA5,1);
G:='军工航天';
CCC7:=G,103,0,3);
军工MA5:MA(CCC7,5),COLORMAGENTA;
G1:=EXPMA(CCC7,12);
G2:=EXPMA(CCC7,50);
G3:=G1/G2;
G4:=REF(G3,1)<REF(G3,2);
有色MA5:MA(CCC4,5),COLORRED;

通达信指标公式源码 组合智能KDJ 副图源码

通达信指标公式源码 组合智能KDJ 副图源码

源码:VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);VAR4:=LLV(LOW,38);VAR5:=HHV(VAR3,38);VAR6:=IF(LLV(LOW,90),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR9:=SMA(VAR8,13,8);底线:0,COLOR00FFFF;主力吸货:VAR7,COLOR0000FF;吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);抄底:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1; STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;抄底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;抄底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;STICKLINE(乖离<-6,5,3,2,1),COLORRED;抄底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;VARA1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VARA2:=DMA(CLOSE,VOL/MA(VOL,31)/31);VARA3:=(CLOSE-VARA1)/VARA1*100<-10;VARA4:=(VARA1-VARA2)/VARA2*100<-16;VARA5:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;VARA6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOS E,1)),3,1)*100>16;VARA7:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27)); VARA8:=INDEXC;VARA9:=MA(VARA8,6);VARA:=MA(VARA8,24);VARB:=MA(VARA8,32);VARC:=VARB>VARA9*1.11 AND VARA>VARA9*1.095;SSS:=(VARA3 AND VARA4 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 OR VARA5 AND VARA6 AND CROSS(VARA7,79) OR VARC ANDCLOSE/COST(8)<=0.8)*100;抄底王:SSS>0,COLORWHITE,LINETHICK1;STICKLINE(SSS>0,0,6,6,0),COLORWHITE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),COLORWHITE;D:SMA(K,3,1),COLORYELLOW;J:3*K-2*D,COLORMAGENTA;底: 20,LINETHICK1 ,POINTDOT, COLOR77AA1A;入顶: 80,LINETHICK2 ,POINTDOT , COLOR9966FF;大顶: 100,LINETHICK2 ,POINTDOT ,COLOR22A6E6;顶轴:105, POINTDOT,LINETHICK2;上轴:90, POINTDOT,LINETHICK2;下轴:10, POINTDOT,LINETHICK2;底轴:0, POINTDOT,LINETHICK2;抢钱轴:-10, POINTDOT,LINETHICK2;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;A01:=DYNAINFO(5); IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;IF(D<REF(D,1),D,DRAWNULL),COLORCYAN,LINETHICK1;IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;IF(D>REF(D,1),D,DRAWNULL),COLORYELLOW,LINETHICK1;IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;小底:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,5,0),1),COLORYELLOW;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100 ;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100;D1:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+1 00;大底:=(A<15 AND REF(A,1)<15 AND D1<18 AND B>REF(B,1) AND CROSS(B,A) AND B>D1AND (REF(B,1)<5 OR REF(B,2)<5 ) AND (D1>=A OR REF( B,1)<1 )); STICKLINE( 大底,0,10,11,0 ),COLORRED;DRAWTEXT(大底,11,'大底')COLORFF00FF;VARFN:=LOW*0.9;VAR11N:=EMA(VARFN,30);VAR12N:=CLOSE-REF(CLOSE,1);VAR13N:=MAX(VAR12N,0);VAR14N:=ABS(VAR12N);VAR15N:=SMA(VAR13N,7,1)/SMA(VAR14N,7,1)*100;VAR16N:=SMA(VAR13N,13,1)/SMA(VAR14N,13,1)*100;VAR17N:=BARSCOUNT(CLOSE);VAR18N:=SMA(MAX(VAR12N,0),6,1)/SMA(ABS(VAR12N),6,1)*100;VAR19N:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+10 0;VAR1AN:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1BN:=SMA((SMA(VAR1AN,4,1)-50)*2,3,1);VAR1CN:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*10 0;VAR1DN:=SMA(VAR1CN,4,1);VAR1EN:=SMA(VAR1DN,3,1);VAR1FN:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20N:=VAR18N<=25 AND VAR19N<-95 AND VAR1FN>20 ANDVAR1BN<-30 AND VAR1EN<30AND VAR11N-CLOSE>=-0.25 AND VAR15N<22 AND VAR16N<28 ANDVAR17N>50;STICKLINE(VAR20N,0,70,1,0),COLORBLUE,LINETHICK3 ;DRAWTEXT(VAR20N,80,'★青龙出海!'),COLORBLUE; HP:=HHV(H,9);LP:=LLV(L,9);R:=(C-LP)/(HP-LP)*100;M:=MA(R,40);S:=STD(R,40);高:=M+2*S;中:=M;低:=M-2*S;【高】: 高,COLOR0099FF;【中】: 中,POINTDOT,COLORWHITE;【低】: 低,COLOR00FF00;。

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