public void buildParameterXmlData(XmlWriter xmlWriter) { List <string> underStrList = new List <string>(); xmlWriter.WriteStartElement("underlyingInfo"); foreach (UnderlyingParameter item in UnderlyingParameterList_) { item.buildParameterXmlData(xmlWriter); underStrList.Add(item.Underlying_.KRCode_); } CorrelationLoader corrLoader = new CorrelationLoader(); corrLoader.ReferenceDate_ = this.referenceDate_; //corrLoader.loadData(); double corrValue = corrLoader.corr(underStrList[0], underStrList[1]); xmlWriter.WriteElementString("corr", corrValue.ToString()); xmlWriter.WriteEndElement(); //Matrix part //dim //diag //remain Part }
private void buttonSetting_Click(object sender, RoutedEventArgs e) { //ELSHedgeMonitorView view = new ELSHedgeMonitorView(); //ELSStepDownLoader loader = new ELSStepDownLoader(); //StepDownELSInformation info = loader.stepDownload(); //ELSHedgeMonitorViewModel viewModel = new ELSHedgeMonitorViewModel(); //ELSStepDownDeltaHedgeViewModel elsViewModel = new ELSStepDownDeltaHedgeViewModel(info); //viewModel.add(elsViewModel); //viewModel.add(elsViewModel); //view.ELSHedgeMonitorViewCtrl_.setViewModel(viewModel); //DocumentPane_.Children.Add(view); CorrelationLoader loader = new CorrelationLoader(); //loader.ReferenceDate_ = DateTime.Now.AddDays(-1); loader.ReferenceDate_ = new DateTime(2013, 9, 2); loader.loadData(); loader.corr("KR7069960003", "KR7060980000"); }
public void buildParameterXmlData(XmlWriter xmlWriter) { List<string> underStrList = new List<string>(); xmlWriter.WriteStartElement("underlyingInfo"); foreach (UnderlyingParameter item in UnderlyingParameterList_) { item.buildParameterXmlData(xmlWriter); underStrList.Add(item.Underlying_.KRCode_); } CorrelationLoader corrLoader = new CorrelationLoader(); corrLoader.ReferenceDate_ = this.referenceDate_; //corrLoader.loadData(); double corrValue = corrLoader.corr(underStrList[0], underStrList[1]); xmlWriter.WriteElementString("corr", corrValue.ToString()); xmlWriter.WriteEndElement(); //Matrix part //dim //diag //remain Part }