1 Star 0 Fork 39

phby/ChanlunX

forked from rubikplanet/ChanlunX 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
KxianChuLi.h 701 Bytes
Copy Edit Raw Blame History
devdevdevdeep authored 2019-03-30 21:52 . 简笔
#ifndef __KXIANCHULI_H__
#define __KXIANCHULI_H__
#include <vector>
using namespace std;
#pragma pack(push, 1)
// 原始K线
struct KxianRaw
{
float gao;
float di;
};
// 表示合并后的K线
struct Kxian
{
float gao; // K线高
float di; // K线低
int fangXiang; // K线方向
int kaiShi; // 开始K线坐标
int jieShu; // 结束K线坐标
int zhongJian;
};
class KxianChuLi
{
public:
vector<KxianRaw> kxianRawList; // 元素K线表
vector<Kxian> kxianList; // 包含处理后的K线表
void add(float gao, float di); // 添加一根K线高和低进行处理
};
#pragma pack(pop)
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phby/ChanlunX1.git
git@gitee.com:phby/ChanlunX1.git
phby
ChanlunX1
ChanlunX
master

Search