Python/financial
Berat Osman Demiralay d051db1f14
Add Simple Moving Average (SMA) Calculation (#9300)
* Add Simple Moving Average (SMA) Calculation

This commit adds a Python script for calculating the Simple Moving Average (SMA) of a time series data.

The script also includes a doctest that verifies the correctness of the SMA calculations for a sample dataset.

Usage:
- Run the script with your own time series data and specify the window size for SMA calculations.

* Update financial/simple_moving_average.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>

* Update financial/simple_moving_average.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>

* Update financial/simple_moving_average.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update simple_moving_average.py

* Update financial/simple_moving_average.py

* Update simple_moving_average.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-23 09:25:07 -04:00
..
__init__.py Financials (#5585) 2021-10-26 18:19:00 +02:00
ABOUT.md Financials (#5585) 2021-10-26 18:19:00 +02:00
equated_monthly_installments.py Add equated_monthly_installments.py in Financials (#5775) 2021-11-07 15:40:23 +01:00
exponential_moving_average.py Adds exponential moving average algorithm (#10273) 2023-10-12 15:54:07 +02:00
interest.py Added apr_interest function to financial (#6025) 2023-06-19 13:46:29 +02:00
present_value.py Fix docstring in present_value.py (#8702) 2023-05-01 06:29:42 +05:30
price_plus_tax.py Calculate GST Amount (#7694) 2022-10-26 23:15:02 +02:00
simple_moving_average.py Add Simple Moving Average (SMA) Calculation (#9300) 2023-10-23 09:25:07 -04:00