![]() |
|
|||||||
| 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 |
|
Senior Member
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
|
When using Market Replay I can't get my strategy to stay enabled. It disables itself right away. I've tried using Visual Studio debugger and it calls "Initialize" but never calls "OnBarUpdate". I stepped through it and there is no crash or odd behavior, it just never calls "OnBarUpdate" and the log shows it was disabled. I then connect to my broker data feed instead of Market Replay and it enabled just fine and "OnBarUpdate" is called.
I tried Market Replay with another strategy I wrote and it also calls "OnBarUpdate" just fine. How can I figure out what is going wrong? There is nothing interesting in the "Initialize" section: protected override void Initialize() { init = false; CalculateOnBarClose = true; } |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
tradetree, do you have enough data loading for the OnBarUpdate() to be started calling? This means all series satistfy the BarsRequired setting used?
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I place a Stop loss and Profit limit for Market order in Market replay ? | WWMMACAU | Miscellaneous Support | 1 | 01-30-2011 08:05 PM |
| Replay Recorder Doesn't Show up in Market Replay | daven | Connecting | 6 | 01-28-2011 08:20 PM |
| i can only replay one instrument on my market replay | saeed | Charting | 5 | 01-13-2010 03:43 PM |
| market replay data connecting, market replay data offer | nicknamed | Miscellaneous Support | 1 | 10-29-2009 08:10 AM |
| Is it possible to do market replay and backtesting based on market depth? | clearpicks | Indicator Development | 1 | 03-11-2009 04:07 PM |