//private bool RebuildPositionFlag_; private void baseData_generate(DateTime refDate) { BaseDataGeneration bdg = new BaseDataGeneration(); bdg.ReferenceDate_ = refDate; // batch 초기화임. bdg.batchjob_result(); SystemBatchManager.updateBatchJobID_start(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.BASE_DATAGENERATE); // empty_calculation result를 만듬 // bdg.build_calculation(); // -- BatchJobID : 430 //if (RebuildPositionFlag_) //{ // 전일자로 부터 포지션 초기화 -- BatchJobID : 130 bdg.build_position(); // Trading 한거 초기화 -- BatchJobID : 140 bdg.build_tradingPosition(); //} SystemBatchManager.updateBatchJobID_end(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.BASE_DATAGENERATE); }
public void baseData_generate(DateTime refDate) { BaseDataGeneration bdg = new BaseDataGeneration(); bdg.ReferenceDate_ = refDate; // batch 초기화임. bdg.batchjob_result(); updateBatchJobID_start(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.BASE_DATAGENERATE); // Position down ( 외부 포지션) -- BatchJobID : 110 // empty_calculation result를 만듬 -- BatchJobID : 120 // calculation 할때로 옮김 // bdg.build_calculation(); // rebuild position from trading( 원래 trading 하면서 박힘 , 선택적으로 다시 빌드해서 넣을 수 있음. ) // -- BatchJobID : 430 if ( RebuildPositionFlag_ ) { // 전일자로 부터 포지션 초기화 -- BatchJobID : 130 bdg.build_position(); // Trading 한거 초기화 -- BatchJobID : 140 bdg.build_tradingPosition(); } updateBatchJobID_end(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.BASE_DATAGENERATE); }