参量导数DF_MACD_KDJ
-
相关简介:C/C++ Code 复制内容到剪贴板 {副图名:DF_MACD_KDJ;中文名:微分MACD_KDJ}; {发明人及版权属于JIPGEMLING.见凌见}; {参数: SHORT (1,300,12); LONG (2,300,26);MID(2,300,9);MKDJ(2,100,4)}; {额外Y轴分界,值1:0.00;坐标线位置:-40;-20;0;20;50;80;100}; {环球通用版;JIPGEMLING签名版}; CBLXZ:=1{*1};
-
文章来源:择股网作者:股海网发布时间:2009-11-04浏览次数:
C/C++ Code复制内容到剪贴板
- {副图名: DF_MACD_KDJ ;中文名: 微分MACD_KDJ };
- {发明人及版权属于JIPGEMLING.见凌见 };
- {参数:SHORT(1,300,12);LONG(2,300,26);MID(2,300,9);MKDJ(2,100,4) };
- {额外Y轴分界,值1: 0.00; 坐标线位置: -40;-20;0;20;50;80;100 };
- {环球通用版; JIPGEMLING 签名版 };
- CBLXZ:=1{*1};
- MCTMC:=IF(CBLXZ,EMA((H-L),6),EMA(ABS(C-REF(C,1)),6));
- KS:=BARSCOUNT(C){*2};
- MATMA:=IF(KS,EMA(C,SHORT)-REF(EMA(C,SHORT),1),0);
- DF_JIP:=MATMA/MCTMC*100{*3};
- K_JIP:(SMA(DF_JIP,MKDJ,1))+50{*4};
- D_GEM:SMA(K_JIP,3,1);
- J_LING:2.6*K_JIP-1.6*D_GEM;
- DIF_JIP:EMA(DF_JIP*1.5,LONG),COLOR1289DF,LINETHICK2{*5};
- DEA_GEM:EMA(DIF_JIP,MID),COLORFEDCBA,LINETHICK1;
- MACD_LING:2*(DIF_JIP-DEA_GEM),COLORRED,COLORSTICK;
- J:=J_LING;RF:=REF(J_LING,1);ZJ:=ABS(J-RF){*6};
- STICKLINE(J>RF,J,RF,2.5,0),COLOR1399DD;
- STICKLINE(J>RF,J,RF,1.0,0),COLOR13BADD;
- STICKLINE(J<RF,J,RF,2.5,0),COLOR339933;
- STICKLINE(J<RF,J,RF,1.0,0),COLOR33BA33;
- STICKLINE(J<RF AND ZJ<3,J-3,RF+3,0.01,0),COLOR33BA33;
- STICKLINE(J>=RF AND ZJ<3,J+3,RF-3,0.01,0),COLOR13BADD;
- {注释};
- {*1}{构造参变量,CBLXZ=1 OR 0};
- {*2}{设首颗K线收盘价为+-0.000起算点,求曲线微分};
- {*3}{求偏导数(参量导数),并且归化为百分比坐标};
- {*4}{构造“类KDJ”或“伪KDJ”,将其平移至上半平面};
- {*5}{构造相对MACD, 乘以1.5调节MACD纵比例尺};
- {*6}{在“类KDJ”线上叠加J线的“前差值”柱,当柱体太薄时显“十”字星};