Skip to main content

Crate qs_strategy

Crate qs_strategy 

Source
Expand description

Synchronous configured strategy compilation and evaluation.

The crate accepts strict, bounded, unversioned configuration and compiles it into a deterministic material graph and finite state machine. Callers own input adaptation, material libraries, command execution, and persistence.

Structs§

AssignmentConfig
CompletedBar
CompletedBarRequirement
CompletedBarUpdate
ConfiguredCommand
ConfiguredStrategy
ConfiguredStrategyRequirements
Decision
DecisionTemplate
MaterialBuild
Result of constructing one material evaluator.
MaterialConfig
MaterialEvalContext
MaterialLibrary
NamedExpr
NamedInputRequirement
NamedOutput
NamedValue
Note
NoteTemplate
RelatedTrade
SourceId
Bounded logical completed-bar source identity.
StateConfig
StrategyConfig
Strict configured strategy document.
StrategyInput
StrategyOutput
TradeSlotFacts
TransitionConfig
ValueType
A scalar expression type with explicit optionality.
VariableConfig

Enums§

ActionTemplate
BarField
CommandFact
CommandFeedback
CommandTerminalStatus
CompileError
A terminal configuration compilation failure.
ConfiguredActionKind
DecisionKind
EvaluationError
A terminal strategy evaluation failure.
Expr
FeedbackField
Literal
A strict configured literal, including an explicitly typed missing value.
MaterialLookback
MaterialParams
Strict built-in material parameters. Custom factories are parameterless.
MaterialUpdateTrigger
NoteKind
OutputScalar
PositionField
ScalarType
A scalar type understood by configured expressions.
TradeSlotState
Value
A typed runtime value. Missing always retains its scalar type.

Constants§

MATERIAL_ATR
MATERIAL_BAR_FIELD
MATERIAL_CANCELLATION_APPLIED
MATERIAL_CANCELLATION_REJECTED
MATERIAL_CROSS_ABOVE
MATERIAL_CROSS_BELOW
MATERIAL_EMA
MATERIAL_ENTRY_FILLED
MATERIAL_ENTRY_REJECTED
MATERIAL_INPUT_TIME
MATERIAL_POSITION_CLOSED
MATERIAL_POSITION_ENTRY_PRICE
MATERIAL_POSITION_EXISTS
MATERIAL_POSITION_OPEN
MATERIAL_POSITION_PENDING
MATERIAL_POSITION_REMAINING_SIZE
MATERIAL_POSITION_SIDE
MATERIAL_POSITION_STOPLOSS
MATERIAL_READINESS
MAX_ACTIONS
MAX_ASSIGNMENTS
MAX_COMPLETED_BARS
MAX_ENTRY_TARGETS
MAX_EXPR_DEPTH
MAX_EXPR_NODES
MAX_GENERATED_ID_BYTES
MAX_ID_BYTES
MAX_LEGS
MAX_MATERIALS
MAX_MATERIAL_INPUTS
MAX_MATERIAL_LOOKBACK
MAX_MATERIAL_STATE_BYTES
MAX_NAMED_VALUES
MAX_NOTES
MAX_OUTPUT_COMMANDS
MAX_OUTPUT_NOTES
MAX_PENDING_FEEDBACK
MAX_SOURCES
MAX_STATES
MAX_TEXT_BYTES
MAX_TRANSITIONS
MAX_VARIABLES

Traits§

MaterialEvaluator
Stateful deterministic material evaluator.
MaterialFactory