Exemplo n.º 1
0
    public void Create()
    {
      Structure = new BondStructure();
      bondStructureComponentsEditor1.Create(Structure);
      periodReturnChartLevels.Create();
      periodReturnChartVol.Create();
      bondStructureDescriptionControl1.Bind(Structure);

      bondStructureComponentsEditor1.GoClicked += (x, y) => run();
      bondStructureComponentsEditor1.FocusChanged += (x, y) => run();

      regressionChartingControl1.Create("IT 10 DE 10");
      regressionChartingControl2.Create("IT 10");
      regressionChartingControl3.Create("IT 10 IT 30");

      bondStructureRegressionSettings1.Create(
        new[]
        {
          regressionChartingControl1,
          regressionChartingControl2,
          regressionChartingControl3
        }.Select(x => x.RegArgs).ToArray());

      periodButtons1.Create();
      periodButtons1.TimePeriodChanged += (x, y) =>
      {
        periodReturnChartLevels.Period = periodButtons1.Period;
        periodReturnChartVol.Period = periodButtons1.Period;
        bondStructureDescriptionControl1.Period = periodButtons1.Period;
      };
    }
    internal void Create(BondStructure structure_)
    {
      InternalStructure = structure_;
      focusSwitchControl1.SelectedFocus = Enums.Focus.Yield;

      foreach (var comp in structure_.Components)
        addControlFor(comp);
    }
Exemplo n.º 3
0
    public override void Create()
    {
      base.Create();

      Structure = new BondStructure();
      quickLookComponentsEditor1.Create(Structure);

      quickLookComponentsEditor1.FocusChanged += (x, y) => Action();
      quickLookComponentsEditor1.GoClicked += (x, y) => Action();
    }
    public BondStructureFwdAnalysis(BondStructure structure_)
    {
      m_asOfAte = CarbonHistoricRetriever.GetDateForward(DateTime.Today, -1);
      m_fwdDate = CarbonHistoricRetriever.GetDateForward(AsOfSettleDate, 1, Symmetry.Carbon.Model.DateUnit.M);
      m_structure = structure_;

      Lines = new BindingList<BondStructureFwdAnalysisLine>();
      foreach (var v in structure_.Components)
        Lines.Add(new BondStructureFwdAnalysisLine(this,v));
      Lines.Add(CombinedLine= new BondStructureFwdAnalysisLine("Combined"));

    }
    internal void Bind(BondStructure structure_)
    {
      subscribeToLive(false);
      m_structure = structure_;
      
      lblLevel.Bind(m_args, "Level", new Validators.DoubleValidator("##0.0##"));
      lblChange.Bind(m_args, "Change", new Validators.DoubleValidator("##0.0##"));
      lblHigh.Bind(m_args, "High", new Validators.DoubleValidator("##0.0#"));
      lblLow.Bind(m_args, "Low", new Validators.DoubleValidator("##0.0#"));
      lblAvg.Bind(m_args, "Average", new Validators.DoubleValidator("##0.0#"));
      lblZScore.Bind(m_args, "ZScore", new Validators.DoubleValidator("##0.0"));

      recalcWindow();
    }
    internal void Create(BondStructure structure_)
    {
      disposeCurrent();

      Analysis = new BondStructureFwdAnalysis(structure_);
      Analysis.CalculationFinished += handleCalcFinished;

      boundInfraGrid1.Bind(Analysis.Lines);

      dtpFwdDate.DateTime = Analysis.ForwardDate;
      dtpFwdDate.MinDate = MyCalendar.NextTradeDate(DateTime.Today.AddDays(2d), "TGT");

      boundInfraGrid1.AllowEdits();
      boundInfraGrid1.AddEditHandler(BondStructureFwdAnalysisLine.GetKey(FALField.RepoRate), this);
    }
 public void Dispose()
 {
   m_structure = null;
 }