将此MACD指标改为选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

这是见凌见老师的微积分MACD,觉得很实用,请老师能否将由绿第一次变黄柱那做个选股公式,谢谢参数LONG:26SHORT:12MID:9M:3WXS:=(LONG-SHORT)/2;{系数}JGL_DF:=WXS*(EMA(CLOSE,SHORT)-REF(EMA(CLOSE,SHORT),1));{微分}DIF_J:EMA(JGL_DF,LONG),COLOR1234AA,LINETHICK2;{积分}DEA_G:EMA(DIF_J,MID),COLOR338833,LINETHICK2;{平滑}MACD_L:(DIF_J-DEA_G)*2,COLORA9A813,COLORSTICK;K_DF:SMA(JGL_DF,M,1)*1,COLORFEDCBA;{以下为“类KDJ”}D_DF:SMA(K_DF,M,1),COLOR13F8F9;J_DF:3*K_DF-2*D_DF,COLORF813F9;{以下显示“J_DF前差值柱”,柱子太薄时显示“十”字星}RF:=REF(J_DF,1);DJ:=ABS(J_DF-RF);MM:=(HHV(DJ,240)+LLV(DJ,240))/2;STICKLINE(J_DF>RF,J_DF,RF,2.3,0),COLOR1388D3;STICKLINE(J_DF>RF,J_DF,RF,1.0,0),COLOR13AAD3;STICKLINE(J_DF=RF AND DJ<0.2*MM,J_DF+0.1*MM,RF-0.1*MM,0.1,0),COLOR13AADD;

解答:

 WXS:=(26-12)/2;

JGL_DF:=WXS*(EMA(CLOSE,12)-REF(EMA(CLOSE,12),1));
K_DF:=SMA(JGL_DF,3,1)*1,COLORFEDCBA;
D_DF:=SMA(K_DF,3,1),COLOR13F8F9;
J_DF:=3*K_DF-2*D_DF,COLORF813F9;
RF:=REF(J_DF,1);
XG:J_DF>RF AND REF(J_DF<RF,1);

选股票看什么指标最好 >股票指标网