{% extends "factor/base.html" %} {% load static %} {% load factor_tags %} {% block title %}因子组合配置 - AgomTradePro{% endblock %} {% block factor_content %}

因子组合配置

{{ stats.total }}
总配置数
{{ stats.active }}
启用配置
{{ stats.total|subtract:stats.active }}
禁用配置
{% for config in configs %}
{{ config.name }} {% if config.is_active %} 启用 {% else %} 已禁用 {% endif %}
{{ config.description|default:"暂无描述" }}

因子权重

{% for factor_code, weight in config.factor_weights.items %}
{{ factor_code }} {{ weight|floatformat:2 }}
{% empty %} 未设置因子权重 {% endfor %}

选股参数

股票池 {{ universe_choices|lookup:config.universe }}
选股数量 {{ config.top_n }}
调仓频率 {{ rebalance_choices|lookup:config.rebalance_frequency }}
权重方式 {{ weight_method_choices|lookup:config.weight_method }}
{% if config.min_market_cap or config.max_market_cap or config.max_pe or config.max_pb %}

筛选条件

{% if config.min_market_cap %}
最小市值 {{ config.min_market_cap }}亿
{% endif %} {% if config.max_market_cap %}
最大市值 {{ config.max_market_cap }}亿
{% endif %} {% if config.max_pe %}
最大PE {{ config.max_pe }}
{% endif %} {% if config.max_pb %}
最大PB {{ config.max_pb }}
{% endif %}
{% endif %}

最新持仓

{% if config.latest_trade_date %}
日期: {{ config.latest_trade_date|date:"Y-m-d" }} 股票数: {{ config.holdings_count }}
{% else %}
暂无持仓数据
{% endif %}
创建时间: {{ config.created_at|date:"Y-m-d H:i" }} 更新时间: {{ config.updated_at|date:"Y-m-d H:i" }}
{% if config.is_active %} {% else %} {% endif %}
{% endfor %}
{% if not configs %}
📊
暂无组合配置
{% endif %} {% endblock %}