pub fn decide_from_signals(
signal_summary: &SignalSummary,
playbook: &Playbook,
current_position_side: Option<&str>,
current_entry_price: Option<f64>,
current_price: Option<f64>,
) -> RuleDecisionExpand description
Produce a deterministic order decision from evaluated signals.
Logic:
- Collect all triggered rules with their actions.
- Count buy vs sell votes.
- Majority wins. Ties → hold.
- Check stop-loss / take-profit if position exists.