代做FIN2020、代写Java/c++程序语言
FIN2020 Excel and VBA – Individual Assignment
YOU MUST UPLOAD THE EXCEL FILE TO CANVAS BY
Deadline: 5:00 PM, Date: Monday 9th December 2024
Page 2 of 4

Assignment
The assignment contains two parts. In Part I, you are expected to build a mortgage
calculator. Part II requires a more advanced trading rule selector. All your works need to
be saved in one workbook. The cell references, formulas, and functions must be saved
and remain active in the spreadsheets. (Don't paste values!) Another workbook entitled
'Individual project information.xlsx' provides essential information related to the Part II
questions.
Part I: Mortgage calculator (40%)
You need to create a functional mortgage calculator that allows users to input loan
parameters and calculate monthly payments, total interest paid, and the loan amortization
schedule. The calculator needs to be built in one worksheet named “Mortgage Calculator”.
Input Fields must include the following elements:
Customer Information:
• Name
• Age
• Gender
• Age to retire
• Personal income (annual salary)
Loan Information:
• Loan amount
• Property value
• Fixed interest rate
• Fixed rate terms
• Flexible interest rate
• Loan term (years)
Other inputs can be added subject to demand.
The input should follow the constraints: 1) The loan term cannot exceed the remaining
working years of the customer (i.e., age to retire - current age); 2) The loan amount must not
exceed 90% of the property value; 3) the loan amount must not exceed 5 times the
customer's annual salary.
The calculator is designed to implement both fixed-rate and adjustable-rate mortgage
calculations. The mortgage starts with the fixed rate term. After the fixed rate term, your
calculator needs to re-compute the monthly payment based on the flexible interest rate, and
then adjust the payments periodically as the interest rate changes during the loan term.
The output requirements for the mortgage calculator are as follows:
• Monthly Payments: Calculate monthly payments for both fixed-rate and adjustablerate
mortgages.
• Amortization Schedule: Provide a detailed schedule that breaks down each payment
into principal and interest, and displays the remaining balance after each payment.
• Interest Rate Adjustments: For adjustable-rate mortgages, the amortization schedule
must reflect any changes in interest rates at specified adjustment periods. Page 3 of 4

• Loan Term Constraint: Ensure the loan term does not exceed the customer’s
remaining working years (age to retire - current age).
• Loan Amount Constraints: Verify that the loan amount is no more than 90% of the
property value and does not exceed five times the customer’s annual salary.
• Error Handling: Implement error messages to alert users if any input violates these
constraints, ensuring correct inputs entry.

Other output can be added if you would like to set up additional functions. Then, three charts
need to be created based on the outputs.
1): a pie chart showing the proportion of total payments that go towards principal vs. interest
over the life of the loan.
2): a line graph that displays the loan balance over time. This should clearly show how the
principal is paid down over the loan term.
3): a stacked bar chart that shows the monthly breakdown of principal and interest payments
for the first 24 months of the loan.

Part II: The trading rule selector (60%)
Some investors intend to apply several technical trading strategies in the US stock market.
They aim to create a trading rule selector using an Excel workbook to facilitate this.
However, they lack proficiency in Excel operations and VBA coding. Consequently, they
have enlisted your expertise to develop a user-friendly trading rule selector.
The investors have chosen specific stocks for investment but are uncertain about the
historical performance of the technical trading rules. Once the investors know about the
historical performance, they would like to invest in one or more of these trading rules to
generate profits. You are expected to finish the following tasks to achieve these targets. The
answers for Part II can be saved in different worksheets with meaningful worksheet names.
1) Each student is assigned 5 constituent stocks from the Standard & Poor's 500 index.
Please check the details from the 'Stock names' worksheet of 'Individual project
information.xlsx'. Obtain the daily closing price (last_price) series for these stocks
from Bloomberg. The data sample should range from 01/09/2022 (1st September
2022) to 01/09/2024 (1st September 2024). Save the obtained price series into the
workbook and name the new worksheet 'Original Stock prices'. No need to correct
the errors caused by the Bloomberg functions. No further calculations can be made
in this worksheet.
10%

2) Use the Excel and VBA knowledge from our lectures to construct 5 technical trading
rules for each stock. You need to save the process data, formulas, and functions in
the workbook properly. The 5 trading rules include the following:

a. 3 Moving Average rules: If the daily closing price of the stock moves up above
the moving average over the past q days, MA(q), go long the stock until its
daily closing price moves down below MA(q), at which time go short the
stock. If the stock's daily closing price moves down below MA(q), go short Page 4 of 4

until the daily closing price moves up above MA(q), at which time go long the
stock.

b. 2 Oscillator rules: If the relative strength indicator (RSI) over the past h days,
RSI(h), is above 50 + v for at least 2 days and then moves below 50 + v, go
short the stock and hold the position until the next signal. If RSI(h) is below
50-v for at least 2 days and then moves above 50-v, go long the stock and
hold the position until the next signal. No signals are generated in other
scenarios.


As a result, you will have 5*5=25 trading rules in total. The trading rule inputs, e.g., q,
h, and v, are assigned according to your student number in the 'TTR inputs'
worksheet of 'Individual project information.xlsx'.
20%

3) In-sample evaluation. Your task involves creating a user-friendly input system, either
as a window or within a worksheet, to collect specific information from users. Here
are the details:
• Users should be able to input their personal information, including their name,
age, and initial investment amount.
• They should also be able to select a stock of their choice.
• Users can specify their preferred performance metrics, such as high profits,
low volatility, or a high Sharpe/Sortino ratio.
• Include a 'Start' button that, when clicked, initiates the calculations.
Upon receiving this information and clicking 'Start,' the system should:
• Identify and report the name of the technical trading rule that best aligns with
the user's specified requirements for performance metrics. For example, if the
users choose the Sharpe ratio (volatility) as the performance metric, the
trading rule with the highest (lowest) Sharpe ratio should be presented.
• Generate a cumulative performance plot based on the returns generated by
the chosen trading rule and the initial investment amount.

Your solution should make it easy for users to input their preferences and receive
clear information on the selected trading rule's name and the cumulative
performance of their investment.
30%

Save your workbook titled 'Your student number+FIN2020' (for instance, your student
number is 123456, the file title should be 123456FIN2020) and ensure it is in the
appropriate format to support the VBA code.

Once you are done, please upload your workbook on Canvas by 5:00 PM (UK time).
Date: Monday 9th December 2024.
Good luck!

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图