0
Follow
0
Followers
A função lógica da estratégia de teste tem 2 onTick1 e onTick2. Você precisa adicionar 2 objetos de troca para executá-la!
Created 2018-02-14 18:26:27
1
1775
A função lógica da estratégia de teste tem 2 onTick1 e onTick2. Você precisa adicionar 2 objetos de troca para executá-la!
A estratégia de testar isso, de fazer com que isso aconteça.
Related Recommendations
in main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using botsPlease translate the buy plan pageRunning botvs docker on android
Comment
All comments (1)
是 “策略框架模板” 这个么 ?
function main() {
if(exchanges.length != 2){
throw "测试 用策略 逻辑函数 有2个 onTick1 , onTick2 ,需要添加2个 交易所对象才能跑起来!"
}
$.Relation_Exchange_onTick(exchanges[0], onTick1);
$.Relation_Exchange_onTick(exchanges[1], onTick2);
$.Trend(); // 不用传参数。
}
这个地方报的, 这个 范例是 一个策略 跑 两种 交易逻辑, 作为 示范的, 这两个 交易逻辑 对应2个 交易所账户,
一个是 MACD 交易 策略
一个 是 EMA 均线 交易策略,
你添加 两个 交易所对象 就可以了

9 years ago
- 1
