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-8 for 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.

Installs
9
GitHub Stars
1
First Seen
Feb 11, 2026
stop-loss-check — felixwayne0318/aitrader