{% extends "rotation/base.html" %} {% block rotation_content %}

轮动信号

{% if current_regime %} 当前象限: {{ current_regime }} {% endif %} 📅 {{ current_date|date:"Y-m-d" }}
{% if filter_config or filter_regime or filter_action %} 清除筛选 {% endif %}
{% if latest_by_config %}

最新信号

{% for config_id, signal in latest_by_config.items %}
{% for config in configs %} {% if config.id == config_id %}{{ config.name }}{% endif %} {% endfor %} {{ signal.signal_date }}
{{ signal.current_regime }}
{% if signal.action_required == 'rebalance' %}🔄 调仓 {% elif signal.action_required == 'hold' %}✋ 持有 {% elif signal.action_required == 'reduce' %}📉 减仓 {% elif signal.action_required == 'increase' %}📈 增持 {% else %}{{ signal.action_required }}{% endif %}
{% if signal.target_allocation %}
{% for asset, weight in signal.target_allocation.items %}
{{ asset }} {% widthratio weight 1 100 %}%
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}

历史信号

{% if signals %}
{% for signal in signals %}
{% for config in configs %} {% if config.id == signal.config_id %}{{ config.name }}{% endif %} {% endfor %} {{ signal.signal_date }}
{{ signal.current_regime }} {% if signal.action_required == 'rebalance' %}🔄 调仓 {% elif signal.action_required == 'hold' %}✋ 持有 {% elif signal.action_required == 'reduce' %}📉 减仓 {% elif signal.action_required == 'increase' %}📈 增持 {% else %}{{ signal.action_required }}{% endif %}
{% if signal.target_allocation %}
目标配置:
{% for asset, weight in signal.target_allocation.items %} {{ asset }}: {% widthratio weight 1 100 %}% {% endfor %}
{% endif %} {% if signal.reason %}
原因: {{ signal.reason }}
{% endif %} {% if signal.momentum_ranking %}
动量排名:
{% for item in signal.momentum_ranking %} {{ item }} {% endfor %}
{% endif %}
{% if signal.expected_return %} 预期收益: {% widthratio signal.expected_return 1 100 %}% {% endif %} {% if signal.expected_volatility %} 预期波动: {% widthratio signal.expected_volatility 1 100 %}% {% endif %}
{% endfor %}
{% else %}
📈

暂无信号记录

生成第一个策略信号以开始使用

{% endif %}
{% endblock %}