NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 11-02-2009, 07:29 AM   #1
HT101
Junior Member
 
Join Date: Feb 2008
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default CalculateOnBarClose

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);
}
HT101 is offline  
Old 11-02-2009, 08:33 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
 

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


All times are GMT -6. The time now is 05:27 AM.