Skip to main content

MFI based Heiken Ashi for Amibroker (AFL)

kananwisha over 13 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    amibroker

Dear friends,

I’d like to intro a modified MFI indicator

Hope you to have another look at MFI

By soi_nhan
http://srsc.com.vn/forum/ami-codes/6407-bo-chi-bao-dong-tien-money-flow-index-group.html

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("modified MFI");
HaClose =EMA((O+H+L+C)/4,3);

HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );

HaHigh = Max( H, Max( HaClose, HaOpen ) );

HaLow = Min( L, Min( HaClose, HaOpen ) );

Periods=Param( "Periods",14, 2, 222, 1);

tp=(HaClose +HaHigh +HaLow )/3 ;

newMFI=100 -(100 /(1 + Sum(IIf(Tp>Ref(Tp,-1),V*Tp,0),Periods) /
Sum(IIf(Tp<Ref(Tp,-1),V * Tp,0),Periods) ) );

Plot(newMFI, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

1 comments

Leave Comment

Please login here to leave a comment.