通达信DMA平均线差指标公式

时间:2022-03-17 06:42:17    阅读:296

通达信DMA平均线差指标公式

 N1:=10;N2:=55;M:=10;
所属地域:DRAWTEXT_FIX(ISLASTBAR ,0.01,0.01,0,DYBLOCK),COLORYELLOW;
所属行业:DRAWTEXT_FIX(ISLASTBAR ,0.07,0.01,0,HYBLOCK),COLORYELLOW;

DM:MEMA(C,N1)-MEMA(C,N2);{DMA均线}
PSM:POW(DM,2);
AM:=MA(DM,M);{AMA线}
STICKLINE(PSM>REF(PSM,1) AND DM>0,0,PSM,0.001,0),COLORRED;
STICKLINE(PSM<REF(PSM,1) AND DM<0,0,PSM,0.001,0),COLORRED;
STICKLINE(PSM<REF(PSM,1) AND DM>0,0,PSM,0.001,0),COLORGREEN;
STICKLINE(PSM>REF(PSM,1) AND DM<0,0,PSM,0.001,0),COLORGREEN;

 

关键词: 均线 DMA