fix: validate broker settings, orders, and optimization signals

Reject invalid numeric inputs at Python boundaries before account mutation or grid workers start. Preserve partial-close no-ops and profit-locking stops, and reject invalid native SMA windows without panicking.

Refs #16

Codex 🤖, On behalf of Khizar
This commit is contained in:
Khizar Imran
2026-10-31 00:47:50 +00:00
parent bca7f5463b
commit b82a09ff71
10 changed files with 389 additions and 7 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ priorities or delivered capabilities change.
- Implemented (unreleased): gap-aware stop/target fills
([#8](https://github.com/KhizarImran/backtestingfx/issues/8)); see README execution policy.
- Data and timestamp validation: [#15](https://github.com/KhizarImran/backtestingfx/issues/15).
- Broker, size, and signal validation: [#16](https://github.com/KhizarImran/backtestingfx/issues/16).
- Implemented (unreleased): Python broker, size, and signal validation
([#16](https://github.com/KhizarImran/backtestingfx/issues/16)).
- Independent native engine runs: [#18](https://github.com/KhizarImran/backtestingfx/issues/18).
## 2. Core adoption (P1)