PDA

View Full Version : Standard Error returns Linear Regression line???


higler
04-30-2007, 11:55 AM
I am new at NT. I am calling StdError from within OnBarUpdate but I am not getting the Standard Error. It appears to be returning the linear regression value that the Standard Error indicator uses. I have sent it to an output window and I am not getting standard error values. Can you comment on this please? I am happy to calculate the standard error myself but maybe there is something that I am not understanding in Ninja Script. Does StdError return multiple values in something like a structure that I need to access? Thanks.

NinjaTrader_Ray
04-30-2007, 12:24 PM
Correct. The default value of Standard Error is LinReg. I just realized that our Help Guide section on this indicator is not complete.

You can access values for this indicator:

StdError(periodValue).Upper[0]
StdError(periodValue).Lower[0]

I will update our documentation on the next release.

Ray

higler
04-30-2007, 11:46 PM
Thank you for the help. I'm really liking what I'm seeing so far in NinjaTrader.