8 #ifndef INDICATORSTOPLOSS_H_ 9 #define INDICATORSTOPLOSS_H_ 11 #include "../../../indicator/Operand.h" 12 #include "../StoplossBase.h" 20 const string& kdata_part);
30 map<Datetime, price_t> m_result;
35 #if HKU_SUPPORT_SERIALIZATION 38 template<
class Archive>
39 void serialize(Archive & ar,
const unsigned int version) {
41 ar & BOOST_SERIALIZATION_NVP(m_op);
IndicatorStoploss()
Definition: IndicatorStoploss.cpp:13
virtual StoplossPtr _clone()
子类克隆接口
Definition: IndicatorStoploss.cpp:36
Definition: IndicatorStoploss.h:16
shared_ptr< StoplossBase > StoplossPtr
Definition: StoplossBase.h:57
virtual void _reset()
子类复位接口
Definition: IndicatorStoploss.cpp:32
日期类型
Definition: Datetime.h:33
virtual ~IndicatorStoploss()
Definition: IndicatorStoploss.cpp:24
friend class boost::serialization::access
Definition: IndicatorStoploss.h:37
double price_t
Definition: DataType.h:53
止损/止赢策略基类
Definition: StoplossBase.h:28
virtual price_t getPrice(const Datetime &datetime, price_t price)
获取本次预期交易(买入)时的计划止损价格,如果不存在止损价,则返回0。 用于系统在交易执行前向止损策略...
Definition: IndicatorStoploss.cpp:28
virtual void _calculate()
子类计算接口,由setTO调用
Definition: IndicatorStoploss.cpp:42
Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
Definition: Block.cpp:11