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

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 07-27-2007, 08:29 AM   #1
ceesvh
Member
 
Join Date: Jun 2007
Posts: 40
Thanks: 0
Thanked 0 times in 0 posts
Default CalculateOnBarClose=true vs FirstTickOfBar

Hi Ninjatrader


I would like to compare two situations
As far as I understand NinjaTrader is eventdriven and not timedriven. I suppose that barclose is true when a tick arrives and the time since the close of the previous bar exceeds the timelength of the bar. The bar is closed and that specific tick is the open of the next bar.

1) CalculationOnBarClose=true
When an entry is triggered at the close of the bar and assuming that the above is correct the entry can be executed at the most at the second tick of that bar or at a later tick.

2) CalculateOnBarClose=false
Suppose I have the the same entry rules as above and the additional condition FirstTickOfBar.

It looks like that the results should be the same. I have not tested it.
Am I correct or is there something that I do not see.?
ceesvh is offline  
Reply With Quote
Old 07-27-2007, 08:33 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Yes, should be same. We have not tested it yet though.
NinjaTrader_Dierk 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
ComputeOnClose and FirstTickOfBar clarifications mazachan General Programming 1 07-13-2007 07:00 AM
Error with FirstTickOfBar in an indicator SuzyG Indicator Development 2 02-11-2007 04:03 AM


All times are GMT -6. The time now is 09:54 AM.