-
Notifications
You must be signed in to change notification settings - Fork 2k
Symmetrical Simulation Freezes at Point of Reversal #752
Comments
Here is some data of the queries around the code that identifies the original data is complete and it begins the reversal process. Notice how the Query (
Query (
Query (
Query (
|
This should fix issue DeviaVir#752 where using the --symmetrical option in a sim causes it to freeze.
I found the issue is caused by the cursor not properly adjusting from the reversal of time. Here is a screenshot of a simulation HTML report after the fix #753: When running, I recommend using |
This should fix issue #752 where using the --symmetrical option in a sim causes it to freeze.
There is an issue with the
sim
command when using the--symmetrical
option. It will simulate the history of trades like normal. However, once it reaches the point of reversing, it appears to get caught in a loop. I used mongoreplay to capture this log (an excerpt of the full log) and a snippet at time of reversal. There is a lot of data in there but you can see at the point of reversal there a couple offind
orders in a row and then starts alternatingfind
andgetMore
orders. After the reversal, it keeps repeating the samefind
andgetMore
orders though.While debugging #750, I found that the program kept entering this logic of the code, which I think makes sense. However, the cursor does not appear to be moving correctly. I will be investigating this but wanted to share my findings so far.
The text was updated successfully, but these errors were encountered: