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 AttiM, 02-14-2024, 05:20 PM
    11 responses
    184 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by fernandobr, Today, 09:11 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by timmbbo, Today, 08:59 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by KennyK, 05-29-2017, 02:02 AM
    2 responses
    1,281 views
    0 likes
    Last Post marcus2300  
    Started by itrader46, Today, 09:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X