PDA

View Full Version : Linear Regression Channel


pivot44
09-24-2008, 09:56 AM
Disregard.

NinjaTrader_Josh
09-24-2008, 10:06 AM
pivot44,

The LinReg indicator is built to the accepted mathematical formula for linear regressions. Data does represent a big factor in determining linear regression and as such without the same data set you cannot compare similarity between the two implementations. If TradeStation's is different then the indicators are simply different. You can see our formula by opening it up in the NinjaScript Editor. If this is not the formula you wish to use you can feel free to custom program your own version.

pivot44
09-24-2008, 10:43 AM
I appreciate your quick response. However, if I double the NT standard deviation parameter from 2 to 4, it matches up exactly with a number of different TS LRC indicators set at 2 standard deviations. I am not familiar with ninjascript, but the difference cannot be caused by minor data differences.

NinjaTrader_Josh
09-24-2008, 10:46 AM
It is possible the indicators are using different interpretations for the parameters. You can view our implementation in the NinjaScript Editor. If it is not what you like you can change it.