Market tracking calculations

I am starting a market strategy with $10,000.  Every week I may be selling or buying any or all of the stocks, but will never hold more than 5.  I would like to set up automated calculations. 
The idea behind the strategy is that i originally invest an equal amount of funds into each of the original stock choices, hold for a week, then compare whether the stock is still listed at its high the next Monday.  If the stock is still on it's high, I keep it for another week.  If it has fallen off, I sell the stock and replace that/those stock(s) with the one(s) that have replaced it.  This will call for buying and selling up to 260 stocks within a year,keeping track of the cost of the trades at $7 a pop, and evenly distributing both the initial investment across the stocks and then any time more than one stock falls off the high.  I should always to to have balanced amounts invested in each stock without have to buy/sell to make that happen.
Example:  Week 1 (Initial Cash Fund = $10,000)
Stock A @ $25 a share ($2000 - $7 fee = $1993 to spend) = 79 shares = $1975 w/ a $18 remainder
Stock B @ $40 a share ($2000 - $7 fee = $1993 to spend) = 49 shares = $1960 w/ a $47 remainder
Stock C @ $50.91 a share ($2000 - $7 fee = $1993 to spend) = 39 shares = $1985.49 w/ a $7.51 remainder
Stock D @ $17.25 a share ($2000 - $7 fee = $1993 to spend) = 115 shares = $1983.75 w/ a $9.25 remainder
Stock E @ $86 a share ($2000 - $7 fee = $1993 to spend) = 23 shares = $1978 w/ a $15 remainder
Total Remainder = $96.76 stays in Cash Fund
(I would want the calculations to tell me how many shares I could buy of each stock as well as keep track of any remainders)
Week 2 (Cash Fund = $96.76)
Stock A, B, and C all remain on their highs
D fell off the list and needs to be sold @ (17.10 * 115) - 7= $1959.5  (loss of $31.25)
E fell off the list and needs to be sold @ (88.40 * 23) - 7= $2026.20 (gain of $41.20)
Cash Fund = $4082.46
Buy Stock F @ $15 a share ($2000 - $7 = $1993 to spend) = 132 shares = $1980. w/ a $13 remainder
Buy Stock G @ $116.5 a share ($2000 - $7 = $1993 to spend) = 17 shares = $1980.50 w/ a $12.50 remainder
Toal Remainder = $121.96
ETC.
I can visualize the basics of the spreadsheet, but am uncertain as to how to add some functions or even where/how to list certain basics and I have yet to find anything that clearly shows what I what.  If anyone is willing to share, I would be most grateful.
Thanks

HI Gemma,
ELSE is buillt into the IF function. The syntax is IF(condition,do-if-true,do-if false)
For both buy and sell formulas in my post, the 'ELSE' part (do-if-false) was "" which means 'return a null string.
To combine costs and proceeds into a single column, you'll need to account for three conditions in the buy/sell column: Buy, Sell, and none of the above (where no choice of transaction type has yet been made). Since IF tests only for one condition at  time, you'll need to use a pair of nested IF statements. The second replaces the do-if-false part of the firat.
Syntax: IF(condition1,do-if-true,IF(condition2,do-if-true,do-if false))
Some questions:
Will you ever buy the same stock a second time? I'm looking at a way to automatically populate the number of shares sold. I've assumed that you intend to sell all your holdings of a specific stock each time you do a sell transaction, so the shares sold would be equal to the number bought in a previous Buy of the same stock. That's a simple Lookup if there's only one mention of that stock in the cells prior to the current one, but not it there's more than one Buy of the same stock (all but one of which will, in the case of repeated buys, have a matching Sell transaction, according to your description.
What happens when the cash balance falls below 2000 * the number of Sell transactions done in a specific week?
What happens when the cash balance rises? How much does it need to rise for that to happen? Knowing those would allow automating the "Available" column
The transaction fee could also be easily calculated, rather than requiring entry on each transaction. A 'fixed' fee is likely to change over time, and caution would be needed to ensure that the change would apply only to transactions (rows) after the new fee came into effect.
Regards,
Barry

