大智慧多周期MACD叠加指标公式

DRAWGBKLAst(C,STRIP(RGB(40,100,100),RGB(100,80,60),0));

DIF_15F:="macd.DIFF#MIN15";

DEA_15F:="MacD.DEA#MIN15";

MACD_15F:="MACD.MACD#MIN15";

DIF_30F:="MACD.DIFF#MIN30";

DEA_30F:="MACD.DEA#MIN30";

MACD_30F:="MACD.MACD#MIN30";

DIF_60F:="MACD.DIFF#MIN60";

DEA_60F:="MACD.DEA#MIN60";

MACD_60F:="MACD.MACD#MIN60";

DIF_R:="MACD.DIFF#DAY";

DEA_R:="MACD.DEA#DAY";

MACD_R:="MACD.MACD#DAY";

DP_MDF15:=STKINDI('SZ000001','MACD.MACD#MIN15',26,12,9);

DP_MDF30:=STKINDI('SZ000001','MACD.MACD#MIN30',26,12,9);

DP_MDF60:=STKINDI('SZ000001','MACD.MACD#MIN60',26,12,9);

DP_MDR:=STKINDI('SZ000001','MACD.MACD#DAY',26,12,9);

DPMACD:=STKINDI('SZ000001','MACD.MACD',26,12,9);

DpdiF:=STKINDI('SZ000001','MACD.DIFF',26,12,9);

DPDEA:=STKINDI('SZ0001','MACD.DEA',26,12,9);

DIF:EMA(C,12)-EMA(C,26),COLOR0000FF,LINETHICK0;

DEA:EMA(DIF,9),COLORFFF000,LINETHICK0;

MACD:2*DIF-2*DEA, COLORSTICK;

小DIF1:IF(DATATYPE=7,DIF_15F,IF(DATATYPE=8,DIF_30F,IF(DATATYPE=9,DIF_60F,DIF))),LINETHICK0;

小DEA1:IF(DATATYPE=7,DEA_15F,IF(DATATYPE=8,DEA_30F,IF(DATATYPE=9,DEA_60F,DEA))),LINETHICK0;

小DPMD1:IF(DATATYPE=7,DP_MDF15,IF(DATATYPE=8,DP_MDF30,IF(DATATYPE=9,DP_MDF60,DPMACD))),LINETHICK0;