Skip to main content

Module risk_defaults

Module risk_defaults 

Source

Structs§

RiskDefaults
Per-category risk defaults for SL, TP, and trailing-stop parameters.
TrailingStopState
State for a trailing stop attached to an open position.

Enums§

SlType
The type of stop-loss calculation.
TrailingDirection
Direction of the trailing stop (tracks position side).
VolumeContext
Classified volume context for the current market state.

Functions§

analyze_volume_context
Analyse volume context using candles and technical indicators.
apply_adx_filter
Apply ADX-based filtering to a mean-reversion signal.
base_position_pct
Return the base position percentage for the given strategy category.
get_risk_defaults
Look up the risk defaults for the given strategy category.
suggested_qty_pct
Compute a suggested position size as a percentage of total capital.
volume_strength_modifier
Return a strength modifier for a given volume context and strategy category.