![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2007
Posts: 40
Thanks: 0
Thanked 0 times in 0 posts
|
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.? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Yes, should be same. We have not tested it yet though.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |