Hikyuu
0.1
|
#include <FixedPercentProfitGoal.h>
Public 成员函数 | |
FixedPercentProfitGoal () | |
virtual | ~FixedPercentProfitGoal () |
![]() | |
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) |
设置名称 更多... | |
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调用 更多... | |
额外继承的成员函数 | |
![]() | |
typedef shared_ptr< ProfitGoalBase > | ProfitGoalPtr |
![]() | |
string | m_name |
KData | m_kdata |
TradeManagerPtr | m_tm |
hku::FixedPercentProfitGoal::FixedPercentProfitGoal | ( | ) |
|
virtual |