Skip to content

如何配置多个执行器 #47

Answered by wondertrader
Cheung0927 asked this question in Q&A
Discussion options

You must be logged in to vote

请参考以下代码

executers:
-   active: true    #是否启用
    id: exec1        #执行器id,不可重复
    trader: simnow1  #执行器绑定的交易通道id,如果不存在,无法执行
    scale: 1        #数量放大倍数,即该执行器的目标仓位,是组合理论目标仓位的多少倍,可以为小数 

    policy:         #执行单元分配策略,系统根据该策略创建对一个的执行单元
        default:    #默认策略,根据品种ID设置,如SHFE.rb,如果没有针对品种设置,则使用默认策略
            name: WtExeFact.WtMinImpactExeUnit #执行单元名称
            offset: 0       #委托价偏移跳数
            expire: 5       #订单超时没秒数
            pricemode: 1    #基础价格模式,-1-己方最优,0-最新价,1-对手价
            span: 500       #下单时间间隔(tick驱动的)
            byrate: false   #是否按对手盘挂单量的比例挂单,配合rate使用
            lots: 1         #固定数量
            rate: 0         #挂单比例,配合byrate使用

    clear:                  #过期主力自动清理配置

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@wondertrader
Comment options

@Cheung0927
Comment options

@wondertrader
Comment options

@Cheung0927
Comment options

@wondertrader
Comment options

Answer selected by wondertrader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants