public UnderlyingHedgedViewModel(ELSUnderlyingStock hedgeStock)
        {
            // TODO: Complete member initialization
            this.hedgeStock = hedgeStock;

            this.name_         = hedgeStock.Name_;
            this.basePrice_    = hedgeStock.BasePrice_;
            this.currentPrice_ = hedgeStock.BasePrice_;
            this.assetParity_  = this.basePrice_ / this.currentPrice_;
        }
        public UnderlyingHedgedViewModel(ELSUnderlyingStock hedgeStock)
        {
            // TODO: Complete member initialization
            this.hedgeStock = hedgeStock;

            this.name_ = hedgeStock.Name_;
            this.basePrice_ = hedgeStock.BasePrice_;
            this.currentPrice_ = hedgeStock.BasePrice_;
            this.assetParity_ = this.basePrice_ / this.currentPrice_;

        }
Beispiel #3
0
        //public ELSStepDownGreekPositionViewModel(ELSUnderlyingStock stock,
        //                                         StandardInstrument elsInst)
        public ELSStepDownGreekPositionViewModel(ELSUnderlyingStock stock)
        {
            //this.krCode_ = elsInst.InstInfo_.KRCode_;
            //this.name_ = elsInst.InstInfo_.ProductName_;
            //this.underlyingName_ = stock.Name_;

            ////casting 해서 써야댐? 그외에는 없나.. 2013-08-06

            ////NoteInformation info = elsInst.InstInfo_ as NoteInformation;
            ////this.notional_ = info.Notional_;
            //this.notional_ = elsInst.InstInfo_.Notional_;

            this.baseUnderlyingPrice_ = stock.BasePrice_;
            this.assetParity_         = stock.CurrentPrice_ / stock.BasePrice_;
            this.neededQuantity_      = Convert.ToInt32(stock.Delta_.Value_);
            this.neededDeltaPosition_ = this.notional_ * (int)this.neededQuantity_;
            this.pastDayIncome_       = 999;
            this.cumulativeIncome_    = 999;
        }
        //public ELSStepDownGreekPositionViewModel(ELSUnderlyingStock stock,
        //                                         StandardInstrument elsInst) 
        public ELSStepDownGreekPositionViewModel(ELSUnderlyingStock stock) 
        {
            //this.krCode_ = elsInst.InstInfo_.KRCode_;
            //this.name_ = elsInst.InstInfo_.ProductName_;
            //this.underlyingName_ = stock.Name_;
            
            ////casting 해서 써야댐? 그외에는 없나.. 2013-08-06

            ////NoteInformation info = elsInst.InstInfo_ as NoteInformation;
            ////this.notional_ = info.Notional_;
            //this.notional_ = elsInst.InstInfo_.Notional_;

            this.baseUnderlyingPrice_ = stock.BasePrice_;
            this.assetParity_ = stock.CurrentPrice_ / stock.BasePrice_;
            this.neededQuantity_ = Convert.ToInt32(stock.Delta_.Value_);
            this.neededDeltaPosition_ = this.notional_ * (int)this.neededQuantity_;
            this.pastDayIncome_ = 999;
            this.cumulativeIncome_ = 999;

        }