Skip to content

Commit

Permalink
update virtual_machine url in document
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Feb 4, 2018
1 parent f853eed commit a7b68c6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions docs/source/intro/virtual_machine.rst
Expand Up @@ -31,7 +31,7 @@

.. _VirtualBox 官网: https://www.virtualbox.org/wiki/Downloads

.. _RQAlpha 开箱即用虚拟机镜像: https://pan.baidu.com/s/1mhB3jfE
.. _RQAlpha 开箱即用虚拟机镜像: https://pan.baidu.com/s/1htvAEmK


在终端运行 RQAlpha
Expand All @@ -46,27 +46,27 @@
source activate py3
在终端输入如下命令以进入 RQAlpha 代码所在文件夹
在终端输入如下命令以启动 RQAlpha,并运行 :ref:`intro-examples` 中的 :ref:`intro-examples-buy-and-hold` 进行回测。

.. code-block:: bash
cd /home/rqalpha_user/rqalpha
rqalpha run -f ~/examples/buy_and_hold.py -s 2017-01-01 -e 2017-12-31 --account stock 100000 --benchmark 000300.XSHG --plot
在终端输入如下命令以启动 RQAlpha,并运行 :ref:`intro-examples` 中的 :ref:`intro-examples-buy-and-hold` 进行回测。
.. code-block:: bash
其他命令
------------------------------------------------------

rqalpha run -f ./rqalpha/examples/buy_and_hold.py -s 2016-06-01 -e 2016-12-01 --account stock 100000 --benchmark 000300.XSHG --plot
更新 RQAlpha 版本

使用 PyCharm 进行断点调试
------------------------------------------------------
.. code-block:: bash
该虚拟机镜像中安装了 PyCharm,您可以方便的使用 PyCharm 进行代码的阅读、编写,或是通过断点调试了解 RQAlpha 的运行流程。
source activate py3
pip install -U rqalpha
* 打开 PyCharm
在 RQAlpha 所在虚拟环境中安装其他依赖(以 funcat 为例)

* 在右上角的下拉框中选择 debug_buy_and_hold
.. code-block:: bash
* 点击右边的小虫子图标,运行期间可点击代码行号的右侧增加断点,点击左下方的箭头图标控制代码运行。
source activate py3
pip install funcat
.. image:: https://raw.githubusercontent.com/ricequant/rq-resource/master/rqalpha/pycharm_1.png

0 comments on commit a7b68c6

Please sign in to comment.