Hikyuu
FixedPercentStoploss.h
浏览该文件的文档.
1 /*
2  * FixedPercentStoploss.h
3  *
4  * Created on: 2013-4-19
5  * Author: fasiondog
6  */
7 
8 #ifndef FIXEDPERCENTSTOPLOSS_H_
9 #define FIXEDPERCENTSTOPLOSS_H_
10 
11 #include "../StoplossBase.h"
12 
13 namespace hku {
14 
19  STOPLOSS_IMP(FixedPercentStoploss, "FixedPercentSL")
21 
22 public:
24  virtual ~FixedPercentStoploss();
25 };
26 
27 } /* namespace hku */
28 #endif /* FIXEDPERCENTSTOPLOSS_H_ */
固定百分比止损策略,即当价格低于买入价格的某一百分比时止损
Definition: FixedPercentStoploss.h:18
virtual ~FixedPercentStoploss()
Definition: FixedPercentStoploss.cpp:16
#define STOPLOSS_NO_PRIVATE_MEMBER_SERIALIZATION
对于没有私有变量的继承子类,可直接使用该宏定义序列化
Definition: StoplossBase.h:144
止损/止赢策略基类
Definition: StoplossBase.h:28
Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
Definition: Block.cpp:11
#define STOPLOSS_IMP(classname, str_name)
Definition: StoplossBase.h:155
FixedPercentStoploss()
Definition: FixedPercentStoploss.cpp:12