#ifndef CONFIG_H #define CONFIG_H #include struct StockInfo { QString strCode; QString strName; float fcurPrice; float fShare; }; struct StockKInfo { QString code; QString name; QString timeKey; float open; float close; float high; float low; float peRatio; float turnoverRate; int volume; float turnover; float changeRate; float lastClose; }; struct DataPoint { std::string date; double open; double close; double sma_short; double sma_long; int signal; int position; double returns; double strategy_returns; }; struct PerformanceResult { int S; int L; double total_return; double sharpe_ratio; double max_drawdown; }; #endif