源码
A1:30,COLORWHITE;
A2:50,COLORRED;
A3:60,POINTDOT,COLORYELLOW;
A4:70,POINTDOT,COLORGREEN;
A5:80,COLORRED;
TYP := AMOUNT/VOL/100;
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));
资金流向:EMA(MFI,5)COLORBLUE;
IF(资金流向<50,资金流向,DRAWNULL)COLORGREEN;
IF(资金流向>80,资金流向,DRAWNULL)COLORMAGENTA;
IF(资金流向<80 AND 资金流向>60,资金流向,DRAWNULL),COLORRED;
IF(资金流向>50 AND 资金流向<=60,资金流向,DRAWNULL)COLORYELLOW