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
2023-05-26 09:34:17 +02:00
2023-10-11 14:30:02 -04:00
2023-09-23 10:53:09 +02:00
2023-09-23 10:53:09 +02:00
2023-10-15 22:41:39 +02:00
2023-07-31 20:02:49 -07:00
2023-05-26 09:34:17 +02:00
2023-10-11 14:30:02 -04:00
2023-10-11 14:30:02 -04:00
2023-08-17 14:34:53 -07:00
2023-10-17 11:25:25 +02:00
2023-10-20 09:08:23 +02:00
2023-10-03 14:47:10 +05:30
2022-07-23 07:56:59 +05:30
2022-03-16 23:40:48 +08:00

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.

Languages
Python 99.9%
Shell 0.1%