Files

43 lines
722 B
C
Raw Permalink Normal View History

2026-02-25 23:01:42 +08:00
#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