[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inflection points?



PureBytes Links

Trading Reference Links

>Is there a function or some code to determine when a mathematical
>inflection point is reached in the charting of some indicator?

That's almost impossible with noisy indicators, and almost all
indicators have noise because the underlying data used to create
them is noisy.  You might have good luck using indicators having a
long lookback, though.

For smooth functions, finding the inflection is easy.  You have an
inflection point if an increasing slope becomes a decreasing slope,
or if a decreasing slope becomes an increasing slope.  If foo is the
return value of your function then

if foo[3]-foo[2] > foo[2]-foo[1] and foo[1]-foo[0] > foo[2]-foo[1]
then you have an inflection point where the slope has started to
increase.

Exchange '>' with '<' to test where a slope has started to decrease.

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com