NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-10-2008, 06:46 AM   #1
coffeeconsumer
Junior Member
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Testing for Normality - Chi-squared goodness-of-fit

I'm needing to test a data series, say the last 100 closing values, for its conformity to a normal distribution. My purpose for doing this is to scan for balance areas in a time-volume profile.

I am considering using a Chi-squared goodness of fit test, however the programming of this looks quite daunting to me.

I'm just wondering if there are any native functions for statistical testing of normality? I've searched the MSDN Library and I came up with nothing.

Alternatively, has anyone already programmed such a test who might care to post it?

Cheers,
C.C.
coffeeconsumer is offline  
Reply With Quote
Old 04-10-2008, 07:17 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> I'm just wondering if there are any native functions for statistical testing of normality?
None I'm aware of.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-10-2008, 06:39 PM   #3
darthtrader
Member
 
Join Date: Oct 2007
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

That is a very interesting idea. From my limited research on C# and stats it seems you would have to buy a 3rd party library most likely unless you want to do alot of leg work.
this one looks pretty interesting
http://www.centerspace.net/products.php?page=3

I'm going to try to make a simple correlation strategy this weekend that just spits out numbers to the output window between two instruments. Certainly post anything you find in this area, this is totally the kind of stuff i'm interested in. Once i've learned enough in ninja though i'm going to buy one of these stat libraries. I'm sure it would be worth the time saved programming wise.

Out of curiousity I wonder if at some point in the future the ninja guys could do a simple example of including a 3rd party library. Just something simple and open source to get the ball rolling.
darthtrader is offline  
Reply With Quote
Old 11-17-2011, 08:06 AM   #4
patrf
Junior Member
 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default online normality test

I ended up on this page when searching for a test of normality. Eventually I found one here in case someone else is looking for one:
http://in-silico.net/statistics/lillieforstest
patrf is offline  
Reply With Quote
Old 11-17-2011, 08:16 AM   #5
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
Default

patrf,

Thank you for sharing and welcome to our forums!
NinjaTrader_Matthew is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Testing for NT 6.5 Jim W. General Programming 3 01-16-2008 01:51 AM
Testing for null zoltran General Programming 7 11-25-2007 05:09 PM
Testing for 'equal' zoltran General Programming 1 11-23-2007 07:01 AM
Testing and Playback guy Indicator Development 2 03-18-2006 01:44 AM
Re Back testing John_Aus Miscellaneous Support 6 03-15-2005 01:54 AM


All times are GMT -6. The time now is 06:53 PM.