hikyuu2/hikyuu_cpp/hikyuu/indicator/imp/RightShift.h
2019-03-20 02:47:02 +08:00

33 lines
673 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* RightShift.h
*
* Created on: 2015年3月21日
* Author: fasiondog
*/
#ifndef INDICATOR_IMP_RIGHTSHIFT_H_
#define INDICATOR_IMP_RIGHTSHIFT_H_
#include "../Indicator.h"
namespace hku {
/*
* REF 向前引用 (即右移)
* 引用若干周期前的数据。
* 用法 REF(XA) 引用A周期前的X值。
* 例如 REF(CLOSE1) 表示上一周期的收盘价,在日线上就是昨收。
*/
class RightShift: public IndicatorImp {
INDICATOR_IMP(RightShift)
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
public:
RightShift();
virtual ~RightShift();
};
} /* namespace hku */
#endif /* INDICATOR_IMP_RIGHTSHIFT_H_ */