update readme

This commit is contained in:
fasiondog 2018-09-14 00:14:39 +08:00
parent c87789852f
commit b5481ad055
2 changed files with 14 additions and 8 deletions

View File

@ -3,6 +3,9 @@
:width: 600px
:align: center
:alt: Hikyuu
.. image:: https://travis-ci.org/fasiondog/hikyuu.svg?branch=master
:target: https://travis-ci.org/fasiondog/hikyuu
Hikyuu Quant Framework是一款基于C++/Python的开源量化交易研究框架用于策略分析及回测仅受限于数据如有数据也可用于期货等。其核心思想基于当前成熟的系统化交易方法将整个系统化交易抽象为由市场环境判断策略、系统有效条件、信号指示器、止损/止盈策略、资金管理策略、盈利目标策略、移滑价差算法七大组件,你可以分别构建这些组件的策略资产库,在实际研究中对它们自由组合来观察系统的有效性、稳定性以及单一种类策略的效果。例如:

View File

@ -10,19 +10,22 @@ from hikyuu import *
from hikyuu.util.unicode import unicodeFunc
import os
curdir = os.path.dirname(os.path.realpath(__file__))
head, tail = os.path.split(curdir)
head, tail = os.path.split(head)
head, tail = os.path.split(head)
#curdir = os.path.dirname(os.path.realpath(__file__))
#head, tail = os.path.split(curdir)
#head, tail = os.path.split(head)
#head, tail = os.path.split(head)
import sys
if sys.platform == 'win32':
config_file = os.path.join(head, "test/data/hikyuu_win.ini")
#config_file = os.path.join(head, "test_data/hikyuu_win.ini")
config_file = "test_data/hikyuu_win.ini"
else:
config_file = os.path.join(head, "test/data/hikyuu_linux.ini")
print(config_file)
#config_file = os.path.join(head, "test_data/hikyuu_linux.ini")
config_file = "test_data/hikyuu_linux.ini"
#print(config_file)
tmp_dir = os.path.join(head, "test/data/tmp")
#tmp_dir = os.path.join(head, "test/data/tmp")
tmp_dir = "test_data/tmp"
if not os.path.lexists(tmp_dir):
os.mkdir(tmp_dir)