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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-16-2008, 12:58 AM   #1
michaelbb
Member
 
Join Date: May 2008
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
Default CurrentBar on Tick Charts with Session begin

From my observation CurrentBar Property is not always starting from 0.

Example:

- TimeFrame 89 Ticks
- "Session begins" is set to 6:00

The first time OnBarUpdate Method is executed the CurrentBar Property is 20 (in my example).

Is that observation correct or did I get it wrong?

Is there a NinjaTrader Property to get the first bar / first call?
michaelbb is offline  
Reply With Quote
Old 10-16-2008, 02:39 AM   #2
michaelbb
Member
 
Join Date: May 2008
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
Default Solved

OK, understand now


From Documentation (BarRequired Property for Strategy):


The OnBarUpdate() method is not triggered until CurrentBar >= BarsRequired.
michaelbb 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
Daily charts display outside session hours Drew Charting 3 11-10-2009 11:30 PM
Where to begin? moflaherty General Programming 7 05-27-2008 07:10 PM
Second charts move similar to tick charts DrDeath Charting 2 04-03-2008 09:20 AM
Session begin and end time Gains Suggestions And Feedback 1 04-19-2007 04:36 PM
Session Begin & End times in NT6 bmaltz Charting 2 02-12-2007 08:44 AM


All times are GMT -6. The time now is 05:31 PM.