![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2008
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
Member
Join Date: May 2008
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
OK, understand now
From Documentation (BarRequired Property for Strategy): The OnBarUpdate() method is not triggered until CurrentBar >= BarsRequired. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |