Page 1 of 2 12 LastLast
Results 1 to 12 of 17

Thread: Need Your Opinion For Returns Script

  1. #1

    Default Need Your Opinion For Returns Script

    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.


  2.  
  3. #2

    Join Date
    Jun 2004
    Location
    Boiled Peanut, Georgia, USA
    Posts
    76,396

    Default Re: Need Your Opinion For Returns Script

    Can you use code to subtract one from the first date and add one to the second?



  4.  
  5. #3

    Default Re: Need Your Opinion For Returns Script

    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.

  6.  
  7. #4

    Join Date
    Feb 2007
    Location
    San Diego, CA
    Posts
    6,999

    Default Re: Need Your Opinion For Returns Script

    >=
    <=
    THIS IS WHERE I WOULD PUT SOMETHING TO REPRESENT MY THINKING, BUT THEN THEY SHOW UP!
    Tracker =
    Check my position

  8.  
  9. #5

    Join Date
    Jan 2011
    Location
    El Paso Texas
    Posts
    11,563

    Default Re: Need Your Opinion For Returns Script

    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.

  10.  
  11. #6

    Join Date
    Jun 2004
    Location
    Boiled Peanut, Georgia, USA
    Posts
    76,396

    Default Re: Need Your Opinion For Returns Script

    Yep!



  12.  
  13. #7

    Join Date
    Apr 2008
    Location
    Cleveland, Ohio
    Posts
    12,151

    Default Re: Need Your Opinion For Returns Script

    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.

  14.  
  15. #8

    Default Re: Need Your Opinion For Returns Script

    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.

  16.  
  17. #9

    Default Re: Need Your Opinion For Returns Script

    Quote Originally Posted by Bquat View Post
    Next week, next month...
    I'm working on that one.
    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.


  18.  
  19. #10

    Default Re: Need Your Opinion For Returns Script

    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.

  20.  
  21. #11

    Join Date
    Jan 2011
    Location
    El Paso Texas
    Posts
    11,563

    Default Re: Need Your Opinion For Returns Script

    Quote Originally Posted by tsptalk View Post
    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.
    I wasn't talking share prices. I was doing time frames for individual's returns.
    Don't bias your charts. Show support and resistance. My comments and charts are not trading recommendations.

  22.  
  23. #12

    Default Re: Need Your Opinion For Returns Script

    Quote Originally Posted by tsptalk View Post
    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!
    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.

  24.  
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
S&P500 (C Fund) (delayed)
Need Your Opinion For Returns Script
(Stockcharts.com Real-time)
DWCPF (S Fund) (delayed)
Need Your Opinion For Returns Script
(Stockcharts.com Real-time)
EFA (I Fund) (delayed)
Need Your Opinion For Returns Script
(Stockcharts.com Real-time)
BND (F Fund) (delayed)
Need Your Opinion For Returns Script
(Stockcharts.com Real-time)

Yahoo Finance Realtime TSP Fund Tracking Index Quotes