Skip to content

Releases: HasibVortex369/riskkit

v0.4.2 — reject inverted stops and targets

Choose a tag to compare

@HasibVortex369 HasibVortex369 released this 02 Jul 09:09

Fixed

Inverted stops (and targets) are now rejected. Two new validator checks — stop_on_protective_side fails any long whose stop sits at or above the entry (short: at or below), and target_on_profit_side fails a target on the losing side of the entry. Previously an inverted stop was silently sized via abs(entry − stop) and approved. Both checks run in PreTradeValidator.validate() and therefore in every RiskManager.evaluate() call; sizing and validation of correctly-oriented trades are unchanged.

Install: pip install riskkit-quant · Docs · Full changelog