NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 02-11-2010, 11:19 AM   #1
strewthmate
Junior Member
 
Join Date: Mar 2009
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default Time & Range

Hi

I need to work out the range between midnight and 06.00. Is there an easy way to do that? Note, this not the average range for this period, but the absolute range for this period. Call it the Asian Session range.

The next step is to average this range over say 10 days or sessions.

The next step is run a test that explores what happens if today's range between midnight and 06.00 (Asian session) is greater than the average range for that period over the last 10 days.

2) instead of a range can I check the size of a move?

e.g. a range will be high to low
a move will be close to open

I want to be able to test if the size of the 'move' by 6AM is already beyond the usual 'range' for that time period.

Thanks in advance
strewthmate is offline  
Reply With Quote
Old 02-11-2010, 12:19 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

strewthmate, for a start into custom coding this you can check into this reference sample here -

http://www.ninjatrader-support2.com/...ead.php?t=8600

You can then record the differences observed in a dataseries and calculate the needed SMA for comparisons on this.
NinjaTrader_Bertrand 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
Beta NT 7 Range Bars & Alt Range Bars nanook77 Version 7 Beta General Questions & Bug Reports 3 06-21-2010 09:25 AM
Range bars & plotting of indicators TheRightSide Charting 1 08-18-2009 06:03 AM
Volume & Range Alerts? maxreturn Charting 5 07-02-2009 01:47 PM
Inside bar & smallest range last six days unitrade General Programming 1 05-29-2009 12:21 PM
BarTimer & Range Bars gary9 Charting 1 11-13-2007 09:25 AM


All times are GMT -6. The time now is 03:18 PM.