A New Undicator: NMA

Quote from Equalizer:

syswizard, see my post above.
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 ?
 
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;
}
 
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.
 
Back
Top