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?
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    241 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X