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

浏览源代码.

class  hku::MoneyManagerBase
 资金管理基类 更多...
 

命名空间

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

宏定义

#define MONEY_MANAGER_NO_PRIVATE_MEMBER_SERIALIZATION
 对于没有私有变量的继承子类,可直接使用该宏定义序列化 更多...
 
#define MONEY_MANAGER_IMP(classname)
 

类型定义

typedef shared_ptr< MoneyManagerBase > hku::MoneyManagerPtr
 客户程序都应使用该指针类型 更多...
 
typedef shared_ptr< MoneyManagerBase > hku::MMPtr
 

函数

HKU_API std::ostream & hku::operator<< (std::ostream &os, const MoneyManagerBase &mm)
 
HKU_API std::ostream & hku::operator<< (std::ostream &os, const MoneyManagerPtr &mm)
 

宏定义说明

#define MONEY_MANAGER_IMP (   classname)
值:
public:\
virtual MoneyManagerPtr _clone() {\
return MoneyManagerPtr(new classname());\
}\
virtual size_t _getBuyNumber(const Datetime& datetime, const Stock& stock,\
price_t price, price_t risk, SystemPart from);
SystemPart
系统关联部件(各自策略)枚举定义,用于修改相关部件参数
Definition: SystemPart.h:19
shared_ptr< MoneyManagerBase > MoneyManagerPtr
客户程序都应使用该指针类型
Definition: MoneyManagerBase.h:217
double price_t
Definition: DataType.h:53