Пример #1
0
        // 일별로 ETL 작업을 하면 쓸모없는 method
        // 전일 Position을 기준으로 당일 포지션을 만들음.
        public void makePositionFromPreDate(DateTime preDate, DateTime refDate)
        {
            DayPositions dps = new DayPositions();

            dps.loadPosition(preDate);

            DayPositions nextDps = dps.nextDateClone(refDate);

            nextDps.insertALL();
        }
Пример #2
0
        public DayPositions preDayPositions(DateTime tradingDate)
        {
            DayPositions dps = new DayPositions();

            dps.loadPosition(tradingDate);

            return dps;
        }
Пример #3
0
        public void build_tradingPosition()
        {
            // trading list
            ProfitLossCalculator plCalc = new ProfitLossCalculator();
            plCalc.ReferenceDate_ = this.ReferenceDate_;
            plCalc.loadTradeInfo();

            // 만들어진 빈거를 ㄱㄱ
            DayPositions dps = new DayPositions();
            dps.loadPosition(this.ReferenceDate_);

            // Trading 한거를 여기다가 덮어 씌움. // 더해
            plCalc.calcaultePositionBooking(dps);
            
        }