Leading and lagging moving averages chart
movavg(Asset, Lead, Lag, Alpha) [Short, Long] = movavg(Asset, Lead, Lag, Alpha)
 Security data, a vector of timeseries prices.  
 Number of samples to use in leading average calculation.
A positive integer.  
 Number of samples to use in the lagging average calculation. A positive integer.  
 (Optional) Control parameter that determines the type
of moving averages. 0 = simple moving average (default), 0.5 = square root weighted moving average, 1 = linear moving
average, 2 = square weighted moving average, and so on. To calculate
the exponential moving average, set

movavg(Asset, Lead, Lag, Alpha)
plots leading
and lagging moving averages.
[Short, Long] = movavg(Asset, Lead, Lag, Alpha)
returns
the leading Short
and lagging Long
moving
average data without plotting it.
Note:
m, When using 