7359fd29a345057708ee611225dc01dd10273316,QUANTAXIS/QABacktest/QABacktest.py,QA_Backtest,QA_backtest_sell_all,#QA_Backtest#,603
Before Change
pre_del_id = reduce(lambda _, x: __sell(x),
range(len(__hold_list)))
pre_del_id.sort()
pre_del_id.reverse()
for item_x in pre_del_id:
__hold_list.pop(item_x)
After Change
__hold_list=pd.DataFrame(self.account.hold[1::], columns=self.account.hold[0]).set_index(
"code", drop=False)["amount"].groupby("code").sum()
for item in self.strategy_stock_list:
try:
if __hold_list[item] > 0:
self.QA_backtest_send_order(self, item, __hold_list[item], -1, {"bid_model": "C"})
except:
pass
@classmethod
def load_strategy(__backtest_cls, func, *arg, **kwargs):
"策略加载函数"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 7359fd29a345057708ee611225dc01dd10273316
Time: 2017-09-07
Author: yutiansut@qq.com
File Name: QUANTAXIS/QABacktest/QABacktest.py
Class Name: QA_Backtest
Method Name: QA_backtest_sell_all
Project Name: biotite-dev/biotite
Commit Name: b44dc788d6eaf6fe53cb6468763b46a0c4c74a12
Time: 2020-12-22
Author: anter.jacob@gmail.com
File Name: src/biotite/structure/charges.py
Class Name:
Method Name: partial_charges
Project Name: nipy/dipy
Commit Name: 1515fa64e1c94bca111980ed71b0423b891c5189
Time: 2015-11-13
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dsi.py
Class Name:
Method Name: create_qtable