Metadata-Version: 2.5
Name: nlalpha-family-cta
Version: 0.4.0
Summary: CTA strategy family plugin for NLAlpha
Project-URL: Homepage, https://github.com/ruimarj/nlalpha-family-cta
Project-URL: Repository, https://github.com/ruimarj/nlalpha-family-cta
Project-URL: Issues, https://github.com/ruimarj/nlalpha-family-cta/issues
Project-URL: Changelog, https://github.com/ruimarj/nlalpha-family-cta/releases
License-Expression: AGPL-3.0-or-later
License-File: LICENSE
Requires-Python: <3.13,>=3.12
Requires-Dist: nlalpha-core>=0.7.0
Description-Content-Type: text/markdown

# nlalpha-family-cta

Event-driven CTA strategy family for historical research. It is intended for rules whose meaning depends on event callbacks, order handling, or changing account state, subject to the currently installed family and engine capabilities.

The current `about` and full `confess` descriptions own the family API, lifecycle, order behavior, inputs, and limits. Agents must read them before authoring or validating a CTA strategy; examples in the package are not a substitute for the current contract. The runtime catalogue is assembled from registered providers and the strategy instance: use the registered signature for each helper, and use `self.position_for(symbol)` or `self.history_for(symbol)` where a multi-symbol callback has no single current symbol. Do not infer that every similarly named indicator accepts the same arguments.

Sizing follows the user's stated basis. `self.available_cash` is the dynamic account value and `self.initial_cash` is the starting value; neither should replace a different quantity or capital basis chosen by the user. A generated candidate must be a complete `CtaStrategyBase` subclass implementing `on_bar(bar)` or `on_bars(bars)`; a method fragment or `hasattr`-based probing is not a valid substitute for the current capability contract.

Preserve the user's rule meaning and report the limits of mock validation.

## Family contract

CTA uses `BaseStrategyFamilyPlugin` and returns a `FamilyContract` from `family_contract()`. Contract construction only describes the family; it does not publish capability helpers. Helper discovery and runtime provider injection are handled by the capability registry and application assembly. The family returns its supplementary conventions through `confess()`; it does not need a separate `about()` implementation.


## License

Community distribution under AGPL-3.0-or-later. The community license does not cover private enhancement packages, the platform integration, the adapter, or third-party dependencies.
