3e208139a1062ce13b74b587bfd5d8af0e536002,QUANTAXIS/QACmd/strategy_sample_simple.py,backtest,init,#backtest#,7

Before Change


        //gap是回测时,每日获取数据的前推日期(交易日)
        self.strategy_gap=90
        //初始化一个cookie
        self.account.account_cookie=str(random.random())
        //设置全局的数据库地址,回测用户名,密码
        self.setting.QA_util_sql_mongo_ip="127.0.0.1"
        self.setting.QA_setting_user_name="yutiansut"
        self.setting.QA_setting_user_password="yutiansut"

After Change


        
        self.start_real_date = QA.QA_util_get_real_date(
            self.strategy_start_date, self.trade_list, 1)
        self.start_real_id = self.trade_list.index(self.start_real_date)
        self.end_real_date = QA.QA_util_get_real_date(
            self.strategy_end_date, self.trade_list, -1)
        self.end_real_id = self.trade_list.index(self.end_real_date)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3e208139a1062ce13b74b587bfd5d8af0e536002
Time: 2017-05-31
Author: yutiansut@qq.com
File Name: QUANTAXIS/QACmd/strategy_sample_simple.py
Class Name: backtest
Method Name: init


Project Name: pysb/pysb
Commit Name: 590e29dd3dca1f837ab70c67f3a628c7ee032ac9
Time: 2017-05-01
Author: alubbock@users.noreply.github.com
File Name: pysb/simulator/cupsoda.py
Class Name: CupSodaSimulator
Method Name: _get_cmatrix


Project Name: mozilla/mozregression
Commit Name: 69f1be7dec004493c2f6b1bafffc556de8b09d8a
Time: 2016-02-04
Author: wasif_hyder@hotmail.com
File Name: gui/mozregui/report_delegate.py
Class Name: AskVerdict
Method Name: __init__


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: c8021a75ee19bdcb8c1d1be7989302691871b9bb
Time: 2018-10-01
Author: jcastaldo08@gmail.com
File Name: category_encoders/helmert.py
Class Name: HelmertEncoder
Method Name: helmert_coding