Similar Messages

  • Market Share calculation of many products and markets.

    Hi all,
    I would really appreciate if you can help me on the below business issue of Market Share Calculation.
    Prd_ID = Product ID
    PS  =  Product Sales
    M_ID = Market ID
    MS  = Market Sales
    MS%  = Market Share
    <b>
    Prd_ID;PS;M_ID;MS;MS%</b>
    A00001;10;MRK1;100;10%
    A00002;20;MRK1;100;20%
    <b>SBTOT</b>;30;MRK1;100;30%
    B00001;40;MRK2;200;20%
    B00002;30;MRK2;200;15% 
    <b>SBTOT</b>;70;MRK2;200;35%
    <b>GTOTL</b>;100;MRKX;300;33,3%
    KFigures are only :
      ProductSales (Sum aggregation)
      MarketSales  ( ?? I tried may exception aggrs with no result)
    Market Share is a formula in BEX.
    I need an aggregation on unique only records in terms of the Market_ID. If Market_ID appears more than once, should be ignored (even the Market Id is drilldown or not)
    I saw in the documentations example of MS% calculation, but this is working only if we analyze the products agains<u> one Market_ID.</u>
    But a company may compete in many markets with many products.
    Thanks
    Vasso Siagri

    Hi TW Typewriter,
    Yes, I am changing the date in the "schedule lines" tab for the sales order to a date next week, say May 23, 2014.  When I click on the display "Shipping" info, I see:
    1) Delivery date: 05/23/2014 - 00:00
    2) GI Date: 05/22/2014 - 22:00:00
    The expectation is to have the GI date 23:00:00 since my config for the route on the sales order is for 1 hr of transit time only.
    See attached

  • NXT shortest track calculation

    Hello,
    I have a urgent question. 
    One of our teachers has given us the challenge to build an nxt robot that can collect and sort collored balls that are lying on a "playing ground" as shown in picture. (yellow dots are ball locations)
    We get the "location" of the collored balls 5 minutes before start of challenge. (We now the places but we dont know which collor will be at what place) so we thought about inserting that by higlighting buttons for one collor of balls and leaving them blank for the other collor balls.
    Now, we made VI 's for: turning left/right, stop/riding over a crosspoint (where 2 black lines cross) we can use the ultrasone and light sensors etc... We did lot's of tests with them
    But now the problems starts:
    We have to write a labview program that can calculate the shortest way to a specified ball (Our goal is to collect 3 balls of same collor at a time before returning to base) following the black lines.
    Then transmitting the calculated short track to the nxt true bluetooth. (Shortest way means as less turns obviously).
    But we dont have any clue how to program such thing... we only have verry verry basic knowledge of labview and time is really running out...
    If anybody has an idea how to make such program or if anybody can give us detailed information on how to program that or if want to be our hero and you can make that program for us...
    Please let us know, we are desperate.
    Many thanks,
    Vincent
    (sorry for English mistakes... I'am used to speak dutch )
    Attachments:
    STEL SITUATIE.png ‏23 KB

    Hello Vincent,
    I do not seem to be able to open your attachment.
    Is there an error that you're running into?
    What algorithm are you trying to implement to solve this problem?
    Do you need to write a program that calculates the shortest path or the shortest amount of time needed?
    Shortest path doesn't necessarily mean for me the least amount of turns.
    Did you already have a look at this page (http://nxtmastery.com/) to get started with the program?
    Have you already defined your algorithm in pseudo-code?
    This will help you with implementing your algorithm.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • IS-Retail Market-basket pricing procedure

    Hi All,
             Can anyone tell me what is Market-basket pricing and  at what situation do we use Market-basket pricing.and what is the IMG settings and any other settings require to use the pricing.
    Yours sincerely,
    Krishna
    Edited by: gopi krishna on Sep 20, 2008 12:50 PM

    Hi Refer below url from Sdn
    [Market Basket Calculation |https://www.sdn.sap.com/irj/sdn/bpx-bpp-retail?rid=/business_maps/guid/eg1slxvyat1odhrwoi8vzxn3b3jrcgxhy2uuc2fwlmnvbs9zb2nvdmlldy9ty3bnzxquyxnw%0d%0ap3bhy2thz2vpzd0mdmlldz1zbwnyzw5kzxiyjmlkptyyotdgndcwoum1mtexrdkxmkqxmdazmdzf%0d%0amdu1ree3jiz4c2wtymfzzt1odhrwoi8vzxn3b3jrcgxhy2uuc2fwlmnvbs9zb2nvdmlldy9ty3bn%0d%0azxrfbwltzs5hc3a/dxjspxnkbl9uzxcvjiz3zwitdxjspwh0dhbzoi8vzxn3b3jrcgxhy2uuc2fw%0d%0almnvbs9zb2nvdmlldy9ty3bnzxrfbwltzs5hc3a/dxjspsymehnslwxpc3q9c2rux2dlbmvyywxf%0d%0acmvuzgvylnhzbhq7c2rux2xpbmtyzxdyaxrpbmcuehnsddtnzw5lcmf0zuhutuxfu0rolnhzbhqm%0d%0ajnbhy2thz2utawq9jizyzxnvdxjjzxr5cgu9c2rux3nvbhv0aw9ux2nvbxbvc2vyx2z1bgxwywdl%0d%0ajizwyxjlbnrssuq9l3dlymnvbnrlbnqvd2vicgfnzxmvynb4lzqwieluzhvzdhjpzxmvumv0ywls%0d%0al0j1c2luzxnzifbyb2nlc3mgugxhdgzvcm0gaw4gumv0ywlsjiz0axrszt1szxrhawwguhjpy2lu%0d%0azyatie1hcmtldcbcyxnrzxqgq2fsy3vsyxrpb24mjnzpcnr1yww9dhj1zq==&prtmode=print]
    [Market-Basket Price Calculations - Procedure |http://help.sap.com/erp2005_ehp_03/helpdata/EN/83/8818d107a711d3b470006094b9cbfb/frameset.htm]

  • Tachometer signal to RPM in DIADEM

    Is it possible to generate rpm signal in DIADEM and how to change the reference value (sound pressure to db in order tracking tracking calculation)? Thanks

    Hi there, 
    DIAdem is intended to find data, to analyze data, to run analyses, to create reports, and combine all functions to a script. Data is not generated in DIAdem. If you have an rpm signal that you would like to read into DIAdem for analysis, you would use the DIAdem NAVIGATOR to load this data into DIAdem. In the ANALYSIS tab, you will be able to run the data through an equation to convert from sound pressure to db. To help you begin the process of importing data and analyzing the data, please refer to DIAdem Help->Contents->Basics->Navigator and Analysis. 
    If you have any further questions, please give a specific instance or describe in more detail what you would like to do. From what I am understanding of your post, the answer is yes, you can use the Analysis tab to convert data, yes you can import signals that already exist into DIAdem. Please post back if you have any further questions and good luck with your project! 
    Regards,
    Jackie 
    DAQ Product Marketing Engineer
    National Instruments

  • Java 1.4.2_6 causes Internet Explorer 6.0 to shut down

    I am running Windows XP. I use Yahoo's Market Tracker. They are forcing an upgrade to version 2.0, which uses the Sun Java 1.4.2_6, and will no longer offer the old version of Market Tracker which worked fine with the Microsoft Virtual Machine.
    When I install the Sun Java, it says the installation was successful and the Java Web Start programs seem to function properly. However, 3 error messages were posted to my desktop.
    When I attempt to launch Market Tracker 2.0, IE shuts down. I have been through this process several times previously with the same results. I have pasted the first part of the 3 error messages below. Any help would be appreciated.
    hs_err_pid748.log
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0xB1B4A8A
    Function=[Unknown.]
    Library=C:\Program Files\Java\j2re1.4.2_06\bin\fontmanager.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    hs_err_pid076.log
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x6A54A8A
    Function=[Unknown.]
    Library=C:\Program Files\Java\j2re1.4.2_06\bin\fontmanager.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    hs_err_pid1804.log
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0xB444A8A
    Function=[Unknown.]
    Library=C:\Program Files\Java\j2re1.4.2_06\bin\fontmanager.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.

    Your post indicates a problem was encountered when a Java program, fontmanager.dll, tried to execute.
    This is usually caused by a corrupted font file. Less often, it can be a program or memory error. This webpage has good instructions covering the first 2 of these causes.
    http://answers.google.com/answers/threadview?id=327954
    If you want to test memory, there ae free programs that can be downloaded - search for "ram memory tester". I have used the memtest86 program.
    There is much more information available from a Google search using the term "corrupt Windows font"

  • Email to html

    How to transfer emails containing hyperlinks to a dreamweaver website page and not loose the links.
    I have maintained many email updates, containing hyperlinks, sent out to my group over the years. I would like to have a page on my website where those emails can be reviewed by any viewer. When I cut from the email and paste into the HTML page, the links are lost. When I did "Save As" in Safari as a "WebArchive" then paste to dreamweaver all I get is gibberish. Ideas?
    Bruce    iMac 27, 2.93 ghz, i7, 12 g ram, 3 tb Hd, CS 5.5

    Nancy, I think he might mean links to pages in the emails he sends, not the email addresses of his group.
    Bruce, you should copy the email code, not the email as displayed. Then paste in code view in Dreamweaver.
    Also, Constant Contact (and maybe other email broadcast systems), make changes to links for marketing tracking. These changes may render the links broken.

  • Load filter attributes task failed? Won't open my stock trading platform. Any ideas?

    I use CMC Markets online stock trading platform, 'Market tracker'. The log in page loads. But the platform won't open after I log in. An error message says "Load filter attributes task failed". What am I missing? IE browser loads the platform OK but I don't want to use IE.

    FWIW i get this now and then on my winblows 'puter and just chalk it up to that. I've flushed caches and queues and rebooted and all that who-ha and quite frankly when it locks up it ticks me off to no end ('cuz it SHOULDNT do that) but i have a cold one and figure they have kindergartners doing the system programming nowadays and go from there.
    Message was edited by: Stillgrass

  • Will Pay  $100 For  The Project

    Please visit the website to see the description.
    http://www.thesoftwareobjects.com/CoderBidDetails?prod=22&check=false

    Oh, that is so rich! Anyone know this person's prof? If so, please forward it along to them!
    Seriously, though - if you aren't willing to do your own homework, why the heck are you trying to get a degree? Don't you think you'll have to actually do real work when you get out of school? (Unless you take that marketing track, of course <grin>)
    - K

  • Need help with Java program from Yahoo

    Please excuse this novice question but I'm trying to launch "Market Tracker on Yahoo and am having problems. Yahoo says it's because I have multiple versions of Sun JVM running on my system and instructed me to do an uninstall of Jave which I did then restarted my computer. I was instructed to sign into Yahoo Finance and launch Market Tracker which detected that I needed the latest version of Sun JVM and automaticall installed it on my machine. Same problems exists. I uninstalled Java again an then did a search and found an SDK Java 40 application still on my computer. Could this be the problem? Can I remove this and what is it? Can anyone email me an answer at Bulrush2001 @ yahoo.com. Thanks in advance.

    Alas,most likely nobody here in this forum will have an answre for you.
    We're all about Sun Java Enterprise Messaging Server.
    not about JAVA, java programming, or JVM

  • "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated.

    I have one big wav file of segued tracks as a mixdown and inserted CD markers where I want marked tracks. "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated. Why can't I export these marked portions as separate files?

    the markers durations need to be configured, there is an easy way to do this using your existing markers.  click the start time of marker 2, this should change to edit mode to type in a new number, just copy the numbers cmd/ctrl+c. then click the end time of marker 1 and paste, cmd/ctrl+v.  now repeat for the rest of the markers, and on the last one enter a value for the end time or click and drag on the duration to manually extend it. once all the markers have a duration, the button should be active to export.

  • Internal calculation of the font tracking (text running width)

    Is it true, that in the english version the internal calculation of the font tracking (text running width) in InDesign is hard-coded in inch and could not changed in cm in the options. (I know that I could do this for the rulers)
    So we better should use a german version to avoid Problems with print shops or design agencies in Germany.

    In the past we had problems here in Germany when we use the english version of InDesign. We have some big files, each about 1200 pages and when we share this files with print shops or design agencies which uses the german version they had sometimes problems with the font tracking eg text run out of text boxes and so on. Adobe told us that can happen because the english version works internal with inch and we could not change this. So we start using the german version and all the problems where solved. Now we want to update to the actual version and had an internal discussion if we should order the english or german version.

  • Marketing budget and campaign tracking

    Hi All,
    I created a marketing budget and then linked a coupon/offer to that budget.
    How can I track the offer usage? There is a "utilized amount" field on the budget, how does it get populated?
    Alex

    The utilized column is populated by orders (when the offer code has been applied) booked through Oracle Order Management.

  • Respons Tracking in CRM Marketing Mails

    Hello,
    I would like to know if it is possible to create an Inbound Contact (Activity) if a customer clicks on an URL Link in a Mailform (Newsletter) of a marketing campaign. This should trigger the creation of the Inbound Contact in CRM. The Link Tracking of the URL's with ++ and ## are not exactly what we are looking for. As they do only track the click on the link but not of the person who clicked it.
    For our scenario we are not using a web shop.
    Any advise on this?
    Thanks and best Regards
    Christian

    Hi,
    Please try to do some research on "personalized response code". Although personalized response code is not used exactly in your business scenario but is entered manually by sales assistant or IC Agent. However, you may get some ideas on doing some enhancement based on your requirement.
    Regards,
    Deepak

  • Multiple Form Tracking in marketing documents

    Dear all,
    I have a scenario wherein I need to track multiple forms like Form C & Vat 47 or Form C & Vat 49 during purchase/ sales. But in SAP B1 2005 we can track only 1 form per marketing transaction. Kindly suggest a workaround.
    Thanks

    Create 2 user defined fields(UDF's) one for form type(Set default value)
    and another for entering form number.
    U can also make form type depending on business requiement.
    Jeyakanthan

Maybe you are looking for

  • HOW TO ACCESS ATTRIBUTES FROM DIFFERENT VIEW SET

    Hi Experts, How i can  access the variables declared in context class from component controller class and vice-versa. Thanks & Regards Ansal

  • Error while deploying Webdynpro Application in CE 7.1.1

    Hi, Im developing Webdynpro DC application in CE 7.1.1. ( Composite Environment 7.1 Enhancement Pack 1)  While deploying the application im getting error saying , Error: "Application error occurred during the request processing."   Troubleshooting Gu

  • Is the worst thing about iphone it's ringtunes, and how do I fix???

    Hello there, Unfortunately I am now within hour 15, in my attempts to replace Apples purposefully terrible ringtones with new ones, and I've bought a few now... However none of them work.. they aren't even recognised on itunes as ringtones. I bouhgt

  • Help! NNTP attachment problem!

    I use a sock to connect with a nntp server, then use BufferedReader to readLine() I can do read newgroup list and topic and body by it. But when i read a article body with a file, the i change the string read by readLine() to byte array byte[]b = lin

  • ALV - Full Screen Mode

    All, I have ALV grid using CONTAINER , i need to make it FULL SCREEN mode as per the user screen display resolution. Any Info ? PS: Please donot suggest to drag the screen to maximum. that will not work with different screen resolution. a®