stop-loss-check
Installation
SKILL.md
Stop-Loss Validation
Core Rules
| Direction | Stop-Loss Position | Validation |
|---|---|---|
| LONG | SL must be < entry price | stop_loss_price < entry_price - PRICE_EPSILON |
| SHORT | SL must be > entry price | stop_loss_price > entry_price + PRICE_EPSILON |
Note: Use
PRICE_EPSILON = entry_price * 1e-8for floating-point comparison.
Fixed Bug
Commit: 7f940fb
Problem: When market moves fast, support/resistance levels may be on wrong side of entry price, causing immediate SL trigger.