Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Tasc092015 mfo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tasc092015 mfo

    LL := Security(“.DJI”,L);
    HH:= Security(“.DJI”,H);
    {avoid division by zero}
    Dvs:=If((HH-Ref(LL ,-1))+(Ref(HH,-1)-LL )=0,.00001,(HHRef(
    LL ,-1)+(Ref(HH,-1)-LL )));
    MLT P:=If(HH<Ref(LL ,-1),-1,If(LL >Ref(HH,-1),1,((HHRef(LL ,-1))-(Ref(HH,-1)-LL ))/dvs));
    {avoid division by zero}
    Dvsv:=If(V=0,.00001,V);
    Sum((MLT P*V),20)/Sum(Dvsv,20);


    1. Multiplier = [(High – previous low) –
    (Previous high – low)] / [(High – previous
    low) + (Previous high – low)]
    2. Money flow volume = Multiplier × volume
    for the period
    3. 20-period MFO = 20-period sum of money
    flow volume / 20-period sum of volume
    Note: Steps 2 and 3 above are similar to the calculation
    of the Chaikin money flow (CMF) indicator


    Error on calling 'OnBarUpdate' method for indicator 'MFO12092015TASC' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
    Attached Files
    Last edited by sumana.m; 09-12-2015, 04:22 AM.

    #3
    Hello sumana.m,

    With the various different periods, try making sure enough bars are loaded for each not just one. Reference: http://ninjatrader.com/support/forum...ead.php?t=3170

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    39 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    15 views
    0 likes
    Last Post bill2023  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    167 responses
    2,260 views
    0 likes
    Last Post jeronymite  
    Started by warreng86, 11-10-2020, 02:04 PM
    7 responses
    1,362 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    5 views
    0 likes
    Last Post Perr0Grande  
    Working...
    X