code: def SMA(values, n):
      """
      Return simple moving average of `values`, at
      each step taking into account `n` previous values.
      """
      return pd.Series(values).rolling(n).mean()
  
file_path: backtesting.py/doc/examples/Quick Start User Guide.py
imports: from backtesting.test import GOOG
  import pandas
  from backtesting import Strategy
  from backtesting.lib import crossover
  from backtesting import Backtest
label_desc: Use image node_id 1 for calling a global function with example usage: SMA(values, n) and returns: pd