Simple Moving Average of the specified period for the close value, offset by BarsAgo
 
Returns the Moving Average of the close for the specified period
 Plot the 20 bar average of the close for the current symbol
 
CopyVB.NET
plot = Price.AVGC(20)