NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-25-2009, 05:45 PM   #1
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default BarsSinceSession with futures?

Hi,

Just curious how BarsSinceSession is supposed to be interpreted, when working with CBOT futures with session times that look like:

18:00-06:00 and 09:30-13:15

If I run a strategy 24 hours a day (12:00 AM-12:00 AM), will BarsSinceSession be reset to zero at 09:30, and again 18:00?
heech is offline  
Reply With Quote
Old 05-26-2009, 07:20 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

heech, it's tied to what you set as Session Begin time in the properties.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-26-2009, 04:01 PM   #3
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
heech, it's tied to what you set as Session Begin time in the properties.
And I assume there's no way to define multiple sessions, right? I'll have to handle that myself?
heech is offline  
Reply With Quote
Old 05-27-2009, 05:18 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Unfortunately yes heech - this is already on our list for future releases.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-27-2009, 05:22 PM   #5
heech
Senior Member
 
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Unfortunately yes heech - this is already on our list for future releases.
Bertrand,

What about the indicator used to give me PriorDayOHLC()...? What number will that be giving me, in the case of that futures session schedule?
heech is offline  
Reply With Quote
Old 05-28-2009, 04:24 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

heech, this would also be linked to what you set up as Session begin / end times in the chart properties.
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
Is there a property like the "BarsSinceSession" that returns Grand Total Bar Nbr? ChiTrader2000 Strategy Development 4 12-23-2009 01:46 PM
BarsSinceSession? heech General Programming 1 05-17-2009 04:15 AM
Forex and Futures playafh69 Installation and Licensing 3 01-29-2009 01:36 PM
Velocity Futures Bogan7 Connecting 1 11-08-2008 11:00 AM
were on dome is what futures are up or down? chan123 Miscellaneous Support 4 08-24-2007 08:18 AM


All times are GMT -6. The time now is 02:41 AM.