![]() |
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
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
|
If backtesting this only prints true- is that expected?
protectedoverridevoid Initialize() { CalculateOnBarClose = false; } ///<summary> /// Called on each bar update event (incoming tick) ///</summary> protectedoverridevoid OnBarUpdate() { Print(CalculateOnBarClose); } |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
HT101,
Correct. CalculateOnBarClose only impacts real-time trading. When backtesting you do not have intrabar granularity and you process at the end of every single bar.
Josh
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strategy.CalculateOnBarClose=true vs. Indicator.CalculateOnBarClose=false | karimatka | Strategy Development | 7 | 05-23-2011 03:39 AM |
| CalculateOnBarClose issue | redbank199 | Miscellaneous Support | 6 | 07-04-2009 06:20 PM |
| Question about CalculateOnBarClose | ssg10 | Strategy Development | 1 | 06-22-2009 04:04 AM |
| CalculateOnBarClose | dargente | General Programming | 6 | 01-14-2009 09:00 AM |
| CalculateOnBarClose | Edgar V. | General Programming | 1 | 04-09-2008 01:33 PM |