
    'i                     B    d dl mZmZmZmZ ddlmZmZ  G d de      Zy)    )absolute_importdivisionprint_functionunicode_literals   )MovingAverageBaseAveragec                   *     e Zd ZdZdZdZ fdZ xZS )MovingAverageSimplez
    Non-weighted average of the last n periods

    Formula:
      - movav = Sum(data, period) / period

    See also:
      - http://en.wikipedia.org/wiki/Moving_average#Simple_moving_average
    )SMASimpleMovingAverage)smac                     t        | j                  | j                  j                        | j                  d<   t
        t        |           y )N)periodr   )r	   datapr   linessuperr   __init__)self	__class__s    W/var/www/app/trading-bot/venv/lib/python3.12/site-packages/backtrader/indicators/sma.pyr   zMovingAverageSimple.__init__(   s3      		$&&--@

1!413    )__name__
__module____qualname____doc__aliasr   r   __classcell__)r   s   @r   r   r      s     ,EE4 4r   r   N)	
__future__r   r   r   r    r   r	   r    r   r   <module>r#      s!   ** * )4+ 4r   