Update 更新文档

This commit is contained in:
2026-02-25 23:01:42 +08:00
parent 40aff32fb0
commit 80518309a7
679 changed files with 4611263 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <QString>
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