strategy#
tradeexecutor.strategy Python module in Trading Strategy framework.
Module description#
Strategy core - the internal state data structures.
This is the code of the strategy execution engine. We define how the data structures look like and what actions are possible.
All data structures are based on dataclass
DLS and dataclasses_json serialisation.
The main tradeexecutor.state.State
class serialises the whole strategy execution state
in one go and passes it to the web client as one JSON download.
Submodules#
Apply accounting corrections on the strategy state. |
|
Alpha model and portfolio construction model related logic. |
|
Trade approval models. |
|
Asset management helpers. |
|
Loading Python strategy modules. |
|
Strategy cycle definitions. |
|
Default routing options for trading strategies. |
|
Strategy execution description. |
|
A testing executoin model without actual execution. |
|
Execution modes. |
|
Strategy execution model. |
|
Strategy initialisation using factory design pattern. |
|
Helpers for outputting strategy execution information to Python logging and Discord. |
|
Trading Strategy internal strategy types using Pandas data and decide_trades functino. |
|
Asset pricing model. |
|
QSTrader portfolio construction model based strategy types. |
|
Reserve currency options for strategies. |
|
Universe reverse loading. |
|
Trade routing instructions. |
|
Execution state communicates the current trade execution loop state to the webhook. |
|
Strategy execution core. |
|
Stop loss trade logic. |
|
Strategy cycle trigger. |
|
Describe strategy modules and their loading. |
|
Declarate what kind of strategy types our strategy loader and backtesting framework supports. |
|
Strategy status summary. |
|
Strategy deposit and withdrawal syncing. |
|
Trading Strategy oracle data integration. |
|
Construct the trading universe for the strategy. |
|
Valuation models for the portfolio. |
|
Weighting based portfolio manipulation. |