{% 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 category, count in stats.by_category.items %}
{{ count }}
{{ category_choices|lookup:category }}
{% endfor %}
{% for factor in factors %}
{{ factor.code }} {{ factor.name }} {% if not factor.is_active %} 已禁用 {% else %} 启用 {% endif %}
{{ factor.get_category_display }}
{{ factor.description|default:"暂无描述" }}
数据源: {{ factor.data_source }} 字段: {{ factor.data_field }} 方向: {% if factor.direction == 'positive' %}正向 {% elif factor.direction == 'negative' %}反向 {% else %}中性{% endif %} 更新: {{ factor.update_frequency }}
{% if factor.min_data_points or not factor.allow_missing %}
{% if factor.min_data_points %} 最小数据点: {{ factor.min_data_points }} {% endif %} {% if not factor.allow_missing %} 不允许缺失 {% endif %}
{% endif %}
{% if factor.is_active %} {% else %} {% endif %}
{% endfor %}
{% if not factors %}
📊
暂无因子定义
{% endif %} {% endblock %}