九毛八公式指标
请老师将通达信mfi macd两个指标合并
公式模块:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9); macd:(DIF-DEA)*2,COLORSTICK; A1:=CONST(HHV(DIF,240))-CONST(LLV(DIF,240)); TYP := (HIGH + LOW + CLOSE)/3; V1:=SUM(IF(TYP>REF(TYP,1),TYP*vol,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14); mfi:100-(100/(1+V1)),NODRAW,COLORGREEN; NOTEXT:A1*(MFI/100)+CONST(LLV(DIF,240)),COLORGREEN;