docs(strategy): entry_technique is a recorded label, not a sizing/stop control - #231
Merged
Merged
Conversation
…p control indicators_cts.py documented a risk-graded entry ladder (confirm_3bar = smaller size/wider stop, aggressive = larger size/tighter stop). Nothing implements it: entry_technique reaches only the signals audit payload and an agent.enter_evaluated log line, and no sizing or stop-placement code branches on it (verified via git grep across *.py, tests excluded). Position size and stop distance are identical whether CTS scores 2 or 12. Rewrite the module docstring and entry_technique's docstring to describe what the value actually is: a recorded confluence-tier label, kept for audit and later analysis. State plainly that wiring the ladder would be a live position-sizing change requiring backtest evidence that graded sizing beats flat sizing, plus a rails review. No logic changed: low=5/high=8 defaults, the returned literals (confirm_3bar/signal_candle/aggressive -- persisted in the signals table), DEFAULT_WEIGHTS, and every call site are untouched. Closes #228 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
keel/strategy/indicators_cts.pydocumented a risk-graded entry ladder —confirm_3bar= "smaller size, wider stop",aggressive= "larger size, tighter stop". Nothing in the codebase implements any of it.entry_techniqueis computed inengine.py:144and reaches exactly two destinations: thesignalsaudit payload (engine.py:360) and atechnique=field on anagent.enter_evaluatedlog line (agent.py:1166).git grep -nE "technique (==|!=|in )" -- '*.py'returns nothing outside tests. Position size and stop distance are identical whether CTS scores 2 or 12.This PR removes the documented behaviour the code never had and rewrites the docstrings to describe what
entry_techniqueactually is: a recorded label naming the confluence tier at signal time, kept for audit and later analysis.Nothing changes at runtime. The diff is docstrings only:
low=5/high=8defaults: untouchedconfirm_3bar/signal_candle/aggressive(persisted in thesignalstable): untouched, same spellingsDEFAULT_WEIGHTSand every call site: untouchedWiring the ladder into sizing/stops remains possible later, but it is a live position-sizing change and needs its own evidence — backtest data showing graded sizing beats flat sizing, plus a rails review (sizing interacts with the per-order and per-day caps) — before it earns a docstring claim like the one this removes.
Closes #228
Test plan
uv run ruff check keel tests packages scripts— all checks passeduv run pytest -q— 2444 passed, 1 skipped (matches main baseline exactly; no test count change since no behaviour changed)uv run mypy— no issues found in 219 source files🤖 Generated with Claude Code