{ From user David, Model Untitled1 at 21-Aug-2013 4:55:29 PM, encoding="UTF-8" } SoftwareVersion 4.5.0 { System Variables with non-default values: } Time := Sequence( 0, 2*ZhaiQuanDeDaoQi, 1 ) WindState Time: 2,102,83,476,224 TypeChecking := 1 Checking := 5 WindState RandomSeed: 2,80,349,476,224 ShowHier := 1 SaveOptions := 2 SaveValues := 0 DistResol := 4 CdfResol := 4 {!40000|ShowDescriptionMarks := 1} {!40000|Att_ContLineStyle Graph_Primary_Valdim: 1} {!40000|Att_CatLineStyle Graph_Primary_Valdim: 9} {!40300|Sys_DomainSelfIndex := 1} {!40400|Sys_AllNullTreatment := 1} Attribute Reference Attribute Date_bough Attribute Notes Attribute Additional Attribute New_attribute AskAttribute Reference,Function,Yes AskAttribute Notes,Function,Yes AskAttribute New_attribute,Function,Yes AskAttribute Reference,Module,Yes AskAttribute Notes,Module,Yes AskAttribute Value,Variable,Yes AskAttribute Domain,Variable,Yes AskAttribute Reference,Variable,Yes AskAttribute Notes,Variable,Yes Model Untitled1 Author: Renee Date: Thu, Jan 22, 2009 3:41 PM SaveAuthor: David SaveDate: Wed, Aug 21, 2013 4:55 PM DefaultSize: 48,24 DiagState: 2,1,7,1084,686,19 WindState: 2,7,93,476,224 FontStyle: Arial, 15 FileInfo: 0,Model Untitled1,2,2,0,0,C:\temp\Printing_test_model.ana Att__DiagramPrintSca: 74,1,1,1,1,1,2794,2159,15,0 {!40400|Att_clearTypeFonts: 0} Variable Va1 Description: This node have a description Definition: Table(Time,Self)(~ 10,~ 100,~ 500~ ) IndexVals: ['item 1'] NodeLocation: 168,104,1 NodeSize: 48,24 DefnState: 2,224,249,416,303,0,MIDM ValueState: 2,163,153,416,303,1,MIDM ReformDef: [Self,Time] ReformVal: [Self,Time] Index In1 Definition: Va1 NodeLocation: 304,104,1 NodeSize: 48,24 ValueState: 2,248,258,416,303,0,MIDM ReformVal: [Time,Va1] Text Te1 Description: This is a long title for a node NodeLocation: 120,205,-1 NodeSize: 48,29 NodeInfo: 1,0,0,1,1,1,0,,0, Module Mo1 Author: Renee Date: Fri, Jan 23, 2009 2:25 PM DefaultSize: 56,24 NodeLocation: 264,200,1 NodeSize: 48,24 Close Mo1 Variable Va2 NodeLocation: 1008,528,1 NodeSize: 48,24 Variable Va3 NodeLocation: 776,608,1 NodeSize: 48,24 Constraint Ct1 NodeLocation: 232,592,1 NodeSize: 48,24 Text Te2 NodeLocation: 920,200,-1 NodeSize: 48,24 Text Te3 NodeLocation: 960,592,-1 NodeSize: 48,24 Module ZhaiQuanRongZiMoXin Title: 債券融資模型的細節 Description: 一個這個模型來計算現金流量,目前的收益率和到期收益率 採用典型債券購買输入 (購買價格,面值,利率,到期期限)~ ~ 由創建的模型 Robert D. Brown, III, Director of Business Systems Modeling, Integrated Product Development (請參閱筆者說明). Author: Robert D. Brown, III~ Director of Business Systems Modeling~ Integrated Product Development~ 11450 Technology Circle~ Duluth, GA 30097-1504~ 678.473.8515~ 678.473.2100 fax~ rob.brown@antec.com Date: Tue, Sep 30, 1997 2:02 PM SaveAuthor: Fred SaveDate: Tue, Mar 19, 2013 1:56 PM NodeLocation: 672,176,1 NodeSize: 48,32 NodeInfo: 1,1,1,1,1,1,0,0,0,0, DiagState: 2,24,5,906,524,17 WindState: 2,102,83,476,224 FontStyle: Arial, 13 PageSetup: (00030000004800480000000002D80228FFE1FFE202F902460347052803FC00020000004800480000000002D80228000100000064000000010003030300000001270F000100010000000000000000000000006008001901900000000000000000000000000000000000000000000000000000000000000000) OutlinerState: 2,40,43,448,280 {!40400|Att_clearTypeFonts: -1} FormNode Purchase_value_of_bo Title: Purchase Value of Bond Definition: 0 NodeLocation: 168,80,1 NodeSize: 160,16 Original: ZhaiQuanGouMaiJiaGe FormNode Par_value_of_bond1 Title: Par Value of Bond Definition: 0 NodeLocation: 168,120,1 NodeSize: 160,16 Original: PiaoMianJiaZhiDeZha FormNode Number_of_bonds_purc Title: Number of Bonds Purchased Definition: 0 NodeLocation: 168,160,1 NodeSize: 160,16 Original: DuoShaoZhaiQuanYiWu FormNode Coupon_rate_of_bond1 Title: Coupon Rate of Bond Definition: 0 NodeLocation: 168,200,1 NodeSize: 160,16 WindState: 2,102,83,476,224 Original: GaiZhaiQuanDePiaoMi FormNode Life_to_maturity1 Title: Life to Maturity Definition: 0 NodeLocation: 168,240,1 NodeSize: 160,16 NodeInfo: 1,0,0,1,0,0,0,70,0,1, Original: ZhaiQuanDeDaoQi FormNode Yield_to_maturity1 Title: Yield to Maturity Definition: 1 NodeLocation: 484,120,1 NodeSize: 148,16 Original: DaoQiShouYiLu Module MoXingDeXiJie Title: 模型的細節 Description: 一個這個模型來計算現金流量,目前的收益率和到期收益率 採用典型債券購買输入 (購買價格,面值,利率,到期期限)。~ ~ 每半年一次的優惠券收到付款。 的單位"Time"索引 因此单位是1/2年。 例如,如果你輸入一個債券的到期 "5",現金流量, "Time" 为索引,將運行從0到10。 Author: Robert D. Brown, III~ Director of Business Systems Modeling~ Integrated Product Development~ 11450 Technology Circle~ Duluth, GA 30097-1504~ 678.473.8515~ 678.473.2100 fax~ rob.brown@antec.com Date: Thu, Apr 22, 1999 3:32 PM DefaultSize: 48,24 NodeLocation: 480,176,1 NodeSize: 64,24 DiagState: 2,115,138,821,439,17 WindState: 2,125,26,476,224 FontStyle: Arial, 12 OutlinerState: 2,40,43,448,280 Decision ZhaiQuanGouMaiJiaGe Title: 債券購買價格 Units: ¥ Description: 債券購買價格 用作模型輸入。 Definition: subtable(ZhaiQuanTouZiZuHe1[GongSiMingDan= XuanZeZhaiQuan, ZhaiQuanXinXi='債券購買價格'] ) NodeLocation: 192,40,1 NodeSize: 48,24 WindState: 2,46,75,761,413 DefnState: 2,408,411,416,303,0,MIDM ValueState: 2,243,510,416,303,0,MIDM Aliases: FormNode Purchase_value_of_bo ReformVal: [Self,GongSiMingDan] Decision PiaoMianJiaZhiDeZha Title: 票面價值的債券 Units: ¥ Description: 債券證書上顯示到期值(於到期日付款)。 Definition: subtable(ZhaiQuanTouZiZuHe1[GongSiMingDan= XuanZeZhaiQuan, ZhaiQuanXinXi='票面價值的債券'] ) NodeLocation: 192,160,1 NodeSize: 48,24 WindState: 2,321,209,473,224 Aliases: FormNode Par_value_of_bond1 Decision DuoShaoZhaiQuanYiWu Title: 多少債券已於購買 Description: 多少債券已於購買。 Definition: subtable(ZhaiQuanTouZiZuHe1[GongSiMingDan= XuanZeZhaiQuan, ZhaiQuanXinXi='多少債券已於購買']) NodeLocation: 192,104,1 NodeSize: 48,24 WindState: 2,361,282,690,315 Aliases: FormNode Number_of_bonds_purc Decision GaiZhaiQuanDePiaoMi Title: 該債券的票面利率 Units: 百分比 / 年 Description: 上述債券的利息。用於確定息票支付。 ~ 債券票面 = 利率 * 面值 Definition: subtable(ZhaiQuanTouZiZuHe1[GongSiMingDan= XuanZeZhaiQuan, ZhaiQuanXinXi='該債券的票面利率']) NodeLocation: 192,272,1 NodeSize: 48,24 WindState: 2,109,108,760,300 DefnState: 2,222,495,416,303,0,MIDM ValueState: 1,168,178,416,303,0,MIDM Aliases: FormNode Coupon_rate_of_bond1 NumberFormat: 1,%,4,2,0,0 Decision ZhaiQuanDeDaoQi Title: 債券的到期 Units: 年 Description: 列表抉擇從發行至到期日的時間。 此列表可以編輯提供其他的選擇。 注意,“Choice” 功能 “inclAll” 參數設置為 “False”,因為這個參數是用來作為輸入到 “Time” 變量。 Definition: Choice(Self,1,False) NodeLocation: 192,216,1 NodeSize: 48,24 WindState: 2,92,176,664,300 Aliases: FormNode Life_to_maturity1 Domain: [5,7,10,15,20] {!40300|DomainExpr: Discrete(5,7,10,15,20,type:'number')} {!40200|Att_ChoiceIndexes: Keyword Self} Objective ZhaiQuanDeXianJinLi Title: 債券的現金流 Units: ¥ Description: 債券的現金流 Definition: ZhaiQuanTouZiJinE+ZhaiQuanPiaoXiFuKua+TouZiHuiShou NodeLocation: 496,168,1 NodeSize: 48,24 WindState: 2,102,83,476,224 ValueState: 2,-2,244,800,430,1,MIDM Aliases: FormNode Bond_cash_flows1 NodeColor: -1,-13109,-13109 GraphSetup: ProbIndex:[0.05 ,0.25 ,0.5 ,0.75 ,0.95 ]~ StatsSelect:[1 ,1 ,1 ,1 ,1 ,0 ,0 ,0 ]~ IncludeZZero:0~ IncludeYZero:0~ IncludeXZero:0~ Yintervals:0~ Xintervals:0~ Zmaximum:1~ Zminimum:1~ Ymaximum:100K~ Yminimum:-100K~ Xmaximum:100~ Xminimum:0~ ShowKey:1~ FrameAuto:1~ Depth:70~ Tilt:0~ Rotation:45~ Scales:1~ Mesh:1~ Ticks:1~ Frame:1~ LineStyle:10~ SymbolSize:6~ CdfSteps:1~ CdfResol:4~ DistSteps:1~ DistResol:4~ GraphTool:0~ {!40000|Graph_HLabelRotation:0} ReformVal: [GongSiMingDan,Time] Variable ZhaiQuanTouZiJinE Title: 債券投資金額 Units: ¥ Description: 計算的現金流的債券購買。 將是一個負現金流(支付)第一年(0), 然後在隨後的幾年中的“0”。 Definition: If Time=0 Then -DuoShaoZhaiQuanYiWu*ZhaiQuanGouMaiJiaGe Else 0 NodeLocation: 344,56,1 NodeSize: 48,24 WindState: 2,163,292,400,300 ValueState: 2,216,226,416,303,0,MIDM Variable TouZiHuiShou Title: 投資回收 Units: ¥ Description: 於到期日的債券(面值)的最後一次付款的現金流量。 0在到期日之前的幾年。 Definition: If Time=ZhaiQuanDeDaoQi*2 Then DuoShaoZhaiQuanYiWu*PiaoMianJiaZhiDeZha Else 0 NodeLocation: 344,120,1 NodeSize: 48,24 WindState: 2,102,83,476,224 ValueState: 2,72,82,416,303,0,MIDM Variable ZhaiQuanPiaoXiFuKua Title: 債券票息付款 Units: ¥ Description: 債券投資收到的利息支付半年。 Definition: If Time>0 And Ceil(Time/2)<=ZhaiQuanDeDaoQi Then (MeiBanNianYiCiDeLiL)*DuoShaoZhaiQuanYiWu*PiaoMianJiaZhiDeZha Else 0 NodeLocation: 344,192,1 NodeSize: 48,24 WindState: 2,119,346,400,300 ValueState: 1,200,210,416,303,0,MIDM Variable MeiBanNianYiCiDeLiL Title: 每半年一次的利率 Units: 百分比 Description: 每半年一次的利率 Definition: (GaiZhaiQuanDePiaoMi/2) NodeLocation: 344,264,1 NodeSize: 48,24 WindState: 2,102,83,476,224 ValueState: 1,184,194,416,303,0,MIDM Function XiangDang_WuQiLiLu(APR, N) Title: 相當 於期利率 Description: 計算增量的年複合利率利率。~ APR = 年百分比率~ N = 每年的複利期數 Definition: ((1+APR)^(1/N))-1 NodeLocation: 608,48,1 NodeSize: 48,24 WindState: 2,102,90,623,300 Objective DaoQiShouYiLu Title: 到期收益率 Units: 百分比 Description: 也稱為內部回報率,的投資者預期的回報。 Definition: (1+Irr( ZhaiQuanDeXianJinLi, Time, .08 ))^2-1 NodeLocation: 608,160,1 NodeSize: 48,24 WindState: 2,488,84,400,300 ValueState: 1,40,50,416,303,0,MIDM Aliases: FormNode Yield_to_maturity1 NumberFormat: 1,%,4,2,0,0 Objective ZhaiQuanMuQianDeSho Title: 債券目前的收益率 Units: 百分比 Description: 利息支付的債券。用於購買證券價格作出調整。 Definition: GaiZhaiQuanDePiaoMi*PiaoMianJiaZhiDeZha/ZhaiQuanGouMaiJiaGe NodeLocation: 72,160,1 NodeSize: 48,24 WindState: 2,102,83,476,224 ValueState: 2,200,210,416,303,1,MIDM Aliases: FormNode Current_yield1 NumberFormat: 1,%,4,2,0,0 Module ZhaiQuanTouZiZuHe Title: 債券投資組合 Author: Fred Date: Sun, Mar 17, 2013 11:07 AM NodeLocation: 736,48,1 NodeSize: 56,24 NodeInfo: 1,1,0,1,1,1,0,,0,,0 DiagState: 2,64,61,960,399,17 Index GongSiMingDan {!40000|Att_PrevIndexValue: [' 中國移動通信','中國建設銀行','中电光伏']} Title: 公司名單 Definition: [' 中國移動通信','中國建設銀行','中电光伏'] NodeLocation: 160,80,1 NodeSize: 48,24 NodeInfo: 1,0,0,1,1,1,0,,0,,0 Index ZhaiQuanXinXi {!40000|Att_PrevIndexValue: ['債券購買價格','票面價值的債券','多少債券已於購買','該債券的票面利率']} Title: 債券信息 Definition: ['債券購買價格','票面價值的債券','多少債券已於購買','該債券的票面利率'] IndexVals: ['item 1'] NodeLocation: 160,152,1 NodeSize: 48,24 NodeInfo: 1,0,0,1,1,1,0,,0,,0 WindState: 2,60,46,476,224 ValueState: 2,822,110,416,303,0,MIDM Variable ZhaiQuanTouZiZuHe1 Title: 債券投資組合 Definition: Table(GongSiMingDan,ZhaiQuanXinXi)(~ 50,90,1000,0.2,~ 20,100,2000,0.3,~ 20,103,1500,0.25) NodeLocation: 288,80,1 NodeSize: 56,24 WindState: 2,780,77,476,489 DefnState: 2,7,17,680,303,0,MIDM ValueState: 2,360,363,635,303,0,MIDM ReformDef: [GongSiMingDan,ZhaiQuanXinXi] ReformVal: [GongSiMingDan,ZhaiQuanXinXi] Variable XuanZeZhaiQuan Title: 選擇債券 Definition: Choice(GongSiMingDan,1,True) NodeLocation: 288,152,1 NodeSize: 48,24 Aliases: FormNode Select_bond1 {!40200|Att_ChoiceIndexes: Index GongSiMingDan} Close ZhaiQuanTouZiZuHe Close MoXingDeXiJie FormNode Bond_cash_flows1 Title: Bond Cash Flows Definition: 1 NodeLocation: 484,40,1 NodeSize: 148,16 NodeColor: -1,-13109,-13109 Original: ZhaiQuanDeXianJinLi FormNode Current_yield1 Title: Current Yield Definition: 1 NodeLocation: 484,80,1 NodeSize: 148,16 Original: ZhaiQuanMuQianDeSho FormNode Select_bond1 Title: Select bond Definition: 0 NodeLocation: 168,40,1 NodeSize: 160,16 NodeInfo: 1,0,0,1,0,0,0,132,0,1, Original: XuanZeZhaiQuan Close ZhaiQuanRongZiMoXin Close Untitled1 {!-40499|MsgBox("This file is encoded in UTF-8 format and contains non-ascii characters. To properly read UTF-8 format, you need to upgrade to Analytica 4.5 or later. If your continue to use this model in this release of Analytica, unicode and extended ascii characters will become distorted and may cause parts of the model to break.",16,"Analytica 4.5 required")}