Exemplo n.º 1
0
        void AddAdjsForAdjAlloc(List<IAdj> adjs)
        {
            {
                MacroAA_Adj adj = new MacroAA_Adj("MacroAA");
                adjs.Add(adj);
            }

            {
                BokRateAdj adj = new BokRateAdj("BokRate", new BokRatePolicy_Static(), 1.0);
                adjs.Add(adj);
            }

            {
                KrxCredRateAdj adj = new KrxCredRateAdj("CD", new CreditPolicyWithUpDownMA(1.5));
                adjs.Add(adj);
            }
        }
Exemplo n.º 2
0
        void RunAppAdjToExcelAdjResultConverter()
        {
            //tmp
            SimInputData input = _controller.GetDefaultInputData();
            MarketDataSet marketData = DataUtil.GetBaseMarketData(input);

            List<IAdj> adjs = new List<IAdj>();

            {
                MacroAA_Adj adj = new MacroAA_Adj("MacroAA_Adj");
                adjs.Add(adj);
            }

            {
                DeltaVolAdj adj = new DeltaVolAdj("DeltaVol", 1.0);
                adjs.Add(adj);
            }

            {
                KrxCredRateAdj adj = new KrxCredRateAdj("KrxCredAdj", new CreditPolicyWithUpDownMA(1.5));
                adjs.Add(adj);
            }

            {
                BokRateAdj adj = new BokRateAdj("BokRateAdj", new BokRatePolicy_Static(), 1.0);
                adjs.Add(adj);
            }

            {
                KoVolAdj adj = new KoVolAdj("KoVolAdj", 1.0);
                adjs.Add(adj);
            }

            {
                DollarPriceAdj adj = new DollarPriceAdj("DollarAdj", 0.9);
                adjs.Add(adj);
            }

            {
                CycleEqAdj adj = new CycleEqAdj("Cycle", 1.0);
                adjs.Add(adj);
            }

            {
                RealIrAdj adj = new RealIrAdj("RealIR", 1.0);
                adjs.Add(adj);
            }

            //{
            //    ExcelAdj adj = new ExcelAdj("RealIR", "RealRateIr_Adj_result.xlsx");
            //    adjs.Add(adj);
            //}

            //{
            //    ExcelAdj adj = new ExcelAdj("Cycle", "CycleEq_Adj_result.xlsx");
            //    adjs.Add(adj);
            //}

            AdjExcelAdjResultConverter converter = new AdjExcelAdjResultConverter(input, adjs, marketData);
            converter.Generate();
        }