Esempio n. 1
0
        private void button10_Click(object sender, EventArgs e)
        {
            try
              {
            // 당일 output 계산
            String datetime = GetData(DATE_KEY, RowType.Output);
            String kospi_price = GetData(KOSPI_PRICE, RowType.Output);
            String kospi_fut_price = GetData(KOSPI_FUTURE_PRICE, RowType.Output);
            String bond_rate = GetData(BOND_RATE, RowType.Output);
            String bond_fut_price = GetData(BOND_FUTURE_PRICE, RowType.Output);
            String dollar_price = GetData(USDKRW_PRICE, RowType.Output);
            String dollar_fut_price = GetData(USDKRW_FUTURE_PRICE, RowType.Output);

            MacroSpotData msd = new MacroSpotData();
            msd.KospiPrice = Convert.ToDouble(kospi_price);
            msd.KospiFuturePrice = Convert.ToDouble(kospi_fut_price);
            msd.BondRate = Convert.ToDouble(bond_rate);
            msd.BondFuturePrice = Convert.ToDouble(bond_fut_price);
            msd.UsdkrwPrice = Convert.ToDouble(dollar_price);
            msd.UsdkrwFuturePrice = Convert.ToDouble(dollar_fut_price);
            msd.CurDateTime = Convert.ToDateTime(datetime);

            MacroAssetAllocation maa = new MacroAssetAllocation();
            maa.Init(msd, 20);
            SetColumnValue(maa, 2);

            SetRowColor();
              }
              catch (Exception ex)
              {
            logger.Error(ex.ToString());
              }
        }
Esempio n. 2
0
 private void button9_Click(object sender, EventArgs e)
 {
     //전일데이터계산
       MacroAssetAllocation maa = new MacroAssetAllocation();
       maa.Init(null, 20);
       SetColumnValue(maa, 1);
 }