資金流向MFI(六天資金流、升背離、頂背離、共振)
{n 1 100 14}
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)),COLORRED;
六天資金流:EMA(MFI,6),COLORGREEN;
DD:=C=HHV(C,34);
EE:=MFI<REF(MFI,1) AND REF(MFI<REF(MFI,1),1)=1;
CC:=C>REF(C,1) AND REF(C>REF(C,1),1)=1;
升背離:(CC AND EE)*MFI,COLORBLUE,STICK,LINETHICK2;
頂背離:ABS((DD AND EE AND MFI<HHV(MFI,34))*MFI),STICK,LINETHICK3,COLORGREEN;
FF:=C=LLV(C,89);
GG:= MFI>REF(MFI,1) AND REF(MFI>REF(MFI,1),1)=1;
LL:=C<REF(C,1) AND REF(C<REF(C,1),1)=1;
降背離:(LL AND GG)*MFI,COLORMAGENTA,STICK,LINETHICK2;
底背離:ABS((FF AND GG AND MFI>LLV(MFI,89))*MFI),STICK,LINETHICK3,COLORRED;
VAR1:=C/HHV(C,20)=1;
VAR2:=MFI/HHV(MFI,20)=1;
共振:(VAR1 AND VAR2)*100,STICK,COLORWHITE;
80;
20;
(南方財富網(wǎng)SOUTHMONEY.COM)