Can you use code to subtract one from the first date and add one to the second?
I am writing a little script that will allow you to enter 2 dates and it will give your the TSP fund returns during that period. I'm having a hard deciding how to ask for the dates.
There are a few ways to do it, but which way makes more sense to you, the user?...
Let's say you have to enter a START_DATE and an END_DATE
If you enter July 1 and July 31, you would think you'd get the returns for the month of July, but what you'd actually get is July 2 through July 31 since the July 1 prices are COB prices.
To get the full July monthly return you'd actually have to enter June 30 and July 31. I'm guessing that will confuse a lot of folks.
I'm looking for ideas on how to ask the user to enter the dates: Some examples...
Enter Start Date:
Enter End Date:
Enter Start COB Date:
Enter End COB Date:
I could program it so that if someone enters July 1, it automatically starts with COB June 30.
Etc.?
Thanks for your input!
Tom
Market Commentary | My Blog | TSP Talk Plus | |
I am not a Registered Investment Advisor and this is not investment advice. Please do your own due diligence.
Can you use code to subtract one from the first date and add one to the second?
That may be the best way to go - the first date one. I think the second date will work as is.
Tom
Market Commentary | My Blog | TSP Talk Plus | |
I am not a Registered Investment Advisor and this is not investment advice. Please do your own due diligence.
>=
<=
THIS IS WHERE I WOULD PUT SOMETHING TO REPRESENT MY THINKING, BUT THEN THEY SHOW UP!
Tracker = Check my position
Next week, next month... JK Ok push buttons: MTD, Quarter, YTD then one for each previously year return for 5 years.
Don't bias your charts. Show support and resistance. My comments and charts are not trading recommendations.
Yep!
It would probably be a little more complicated programing wise, but I like bquat's MTD idea. What if you could pick MTD and add the correct monthly number. MTD-1 would equal January (14) or maybe MTD-1/13 would equal January 2013. I guess it depends how much information you want to make available and how dificult the program would be.
May the force be with us.
TSP Fund Return by Date: TSP Talk AutoTracker
Tom
Market Commentary | My Blog | TSP Talk Plus | |
I am not a Registered Investment Advisor and this is not investment advice. Please do your own due diligence.
Tom
Market Commentary | My Blog | TSP Talk Plus | |
I am not a Registered Investment Advisor and this is not investment advice. Please do your own due diligence.
The MTD, WTD, YTD returns are on this page... TSP Share Prices.
This new script will probably be put as a link on that page.
Buttons for prior year returns is doable. I'll dive in.
Tom
Market Commentary | My Blog | TSP Talk Plus | |
I am not a Registered Investment Advisor and this is not investment advice. Please do your own due diligence.
I like the START (COB)/END(COB). Unless I'm mistaken, this will show the returns using the exact prices you bought and sold.
Now having said that, my retirement is in huge trouble after trying your link out that shows I lost 100% over the past month and a half..
Anyway, just my opinion on the question. And of course, thanks for providing yet another great resource for us. Much appreciated.
S&P500 (C Fund) (delayed) (Stockcharts.com Real-time) |
DWCPF (S Fund) (delayed) (Stockcharts.com Real-time) |
EFA (I Fund) (delayed) (Stockcharts.com Real-time) |
BND (F Fund) (delayed) (Stockcharts.com Real-time) |
||
Yahoo Finance Realtime TSP Fund Tracking Index Quotes |
Bookmarks