AssetManager.API/AssetManager.Models/DTOs/ChandelierExitConfig.cs
niannian zheng 2d1fbd37d8 feat: 添加策略引擎实现及相关组件
实现策略引擎核心功能,包括三种策略计算器和相关DTO定义:
1. 添加双均线策略(ma_trend)计算器
2. 添加吊灯止损策略(chandelier_exit)计算器
3. 添加风险平价策略(risk_parity)计算器
4. 定义策略类型常量类和策略配置DTO
5. 实现策略引擎服务接口和扩展方法
6. 更新项目引用和README文档
2026-03-02 14:15:34 +08:00

22 lines
534 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace AssetManager.Models.DTOs;
/// <summary>
/// 吊灯止损策略配置
/// </summary>
public class ChandelierExitConfig
{
/// <summary>
/// 周期(通常为 22
/// </summary>
public int Period { get; set; } = 22;
/// <summary>
/// ATR 倍数(通常为 3.0
/// </summary>
public decimal Multiplier { get; set; } = 3.0m;
/// <summary>
/// 是否使用收盘价计算false 表示用最高价/最低价)
/// </summary>
public bool UseClose { get; set; } = false;
}