How to extend VWMA using GetAllDataForSymbol ?
Author: imedplb344
Creation Date: 3/8/2017 4:08 AM
profile picture

imedplb344

#1
I am using the GetAllDataForSymbol utility to load all back data for SMA and VWMA moving averages. My code is:

CODE:
Please log in to see this code.


The SMA series works properly and begins at the start date. However the VWMA series does not start until the nth bar (where n is the averaging period).

Any thoughts on what I am doing wrong?
profile picture

LenMoz

#2
Shouldn't the input to VWMA be "b"?
profile picture

imedplb344

#3
Perfect! Thanks.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).