Fix Crypto Scanner Side Detection

Job ID: 40539435

Budget: $50 – $100 USD

My Python-based market-scanner is connected to the Bybit exchange and is meant to flag when it’s time to buy or sell. Right now the side-detection logic is off on both ends—it labels potential longs as shorts and vice-versa.

I need the detection algorithm reviewed, corrected, and stress-tested against live and historical Bybit data so that:
• every true buy signal is tagged as such,
• every true sell signal is tagged correctly, and
• no extra false positives slip through.

You’ll have direct access to the existing repository, which uses the Bybit REST/WebSocket APIs along with standard Python trading libraries (pandas, numpy, ta). Unit tests are already in place; feel free to extend them to cover edge cases you uncover while debugging. Deliver a clean, commented patch or pull request plus a brief summary of the changes and the test evidence that the scanner now behaves as intended.