FUNCTION: EMA

STUB: return_vector = EMA ( source_vector, 10)


Function EMA calculates the Exponential Moving Average. It is similar to the MOVAVG function, with the exception that newer points are given more weight, unlike the MOVAVG (which calculates the Simple Moving Average) which gives the same weight to all values.