nessessary / autoxd Goto Github PK
View Code? Open in Web Editor NEWA股回测框架, 模拟实盘账户交易, 适合编写T+0策略
A股回测框架, 模拟实盘账户交易, 适合编写T+0策略
RT
可以仿照quantaxis那样写个安装教程,因为有时候数据库配置、回测框架配置,实盘系统配置和各方面的对接对于不熟悉autoxd的人来说是很困难的,一份好的安装教程甚至是使用教程会大大降低使用门槛。
作者如果有空的话可以简单写一份,,要自己摸索的话真的太费时间了。。
MacOS 系统
/usr/local/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py:5079: FutureWarning: Attribute 'is_copy' is deprecated and will be removed in a future version.
object.__getattribute__(self, name)
/usr/local/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py:5080: FutureWarning: Attribute 'is_copy' is deprecated and will be removed in a future version.
return object.__setattr__(self, name, value)
Traceback (most recent call last):
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/MultiSubProcess/MultiSubProcess_exec.py", line 79, in <module>
main(args)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/MultiSubProcess/MultiSubProcess_exec.py", line 59, in main
r = myexec(s)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/pinyin/myexec.py", line 6, in myexec
r = exec(s, globals(), _locals)
File "<string>", line 2, in <module>
File "/Users/alan/Documents/Stocks/autoxd/autoxd/strategy/five_chengben.py", line 268, in Run
datasource_fn=fnSample
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/backtest_policy.py", line 146, in test_strategy
p.Run(d1, d2)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/backtest_runner.py", line 88, in Run
self._Report(policy, start_day, end_day, close)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/backtest_runner.py", line 204, in _Report
title=title)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/ui.py", line 463, in TradeResult_Boll
ShowTradeResult2(pl, bars, signals, zhijin,changwei , 0, freq=30, title=title)
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/ui.py", line 429, in ShowTradeResult2
pl.show()
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/pypublish/publish.py", line 246, in show
self.save()
File "/usr/local/anaconda3/lib/python3.7/site-packages/autoxd-0.4.3-py3.7.egg/autoxd/pypublish/publish.py", line 207, in save
pl.savefig(fname, dpi=70)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 729, in savefig
res = fig.savefig(*args, **kwargs)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 2180, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2091, in print_figure
**kwargs)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 527, in print_png
FigureCanvasAgg.draw(self)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 388, in draw
self.figure.draw(self.renderer)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/figure.py", line 1709, in draw
renderer, self, artists, self.suppressComposite)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/artist.py", line 38, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2607, in draw
self._update_title_position(renderer)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2556, in _update_title_position
if title.get_window_extent(renderer).ymin < top:
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 890, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/text.py", line 291, in _get_layout
ismath="TeX" if self.get_usetex() else False)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 210, in get_text_width_height_descent
font = self._get_agg_font(prop)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 246, in _get_agg_font
font = get_font(fname)
File "/usr/local/anaconda3/lib/python3.7/site-packages/matplotlib/font_manager.py", line 1341, in get_font
return _get_font(filename, hinting_factor)
FileNotFoundError: [Errno 2] No such file or directory: '/Library/Fonts/STIXGeneral.otf'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.