{% extends "base.html" %} {% block title %}候选详情 - Alpha Trigger{% endblock %} {% block content %}

候选详情

Alpha 触发器产生的投资候选

返回列表
{% if error %}
{{ error }}
{% endif %}
{{ candidate.get_status_display }}
当前状态
{{ candidate.confidence|floatformat:2 }}
信号强度
{% widthratio candidate.created_at 1 1 %}
活跃天数
{{ candidate.expires_at|timeuntil }}
剩余时间
{{ candidate.asset_code }} {{ candidate.asset_class }} | {{ candidate.get_direction_display }}
{{ candidate.get_status_display }}
候选 ID {{ candidate.candidate_id }}
方向 {% if candidate.direction == 'LONG' %} 做多 {% elif candidate.direction == 'SHORT' %} 做空 {% else %} 中性 {% endif %}
信号强度 {{ candidate.confidence|floatformat:2 }}
创建时间 {{ candidate.created_at|date:"Y-m-d H:i" }}
过期时间 {% if candidate.expires_at %}{{ candidate.expires_at|date:"Y-m-d H:i" }}{% else %}永不过期{% endif %}
目标价格 (可选) {% if candidate.target_price %}{{ candidate.target_price }}{% else %}未设置{% endif %}
止损价格 (可选) {% if candidate.stop_loss %}{{ candidate.stop_loss }}{% else %}未设置{% endif %}
信号置信度 {{ candidate.confidence|floatformat:2 }}
{% if candidate.status == 'CANDIDATE' or candidate.status == 'ACTIONABLE' %} {% if candidate.last_decision_request_id %} {% else %} {% endif %} {% endif %} {% if candidate.status != 'EXECUTED' and candidate.status != 'INVALIDATED' and candidate.status != 'CANCELLED' %} {% endif %}
{% if candidate.status == 'EXECUTED' and candidate.last_execution_status %}
执行记录
{% if execution_ref %}
交易 ID: {{ execution_ref.trade_id|default:"-" }}
持仓 ID: {{ execution_ref.position_id|default:"-" }}
账户 ID: {{ execution_ref.account_id|default:"-" }}
{% endif %}
执行状态: {{ candidate.last_execution_status }}
{% endif %}
{% if candidate.thesis %}
投资论点
{{ candidate.thesis|linebreaks }}
{% endif %} {% if candidate.invalidation_conditions %}
证伪条件 满足条件时候选将被自动证伪
{% for condition in candidate.invalidation_conditions %}
{{ condition.description }} {% if condition.is_satisfied %} 已满足 {% endif %}
{% endfor %}
{% endif %}
来源触发器 查看详情
{{ source_trigger.get_trigger_type_display }} {{ source_trigger.created_at|date:"Y-m-d H:i" }}
{{ source_trigger.asset_code }} | {{ source_trigger.get_direction_display }}
{% if source_trigger.thesis %}
触发器论点: {{ source_trigger.thesis|truncatewords:30 }}
{% endif %}
状态历史 候选的所有状态变更记录
{% if status_history %} {% for event in status_history %}
{{ event.get_status_display }} {{ event.created_at|date:"Y-m-d H:i" }}
{% if event.note %}
{{ event.note }}
{% endif %}
{% endfor %} {% else %}
暂无状态历史
{% endif %}
{% endblock %}