def ma(df, ma_ranges=[10, 21, 50]):
    """
    Simple Moving Average

    Parameters
    ----------
    df : pandas.DataFrame, must include columns ['Close']
     Dataframe where the ma is extracted from

    ma_ranges: list, default [10, 21, 50]
     List of periods of Simple Moving Average to be extracted

    Return
    ------
    df : pandas.DataFrame
     DataFrame with Simple Moving Average
    """

    df = df.copy()
    for period in ma_ranges:
        df[f"MA{period}"] = df['Close'].rolling(window=period).mean()

    return df