Hikyuu
Public 成员函数 | 所有成员列表
hku::FixedPercentProfitGoal类 参考

#include <FixedPercentProfitGoal.h>

类 hku::FixedPercentProfitGoal 继承关系图:
Inheritance graph
[图例]
hku::FixedPercentProfitGoal 的协作图:
Collaboration graph
[图例]

Public 成员函数

 FixedPercentProfitGoal ()
 
virtual ~FixedPercentProfitGoal ()
 
- Public 成员函数 继承自 hku::ProfitGoalBase
 ProfitGoalBase ()
 
 ProfitGoalBase (const string &name)
 
virtual ~ProfitGoalBase ()
 
void setTM (const TradeManagerPtr &tm)
 设置账户 更多...
 
TradeManagerPtr getTM () const
 获取账户 更多...
 
void setTO (const KData &kdata)
 设置交易对象 更多...
 
KData getTO () const
 获取交易对象 更多...
 
string name () const
 获取名称 更多...
 
void name (const string &name)
 设置名称 更多...
 
virtual void buyNotify (const TradeRecord &)
 接收实际交易变化情况 更多...
 
virtual void sellNotify (const TradeRecord &)
 接收实际交易变化情况 更多...
 
void reset ()
 复位操作 更多...
 
ProfitGoalPtr clone ()
 克隆接口 更多...
 
virtual price_t getGoal (const Datetime &datetime, price_t price)=0
 买入时计算目标价格 更多...
 
virtual price_t getShortGoal (const Datetime &, price_t)
 返回0,表示未设目标 更多...
 
virtual void _reset ()
 子类复位接口 更多...
 
virtual ProfitGoalPtr _clone ()=0
 子类克隆接口 更多...
 
virtual void _calculate ()=0
 子类计算接口,由setTO调用 更多...
 

额外继承的成员函数

- Public 类型 继承自 hku::ProfitGoalBase
typedef shared_ptr< ProfitGoalBaseProfitGoalPtr
 
- Protected 属性 继承自 hku::ProfitGoalBase
string m_name
 
KData m_kdata
 
TradeManagerPtr m_tm
 

构造及析构函数说明

hku::FixedPercentProfitGoal::FixedPercentProfitGoal ( )
hku::FixedPercentProfitGoal::~FixedPercentProfitGoal ( )
virtual

该类的文档由以下文件生成: