1 Star 1 Fork 0

cheney / 股票模拟器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense

股票模拟器

介绍

输入初始资金,买卖数量,买卖价格,自动测算当前帐户状态。 支持一连串的价格同时测算。

软件架构

界面 -> ui

股票帐户状态 -> stock account

log记录 -> log

安装教程

main入口,直接运行

或双击start.bat运行

*使用前需装python环境,测试使用的是python3.7版本

使用说明

初始资金:

1、输入初始资金,比如100000

2、点击初始

3、命令窗口中显示状态,以及本地log文件夹中记录log

手动买卖:

1、输入Number, price,手动买,手动卖

2、命令窗口中显示状态,以及本地log文件夹中记录log

智能买卖

1、输入价格,智能买卖,策略是根据当前市值,自动买卖,保持当前市值,比如30000,涨到35000自动卖出5000,若跌到25000则自动买入5000 (买卖量只能100整数)

2、命令窗口中显示状态,以及本地log文件夹中记录log

上行趋势全自动

1、输入number, 多个price(空格隔开,如0.32 0.56 0.76 0.9),策略是第一个价格price买入number量,之后自动按当前价格进行买卖(策略是上面的保持市值的策略)

2、命令窗口中显示状态,以及本地log文件夹中记录log

下行趋势全自动

1、输入number, 多个price(空格隔开,如0.9 0.65 0.5 0.3)策略是以number为基数,之后的每一个低价都以系数增加买入(如15000, 25000...),如遇有价格上升则用上面的保 持市值的策略卖出

2、 命令窗口中显示状态,以及本地log文件夹中记录log

测试,内附测试结果txt

1)上升中逐步卖出,可以降低风险,但是可能影响收益,使用以上策略简单易行

2)下降中递增买入,可以比较好降低成本

输入图片说明

参与贡献

特技

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org>

简介

输入初始资金,买卖数量,买卖价格,自动测算当前帐户状态。 支持一连串的价格同时测算。 展开 收起
Python
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/cheneykids/stock-simulator.git
git@gitee.com:cheneykids/stock-simulator.git
cheneykids
stock-simulator
股票模拟器
master

搜索帮助