A New Undicator: NMA

Discussion in 'Technical Analysis' started by Joe Doaks, Feb 17, 2008.

  1. A VWAP can be as reactive as the time interval used.
    For this indicator, how many periods are used to compute the VWAP.
    20 ? 30 ? more ?
     
    #21     Feb 21, 2008
  2. There is no period setting in VWAP. Typically, it starts at the beginning of the designated trading session and ends at the end of said session.

    See pseudo-code below:
    Code:
    /* Reset variables - new Session */
    if (isNewTradingSession() = true)
    {
        weightedPriceSum = 0;
        volumeSum = 0;
    }
    
    /* The running intraday summations */
    volumeSum = volumeSum + getVolume();
    weightedPriceSum = weightedPriceSum + getPrice() * getVolume();
    
    /* The main calc */
    if (volumeSum != 0)
    {
        VWAP = weightedPriceSum / volumeSum;
    }
    
    
     
    #22     Feb 21, 2008
  3. Opie, I am glad you got rich from my humble unventions. Would you mind telling me which ones so I can try to duplicate that success? I must have missed something because I never knowingly publish anything that actually works. NMA, which I will now market as Price-Weighted Average Price thanks to Hypo, might be the exception. If I can get Easy-Signal to draw a fat enough line to make it plausible.
     
    #23     Feb 21, 2008