b7054214018080d27f6b6d008ee7ab6830aa6660,QUANTAXIS/QABacktest/QABacktest.py,QA_Backtest,handle_data,#QA_Backtest#Any#,269
Before Change
for item in __hold_list:
self.bid.bid["amount"] = int(item[3])
self.bid.bid["order_id"] = str(random.random())
self.bid.bid["price"] = "close_price"
self.bid.bid["code"] = str(item[1])
self.bid.bid["date"] = self.trade_list[self.end_real_id]
self.bid.bid["towards"] = -1
After Change
// 在回测的最后一天,平掉所有仓位(回测的最后一天是不买入的)
while len(self.account.hold) > 1:
__hold_list = self.account.hold[1::]
input()
for item in __hold_list:
__last_bid=self.bid.bid
__last_bid["amount"] = int(item[3])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: b7054214018080d27f6b6d008ee7ab6830aa6660
Time: 2017-06-19
Author: yutiansut@qq.com
File Name: QUANTAXIS/QABacktest/QABacktest.py
Class Name: QA_Backtest
Method Name: handle_data
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: f22d1d6e7bc5da69a0cd0988070d1c878517bde7
Time: 2017-09-05
Author: yutiansut@qq.com
File Name: QUANTAXIS/QABacktest/QABacktest.py
Class Name: QA_Backtest
Method Name: __sync_order_LM
Project Name: keras-team/keras
Commit Name: 3a5a090b231a67b6531cc2da3c40ee4dc34801c2
Time: 2018-02-02
Author: cclauss@bluewin.ch
File Name: keras/utils/io_utils.py
Class Name:
Method Name: ask_to_proceed_with_overwrite