+ Reply to Thread
Results 1 to 9 of 9

Using Stochastic formula find highest or lowest

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Using Stochastic formula find highest or lowest

    Formula for stochastic is (Last Number(x) - Lowest Low)/(Highest High - Lowest Low) * 100.
    I want to find what is x when the answer is 0/100.
    I can use this formula and fill in the x value with any number and slowly find the highest or lowest value for x.

    I wonder if you can reverse the formula and put in the excel.

    Said my working data is 1, 2, 3, 4, 5, x. To get 0, x is 1 and below. To get 100, x is 5 and above.

    Thank you for your help.

    This was put up yesterday, viewed 24 times but no reply yet.
    HTML Code: 

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Using Stochastic formula find highest or lowest

    I will preface by saying that I am not familiar with a "stochastic formula". I see from Wikipedia that some financial analysts use a "stochastic oscillator" function when deciding when to buy and sell, and perhaps this is the function you are referring to.

    Based on what you have posted here, simple algebra should be able to solve this function.

    y=(lastprice-low)/(high-low) -- solve for lastprice. Can we assume that your algebra skills are up to this solution? Or is it more complicated than this?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Using Stochastic formula find highest or lowest

    Quote Originally Posted by MrShorty View Post
    I will preface by saying that I am not familiar with a "stochastic formula". I see from Wikipedia that some financial analysts use a "stochastic oscillator" function when deciding when to buy and sell, and perhaps this is the function you are referring to.

    Based on what you have posted here, simple algebra should be able to solve this function.

    y=(lastprice-low)/(high-low) -- solve for lastprice. Can we assume that your algebra skills are up to this solution? Or is it more complicated than this?
    If find y, we use (lastprice-low)/(high-low). If I want to find lastprice when y = 0 or 100. I would tried to reverse the formula. But there is lastprice in Lowest and Highest because Lowest and Highest is a range of data. For this post, Said my working data is 1, 2, 3, 4, 5, last price. Hope is clear now.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Using Stochastic formula find highest or lowest

    So is your question more about how to find lowest and highest? For finding lowest and highest, you should be able to use the MAX() and MIN() functions for the desired range. Once you can find lowest and highest, then it should be simple algebra to find lastprice.

    A question back at you: Won't last price always equal lowest price for y=0 and always equal highest price for y=1?

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Using Stochastic formula find highest or lowest

    Look likes a circular reference happens with last number(x).

    Any idea what kind of x is? Is it integer? Is there limitation for x? (>0,or <100, or ...)

    I am trying to make a variable range of x, then pick a result needed.
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Using Stochastic formula find highest or lowest

    Thank you, bebo for your interest.

    MrShorty;4221427]So is your question more about how to find lowest and highest?
    >>>Nope. I looking for the last price when y = 0 or 100. [Coming back from the last part, the answer is yes].

    For finding lowest and highest, you should be able to use the MAX() and MIN() functions for the desired range. Once you can find lowest and highest, then it should be simple algebra to find lastprice.
    >>>Data of MAX() and MIN() has to include the value x. Thus my data value is 1, 2, 3, 4, 5, x for this post.

    A question back at you: Won't last price always equal lowest price for y=0 and always equal highest price for y=100?
    >>> Hmmm, you got some point there. If you can plot it in your excel, when x = 1 or below, y = 0; x=2, y=25; x=3, y=50; x=4, y=75; and x=5 and above (that include 100 and more) , y=100. So x is equal to lowest when y=0 and x is equal to highest when y=100. Conclusion is I just have to use MIN() for y=0 and MAX() when y=100. This proof to be true. You replace x with lowest and highest to the equation. (H-L)/(H-L)*100=100. (L-L)/(H-L)*100=0.


    What you think?

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Using Stochastic formula find highest or lowest

    As a mathematician, I would say that your logic makes sense, and that this is consistent with the mathematical formula we are using. However, I am also not a stock market guru or otherwise knowledgeable in the nuances of these calculations from a financial analyst point of view. You would probably need to ask someone who is knowledgeable in the way that financial analysts view this kind of problem to see if they agree, or if they are aware of something we are missing.

  8. #8
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Using Stochastic formula find highest or lowest

    Good to talk to you. Thank you for your advise. It's very helpful. Have a wonderful day.

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Using Stochastic formula find highest or lowest

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] how to find the lowest to highest value and display the name who is the lowest and the hig
    By jasond1992 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 09-23-2015, 09:20 PM
  2. [SOLVED] How to find LOWEST and HIGHEST point in a class
    By Ihsan Tsani in forum Excel General
    Replies: 2
    Last Post: 08-07-2015, 12:19 AM
  3. Replies: 1
    Last Post: 01-10-2014, 01:55 PM
  4. [SOLVED] Formula to find lowest/highest value in a column and return value to that cell
    By maryren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 11:21 AM
  5. [SOLVED] Formula to select the highest number, and the lowest and find out the range
    By Nero_slk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2013, 07:56 AM
  6. [SOLVED] Find Highest/lowest numbers!
    By stewart08 in forum Excel General
    Replies: 3
    Last Post: 04-07-2008, 12:42 PM
  7. [SOLVED] Find lowest and highest value from a set of rows
    By Paul A via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 07-16-2005, 11:05 AM

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