N:=14;
M:=6;
TYP := (HIGH + LOW + CLOSE)/3;
V1=SUM(IF(TYP>REF(TYP,1),TYP*vol,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N);
mfi:100-(100/(1+V1)),colorwhite;
MFMA:MA(MFI,M),coloryellow;
DRAWTEXT(crOSS(MFI,MFMA) AND MFI < 40,MFI,'多'),colorred;
DRAWTEXT(CROSS(MFMA,MFI) AND MFMA > 60,MFMA,'空'),colorgreen;