+ Reply to Thread
Results 1 to 2 of 2

Multiple Criteria (add or subtract)

  1. #1
    Registered User
    Join Date
    11-05-2004
    Location
    Palm Springs California
    MS-Off Ver
    Office 2011 for Mac
    Posts
    37

    Multiple Criteria (add or subtract)

    I am working on a stock trading sheet that is checking on several paramaters like volume, change in price today vs change in price yesterday, and price moving above or below a trading channel. This is a back testing process working from historical data downloaded from the yahoo stock site.

    What would the best process be to quary all of the paramaters above and when each is true issue a "Buy" signal and start accumilating "Profits" untill the sheets hits a new criteria for "Sell".

    I want to calculate the profit or loss based upon the change in stock price between two sets of multiple criteria. Addationally I want the sheet to issue one of three positions based upon the most current state of the markers checked: Buy, Sell or Hold.

    Not looking for specific answer just a point me to the correct excel function.

    Thanks, Michael

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    SUMPRODUCT is a good formula
    =IF(SUMPRODUCT((A1:A100>200)*(B1:B100<400)*(...))>0,...)

    Another useful approach is to use CHOOSE
    =CHOOSE(1+(A1>200)*1+(B1>400)*1,"Buy","Hold","Sell")

    Hope this helps
    Ola Sandström

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1