Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The code intended to detect a moving-average crossover computes `prev_long` using a single historical close (`close[-params["long_window"]-1]`) instead of the previous long-window average. This breaks the documented strategy logic and can generate incorrect buy/sell signals, which is materially dangerous in an automated trading skill because it may trigger unintended market orders and financial loss.
