![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Sep 2008
Location: UK
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
it might have been posted already: when a strategy is started on seconds/ticks, NT will process a couple of previous days. It may cause significant delays - except Mondays, rather obviously :) I have heard that the number of pre-processed days could be changed in Options. Unfortunately, i did not find anything like that (running NT 6.5). I would appreciate any help - these slow starts are rather annoying. Cheers, Tomas |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
|
Have you tried adjusting the default look back period?
Tools--> Options--> Data
Jessica
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2008
Location: UK
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
Hi Jessica,
thank you! I have completely misinterpreted that column, thought it is for _plotting_ charts only and not for running strategies. Cheers, Tomas |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Sep 2008
Location: UK
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
...and hi again: unfortunately the default look back period for ticks can not be smaller than 1 - i.e. i have to run on the previous day ticks - if i understand this correctly. Could this be changed?
Cheers, Tomas |
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Tomas,
You will not be able to load less. One day's worth of tick data should not slow you down significantly. If your strategy is calculation intensive you can add this condition in the OnBarUpdate() to eliminate calculations on historical bars and improve load time considerably. Code:
if (Historical)
return;
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Sep 2008
Location: UK
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you Josh. Indeed, it does a lot of calculations on ticks and a whole one (historical) day of ticks slows down the strategy startup incredibly.
Best, Tomas |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| StrategyPlot starts plotting at zero in price panel | ATI user | Strategy Development | 6 | 09-15-2008 08:58 AM |
| if ( BarsInProgress == 1 ) ...starts 20 mins late | ATI user | Strategy Development | 3 | 08-22-2008 06:56 AM |
| Patsystem login too slow | skynetman | Suggestions And Feedback | 14 | 07-01-2008 04:34 PM |
| Esignal slow??? | pkinoc | Connecting | 2 | 05-19-2008 11:58 AM |
| Going Long as soon as the strategy starts | edgeliner | General Programming | 4 | 03-24-2008 10:47 PM |