PDA

View Full Version : Question about Linear Regression indicator


Lupus
02-16-2006, 10:52 AM
i am looking at replacing my current chart program with the charts in my NT5. However one of the indicators i use the most is the channels for linear regression. I make the lin-regr line itself transparent and use the channels to indicate trends.

i can't figure out how to create the channels on my NT5 charts. Am i overlooking something or are they not available?

thanks

Lupus
02-16-2006, 11:13 AM
also,shouldn't linear regression lines be straight lines? Mine look more like moving averages. The only thing i see that i can tweak is the number of periods, so i'm not sure what i could be doing wrong.

thanks for any hints

Antraman
02-16-2006, 01:56 PM
How are they calculated, what do they show, and how are they usually displayed?

Maybe we can improvise with existing tools...

cheers,

Lupus
02-16-2006, 02:58 PM
i don't see any tools available as a work-around, but i'm open to suggestions

but i think the LR formulashould be easy to correct in a revision

NinjaTrader_Ray
02-16-2006, 03:09 PM
I am going to let Dierk answer this in greater detail...but LinReg is really the value of this indicator. Other implementations such as channels, slope etc are all based on the this value at its core. If you have some basic programming skills, you could program your own indicator for lin reg using NinjaScript.

Ray

NinjaTrader_Dierk
02-16-2006, 07:31 PM
a) LinReg code is disclosed in the upcoming new B3. You may want to take a look there. It's a moving least square calculation.
b) Will add linreg line to the list.