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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    115 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    161 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    83 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    127 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    81 views
    0 likes
    Last Post PaulMohn  
    Working...
    X