Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

LinRegSlopePlus indicator exponential calculation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LinRegSlopePlus indicator exponential calculation

    Hello, please would like to understand how is the LinRegSlopePlus calculation done when the exponential option is set to true.
    Looking for some reference on the internet, I found something on Exponential Regresion:


    I am not sure if this is the approach that is used on this indicator, and I couldn`t find any reference on the indicator and the techniques that are used.

    I guess the confusion is because an exponential regression would be a non-linear function, so an exponential linear regression would be nonsense.

    Thank you very much.
    Last edited by algotrade; 01-06-2015, 06:58 PM.

    #2
    algotrade, you might want to PM the original author to explain potentially in more detail - what I can see as explanation resides as comment in the source file -

    'This function calculates a linear regression slope using exponential
    moving averages as the summation terms in the slope formula. A
    simple average multiplied by the number of elements equals the sum,
    so we can calcuate the regression slope using simple averages.
    However, if we replace the simple averages in the computation by
    exponential averages, the resulting slope magnitude turns out larger
    by a factor of 3N/(N+1), where N is the number of elements, therefore
    we must divide the result by this correction factor (this simple
    correction was actually a lot of work to figure out).

    The correction factor will give perfect results for regions of
    perfectly constant slopes, but for noisy data like markets, the
    response time of the exponential average will make the SWINGS in
    slope magnitude appear smaller than the actual regression slope,
    although the slope will be smoother in areas of fairly constant slope.'
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by port119, Today, 02:43 PM
    0 responses
    1 view
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    2 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    1 view
    0 likes
    Last Post 00nevest  
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Working...
    X