Loading ...

扩展API里面怎么没有回测的接口啊,如果我想做一个回测该怎么办

Author: dwq4182371, Created: 2018-08-23 10:59:04, Updated: 2018-10-17 10:17:34

'''backtest start: 2018-02-19 00:00:00 end: 2018-03-22 12:00:00 period: 15m exchanges: [{“eid”:“OKEX”,“currency”:“LTC_BTC”,“balance”:3,“stocks”:0}] '‘’ from fmz import * task = VCtx(doc) # initialize backtest engine from doc print exchange.GetAccount() print exchange.GetTicker() print task.Join() # print backtest result

GitHub 上给的示例 ,请问策略从哪里输进去


More

小小梦 print exchange.GetAccount() print exchange.GetTicker() 这些 就是 调用 API 接口了, 策略就写在这里。