![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
I am new to ninjatrader, and trying to figure something - I have the following code, and I debug it using VS back testing with day bars. The limit price is greater than the short price, and the low of the day is lower than the stop price, however, in the back testing results the trade is being recorded on the next day at 07:00:00. what is the reason for that ? the code is : if (Low[0] <= ShortPrice ) { EnterShortStopLimit(QTY, LimitPrice, ShortPrice, "short"); } |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for the forum post and welcome. In NinjaTrader with historical processing the order engine takes all order action at the OPEN of the next bar price after the condition is true for fill. We take this approach as we believe it is more accurate in most chart types. -Brett
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backtesting, historical data and current day eod | puravida | Strategy Analyzer | 3 | 03-19-2012 07:21 AM |
| Indicators lag one day | x3000gold | Charting | 3 | 12-01-2011 02:31 AM |
| Lag with market replay connection - does this reflect actual lag? | AntiMatter | Miscellaneous Support | 3 | 02-25-2011 08:58 AM |
| Backtesting does not consider last day | Beauregard | Strategy Analyzer | 11 | 05-13-2010 10:01 AM |
| Working with "Trade Class" on a day-by-day basis | AnotherTrader | Automated Trading | 2 | 01-22-2010 07:45 AM |