Inconsistent Multiple OnData Calling Order Between Strats
Closed this issue · 2 comments
Expected Behavior
Different strategies should call the OnData methods at the same order.
Actual Behavior
Different strategies call the OnData method with seemingly random order.
Potential Solution
I have no idea.
Reproducing the Problem
Create a C# strat with two custom data types (create their classes in separate files) in addition to daily TradeBar.
Create an OnData function to each of them (total:3)
Create another similiar strat (just a different file and name)
Log the order in which OnData functions are called.
See different ordering.
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
master
branch - I have confirmed that this is not a duplicate issue by searching issues
- I have provided detailed steps to reproduce the issue
Hey!
Seems like some bug in the algorithms or the custom data, lean is expected to be deterministic if the input is so too. Hundreds of algos are run in CI every time including custom data. We can't debug this without more information/details on how to reproduce the issue in a simple way, suggest trying to to this first and the issue might go away I'd guess
Hey @Martin-Molinero thanks for the quick reply!
I did workaround for now with everything goes to ondata slice.. but if you care about this i can try create a repro on qc cloud.