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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    75 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X