Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with VWMA

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

    Problem with VWMA

    I am currently encountering the following problem while trying to build a smoothed VPCI indicator.

    21.05.2008 17:32:49;Default;Error on calling the 'OnBarUpdate' method for indicator 'VWMA' on bar 1: Object reference not set to an instance of an object.;

    The VPCI implementation is the one posted here:

    http://www.traders.com/Documentation...ips.html#ninja

    The OnBarUpdate code for my indicator is:
    VPCI.Set(VolumePriceConfirmation(LongTerm, ShortTerm)[0]);
    SmoothedVPCI.Set(VWMA(VPCI, Period)[0]);

    Any ideas?

    #2
    Thanks for bringing this up. We will look into it.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      The VWMA only runs on bars series, since it's basically a calculation based on volume and the VPCI is just an indicator and has no volume (and no open, high, low, close) whatsoever.
      DierkNinjaTrader Customer Service

      Comment


        #4
        Thanks, that makes perfect sense..

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by WHICKED, Today, 09:05 PM
        0 responses
        9 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by luislag14, Today, 06:29 PM
        0 responses
        8 views
        0 likes
        Last Post luislag14  
        Started by Protech, Today, 11:08 AM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by guilhem, Today, 02:09 PM
        1 response
        24 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by Hyper, Today, 12:20 PM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X