All Projects → nessessary → autoxd

nessessary / autoxd

Licence: other
A股回测框架, 模拟实盘账户交易, 适合编写T+0策略

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to autoxd

roq-samples
How to use the Roq C++20 API for Live Cryptocurrency Algorithmic and High-Frequency Trading as well as for Back-Testing and Historical Simulation
Stars: ✭ 119 (+67.61%)
Mutual labels:  trading, backtesting
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-38.03%)
Mutual labels:  trading, backtesting
wtpy
wtpy是基于wondertrader为底层的针对python的子框架
Stars: ✭ 283 (+298.59%)
Mutual labels:  trading, quant
Wondertrader
WonderTrader——量化研发交易一站式框架
Stars: ✭ 221 (+211.27%)
Mutual labels:  trading, quant
crypto-trading-engine
Crypto real-time trading engine
Stars: ✭ 19 (-73.24%)
Mutual labels:  trading, quant
Vnpy
基于Python的开源量化交易平台开发框架
Stars: ✭ 17,054 (+23919.72%)
Mutual labels:  trading, quant
awesome-tradingview
Curated list of noteworthy TradingView Strategies, Indicators and Alert Scripts for Trading Bots (PineScript)
Stars: ✭ 173 (+143.66%)
Mutual labels:  trading, backtesting
Py Market Profile
A library to calculate Market Profile (aka Volume Profile) for financial data from a Pandas DataFrame.
Stars: ✭ 153 (+115.49%)
Mutual labels:  trading, quant
dukascopy-tools
✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
Stars: ✭ 128 (+80.28%)
Mutual labels:  trading, backtesting
SierraChartZorroPlugin
A Zorro broker API plugin for Sierra Chart, written in Win32 C++.
Stars: ✭ 22 (-69.01%)
Mutual labels:  trading, backtesting
Awesome Quant
中国的Quant相关资源索引
Stars: ✭ 2,529 (+3461.97%)
Mutual labels:  trading, quant
backtrader template
Basic template for managing Backtrader backtests.
Stars: ✭ 131 (+84.51%)
Mutual labels:  trading, backtesting
Crex
A Golang cryptocurrency trading API & Library. Support Binance, BitMEX, Deribit, Bybit, Huobi DM, OKEX Futures and more.
Stars: ✭ 166 (+133.8%)
Mutual labels:  trading, quant
Starquant
a light-weighted, integrated trading/backtesting system/platform(综合量化交易回测系统/平台)
Stars: ✭ 250 (+252.11%)
Mutual labels:  trading, quant
Squant
SQuant是使用scala语言编写的量化开发工具箱,提供开箱即用的A股股票数据和外汇数据(docker镜像),以及高效的回测框架与交易模块。方便Java/Scala爱好者进行量化投资研究。 QQ群:281599099,微信公众号:Python量化交易实战。对,我已经转python了。。。
Stars: ✭ 155 (+118.31%)
Mutual labels:  trading, quant
cryptoquant
An Quantatitive trading library for crypto-assets 数字货币量化交易框架
Stars: ✭ 96 (+35.21%)
Mutual labels:  trading, quant
Friartuck
Live Quant Trading Framework for Robinhood, using IEX Trading and AlphaVantage for Free Prices.
Stars: ✭ 142 (+100%)
Mutual labels:  trading, quant
Bursatil Argentina Python
Guia de ejemplos didácticos en python temática finanzas bolsa trading argentina usa
Stars: ✭ 153 (+115.49%)
Mutual labels:  trading, quant
gym-mtsim
A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)
Stars: ✭ 196 (+176.06%)
Mutual labels:  trading, backtesting
onetoken
1Token Demo & Docs
Stars: ✭ 53 (-25.35%)
Mutual labels:  trading, quant

autoxd 回测框架

简单快捷的A股回测环境, 适合编写T+0策略

  • 特性

    • 使用pandas编写策略
    • 结果可以在页面显示, 类似matlab的publish
    • 并行执行策略(需要安装redis)
    • 本地账户, 模拟实盘交易细节, 支持T+0, 交易成本计算
    • 自创FOUR指标, 简单计算多空
  • 变更

    • v0.4.7 恢复机器学习相关, 添加静态硬识别, 当前开发版本python3.7.4
    • 拼音简写增加港股通
    • v0.4.6 变更拼音简写的表示方式, 简写后面直接跟中文名; 会影响之前的版本
    • v0.4.5 删除机器学习相关
    • v0.4.4 复权计算使用的分红表原来是动态抓网页, 现在使用静态方式, 从数据目录中取
    • v0.4.3 废弃python2支持,python3.6 pandas 1.0
    • v0.4.1 支持macos
    • v0.4 大幅优化速度
    • v0.3 python3支持
  • 数据维护

    • datas目录下的数据是需要维护的, 一般一个月更新股票列表,同时更新拼音简写, 一个季度更新分红表
    • 更新时间2022-1-2
  • 日线例子

	python boll_fencang.py

image
image

  • 5分钟例子
	python five_chengben.py

  • 依赖
  1. redis 推荐
  2. 支持各平台py3, py2已不维护
  3. 用pip install -r requirements.txt安装相关依赖包; python=3.7.4
  • 安装

    • 安装Anaconda
    • 下载autoxd
    git clone https://github.com/nessessary/autoxd.git
    cd autoxd
    pip install -r requirements.txt
    pip install git+https://github.com/hanxiaomax/pyh.git
    python setup.py install
    
  • 使用

  1. 数据源,使用自定义的数据; 注意,已使用ths分红表进行了前复权

    • 使用自定义的第三方数据源, 已实现了一个调用tushare的例子, datasource_mode=stock.DataSources.datafrom.custom
    • 5分钟线使用的是pytdx的例子
    • tdx行情ip查询connect.cfg, 然后修改warp_pytdx.py里的ip
  2. 先进行静态的单一状态识别

    python autoxd\hard_recog\single_boll.py
    

    通过调整技术指标的判断来触发信号

  3. 跑five_chengben.py, 根据静态分析的结果来定义参数 setParams函数 实现策略 Run函数, 修改cpu_num可以使用多进程

cd strategy
python five_changben.py

调用

    #设置策略参数
  def setParams(s):
  	s.setParams(trade_num = 300,
                      pl=publish.Publish()	#发布至页面, 注释则不发布
                      )
  backtest_policy.test_strategy(codes, BollFenCangKline, setParams, mode=myenum.hisdat_mode,
                                start_day='2017-4-10', end_day='2018-9-15',
                                datasource_mode=DataSources.datafrom.custom,
                                datasource_fn=fnSample
                                )
  1. gym增强学习, 实现了一个gym的环境,套了一个dqn的算法,功能有限,只是作为一个例子
    python autoxd\trading_gym\gym_eval.py
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].