Hikyuu
RightShift.h
浏览该文件的文档.
1 /*
2  * RightShift.h
3  *
4  * Created on: 2015年3月21日
5  * Author: fasiondog
6  */
7 
8 #ifndef INDICATOR_IMP_RIGHTSHIFT_H_
9 #define INDICATOR_IMP_RIGHTSHIFT_H_
10 
11 #include "../Indicator.h"
12 
13 namespace hku {
14 
15 /*
16  * REF 向前引用 (即右移)
17  * 引用若干周期前的数据。
18  * 用法: REF(X,A) 引用A周期前的X值。
19  * 例如: REF(CLOSE,1) 表示上一周期的收盘价,在日线上就是昨收。
20  */
21 class RightShift: public IndicatorImp {
24 
25 public:
26  RightShift();
27  virtual ~RightShift();
28 };
29 
30 } /* namespace hku */
31 
32 #endif /* INDICATOR_IMP_RIGHTSHIFT_H_ */
RightShift()
Definition: RightShift.cpp:12
#define INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
Definition: IndicatorImp.h:168
指标实现类,定义新指标时,应从此类继承
Definition: IndicatorImp.h:33
virtual ~RightShift()
Definition: RightShift.cpp:16
#define INDICATOR_IMP(classname)
Definition: IndicatorImp.h:178
Definition: RightShift.h:21
Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
Definition: Block.cpp:11