Update 更新文档
This commit is contained in:
43
cleaned_source_code/Sqbase/config.h
Normal file
43
cleaned_source_code/Sqbase/config.h
Normal 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
|
||||
Reference in New Issue
Block a user