Skip to content

仓位分配,提供多种从score到postion的算法示例

Notifications You must be signed in to change notification settings

BigQuant/score_to_position

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

仓位分配

  • 仓位分配: 将 score(来自因子或者多个因子组合) 转化为 交易中持有的仓位目标(position)
  • 模块文档

模块开发

BigQuant AIStudio 可视化模块开发文档

进入 BigQuant AIStudio 命令行终端开发模块

clone module git project and cd

git clone "项目地址"
cd "本地 git 项目目录"

安装模块到开发路径,在开发里默认安装为 v0 版本

bq module install --dev

测试模块

在可视化开发模块列表找到对应模块,或者通过代码访问(x, y替换为具体的模块名和版本号):

python3 -c "from bigmodule import M; M.x.y()"

以当前模块为例,示例如下

python3 -c "from bigmodule import M; M.score_to_position.v0()"

测试完成后卸载开发环境模块

bq module uninstall --dev

发布模块到模块库,以用于正式使用

bq module publish

About

仓位分配,提供多种从score到postion的算法示例

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages