Skip to content

Visualization program for China market fund simulation trading using Bollinger band indicator as a reference | 基于Python的基金模拟交易可视化项目。使用布林带对市场的基金进行分析,并以此为一项指标进行基金模拟交易。根据这一简单的思路,只要获得每天的估算净值,就可以做出预测(本项目仅供学习,其结果不构成任何投资建议)。

License

Notifications You must be signed in to change notification settings

RyougiChan/fund_assistance_py

Repository files navigation

Fund simulation trade

fund simulation

Some indicators are always used to predict stock's trends, for example, MACD Oscillator, Bollinger Bands Pattern, Hikkake Pattern, and etc. The project aim to make simulation trade with fund using some scientific technical indicators(we use Bollinger Bands Pattern in the project now).

Requirements

Before you can start, the following dependencies need to be installed.

  • Python(version>=3.7)
  • pip3
  • The following python dependencies
pip3 install django akshare plotly kaleido PyJWT PyYAML aliyun-python-sdk-sts \
    aliyun-python-sdk-core oss2 alibabacloud_sts20150401 timeloop chardet

Usage

For development environment

cd <root of project>
python manage.py runserver

For server deployment, following this guide save my life: 【Djangoの本番環境構築】Ubuntu20.04,Python3.8,Nginx,Gunicorn,PostgreSQL, and be careful when configuring venv(Creation of virtual environments).

Other reference: Install Python 3.8 on CentOS 7 / CentOS 8

Error recording

# Python Error
(<class 'AttributeError'>, AttributeError("'HttpResponse' object has no attribute 'headers'"),
<traceback object at 0x7f46aeacae80>)
# Solution
pip3 install --upgrade Django

# Error
django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
# Solution
# Download source code
wget https://www.sqlite.org/2019/sqlite-autoconf-3360000.tar.gz
# Compile
tar zxvf sqlite-autoconf-3360000.tar.gz
cd sqlite-autoconf-3360000/
./configure --prefix=/usr/local
make && make install

# Replace system low version sqlite3
mv /usr/bin/sqlite3  /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3   /usr/bin/sqlite3
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig
sqlite3 -version

Reference: Upgrade to sqlite3 under centos 7

Declaration

This project is for study and research purposes only and does not constitute any investment advice.

Released under the Apache License 2.0 Copyright © RyougiChan. All rights reserved.

About

Visualization program for China market fund simulation trading using Bollinger band indicator as a reference | 基于Python的基金模拟交易可视化项目。使用布林带对市场的基金进行分析,并以此为一项指标进行基金模拟交易。根据这一简单的思路,只要获得每天的估算净值,就可以做出预测(本项目仅供学习,其结果不构成任何投资建议)。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published