v6 Improved robustness of moving averages and included alternates for ema, wma, and vwma.
Added:
ema(len, src) Same as ta.ema(src,len) but properly ignores NA values.
Parameters:
len: The number of samples to derive the average from.
src: The series to measure from. Default is 'close'.
wma(len, src, startingWeight) Same as ta.wma(src,len) but properly ignores NA values.
Parameters:
len: The number of samples to derive the average from.
src: The series to measure from. Default is 'close'.
startingWeight: The weight to begin with when calculating the average. Higher numbers will decrease the bias.
vwma(len, src, volumeDefault) Same as ta.vwma(src,len) but properly ignores NA values.
Parameters:
len: The number of bars to measure with.
src: The series to measure from. Default is 'hlc3'.
volumeDefault: The default value to use when a chart has no (N/A) volume.