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 frslvr, Today, 04:29 PM
        0 responses
        11 views
        0 likes
        Last Post frslvr
        by frslvr
         
        Started by wjadevries, Today, 04:18 PM
        0 responses
        4 views
        0 likes
        Last Post wjadevries  
        Started by shahabjet1, Today, 03:47 PM
        2 responses
        12 views
        0 likes
        Last Post shahabjet1  
        Started by JTizz, Today, 03:21 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by EB Worx, Today, 02:49 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X