Hikyuu
| 命名空间 | 宏定义 | 类型定义 | 函数 | 变量
IndicatorImp.h 文件参考
#include "../KData.h"
#include "../utilities/Parameter.h"
#include "../utilities/util.h"
#include <boost/serialization/string.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/shared_ptr.hpp>
#include <boost/serialization/assume_abstract.hpp>
#include <boost/serialization/base_object.hpp>
IndicatorImp.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  hku::IndicatorImp
 指标实现类,定义新指标时,应从此类继承 更多...
 

命名空间

 hku
 Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
 

宏定义

#define MAX_RESULT_NUM   6
 
#define INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
 
#define INDICATOR_IMP(classname)
 

类型定义

typedef shared_ptr< IndicatorImp > hku::IndicatorImpPtr
 

函数

HKU_API std::ostream & hku::operator<< (std::ostream &os, const IndicatorImp &imp)
 
HKU_API std::ostream & hku::operator<< (std::ostream &os, const IndicatorImpPtr &imp)
 

变量

class HKU_API hku::Indicator
 

宏定义说明

#define INDICATOR_IMP (   classname)
值:
public: \
virtual bool check(); \
virtual void _calculate(const Indicator& data); \
virtual IndicatorImpPtr operator()(const Indicator& ind) { \
IndicatorImpPtr p = make_shared<classname>(); \
p->setParameter(m_params); \
p->calculate(ind); \
return p; \
}
shared_ptr< IndicatorImp > IndicatorImpPtr
Definition: IndicatorImp.h:189
class HKU_API Indicator
Definition: IndicatorImp.h:27
#define INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
值:
private:\
friend class boost::serialization::access; \
template<class Archive> \
void serialize(Archive & ar, const unsigned int version) { \
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(IndicatorImp); \
}
#define MAX_RESULT_NUM   6