Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Market Replay

    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
    tradetree, do you have enough data loading for the OnBarUpdate() to be started calling? This means all series satistfy the BarsRequired setting used?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    25 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X