Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jul 14, 2022
1 parent e029fa7 commit 5f23b76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,15 @@ print(howtrader.__version__)
2. 安装完成后,提示没有找到QT,如提示***this application failed to start
because no QT platform plugin could be initialized***,
具体可以参考下面的博客: [https://www.freesion.com/article/8447805324/](https://www.freesion.com/article/8447805324/)


3. 如果安装talib有问题,可以通过以下方式处理:
> brew uninstall ta-lib
> pip uninstall ta-lib
> conda install -y -c conda-forge ta-lib
具体参考改ta-lib的issue: [https://github.com/mrjbq7/ta-lib/issues/381](https://github.com/mrjbq7/ta-lib/issues/381)

## 使用

Expand Down
1 change: 1 addition & 0 deletions docs/如何在window和MacOS上运行howtrader.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ if __name__ == "__main__":

在运行前,记得设置该python项目的解析器为刚才创建的mytrader。然后运行main.py文件。

##

## contact

Expand Down
4 changes: 2 additions & 2 deletions tv_scripit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from howtrader.trader.engine import MainEngine, LogEngine

from howtrader.gateway.binance import BinanceSpotGateway, BinanceUsdtGateway
from howtrader.app.cta_strategy import CtaStrategyApp, CtaEngine
# from howtrader.app.cta_strategy import CtaStrategyApp, CtaEngine
from howtrader.app.cta_strategy.base import EVENT_CTA_LOG
from howtrader.event import Event
from howtrader.trader.event import EVENT_TV_SIGNAL
Expand Down Expand Up @@ -67,7 +67,7 @@ def run():
event_engine = EventEngine()
main_engine: MainEngine = MainEngine(event_engine)
main_engine.add_gateway(BinanceUsdtGateway)
cta_engine: CtaEngine = main_engine.add_app(CtaStrategyApp)
# cta_engine: CtaEngine = main_engine.add_app(CtaStrategyApp)
tv_engine: TVEngine = main_engine.add_app(TradingViewApp)
main_engine.write_log("setup main engine")

Expand Down

0 comments on commit 5f23b76

Please sign in to comment.