Grid Assistent
- Utilities
- Version: 1.1
- Updated: 26 August 2026
Algorithm Update: Grid Assistant (Version v3.1)
1. Description of the Fixed Issue (Bug Fix): In previous versions, the grid level auto-recovery module ( CheckAndRestoreKnees ) scanned trade history using a fixed lookback window (the last 3 days).
-
When a grid cycle fully closed and profit was taken, the memory cleanup mechanism wiped the stored position IDs as intended.
-
However, upon starting a new grid cycle, the assistant queried historical deals from the past 72 hours, pulled closed profitable orders from the previous cycle, and incorrectly placed ghost Limit orders at those older price levels.
-
This required manual deletion of obsolete pending orders and created potential risks of unauthorized market entries.
2. How It Was Resolved:
-
Dynamic Grid Anchor: The CheckAndRestoreKnees function now dynamically identifies the exact start time of the current active grid cycle.
-
History Isolation: The algorithm locates the open time of the oldest active market position in real-time and queries trade history exclusively from the launch point of the current grid ( gridStartTime ).
-
Result: Historical deals from previous grid cycles are completely isolated. When a new grid is launched, the assistant restores only the levels triggered within the active cycle, eliminating any stray orders from past runs.
