diff --git a/README-CN.md b/README-CN.md index 13f38c4..7237f9b 100644 --- a/README-CN.md +++ b/README-CN.md @@ -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) ## 使用 diff --git "a/docs/\345\246\202\344\275\225\345\234\250window\345\222\214MacOS\344\270\212\350\277\220\350\241\214howtrader.md" "b/docs/\345\246\202\344\275\225\345\234\250window\345\222\214MacOS\344\270\212\350\277\220\350\241\214howtrader.md" index bce2bdb..b83768c 100644 --- "a/docs/\345\246\202\344\275\225\345\234\250window\345\222\214MacOS\344\270\212\350\277\220\350\241\214howtrader.md" +++ "b/docs/\345\246\202\344\275\225\345\234\250window\345\222\214MacOS\344\270\212\350\277\220\350\241\214howtrader.md" @@ -112,6 +112,7 @@ if __name__ == "__main__": 在运行前,记得设置该python项目的解析器为刚才创建的mytrader。然后运行main.py文件。 +## ## contact diff --git a/tv_scripit.py b/tv_scripit.py index 1ebcc92..7d4c144 100644 --- a/tv_scripit.py +++ b/tv_scripit.py @@ -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 @@ -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")