{% extends "base.html" %} {% load static %} {% block title %}策略管理 - AgomTradePro{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

📊 策略管理

{{ stats.total }}
总策略数
{{ stats.active }}
激活中
{{ stats.inactive }}
已停用
{{ stats.by_type.rule_based }}
规则策略
{{ stats.by_type.script_based }}
脚本策略
{% for strategy in strategies %}
{{ strategy.name }}
{% if strategy.strategy_type == 'rule_based' %}规则驱动 {% elif strategy.strategy_type == 'script_based' %}脚本驱动 {% elif strategy.strategy_type == 'hybrid' %}混合模式 {% elif strategy.strategy_type == 'ai_driven' %}AI驱动{% endif %} v{{ strategy.version }} {% if strategy.is_active %}激活中{% else %}已停用{% endif %}
{{ strategy.description|default:"暂无描述" }}
{{ strategy.rule_count }}
规则数
{{ strategy.execution_count }}
执行次数
{{ strategy.portfolio_count }}
绑定账户
{% if strategy.rule_summary %}
规则: {% for rule in strategy.rule_summary %}
{{ rule.rule_name }}
{% endfor %}
{% endif %}
{% endfor %}
{% if not strategies %}
📊
暂无策略
点击上方按钮创建您的第一个策略
{% endif %}
{% endblock %}