hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/REF.h

37 lines
774 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.

/*
* REF.h
*
* Created on: 2015年3月21日
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_REF_H_
#define INDICATOR_CRT_REF_H_
#include "../Indicator.h"
namespace hku {
/**
* REF 向前引用 (即右移)
* 引用若干周期前的数据。
* 用法 REF(XA) 引用A周期前的X值。
* @param n 引用n周期前的值即右移n位
* @ingroup Indicator
*/
Indicator HKU_API REF(int n);
/**
* REF 向前引用 (即右移)
* 引用若干周期前的数据。
* 用法 REF(XA) 引用A周期前的X值。
* @param ind 待计算的数据
* @param n 引用n周期前的值即右移n位
* @ingroup Indicator
*/
Indicator HKU_API REF(const Indicator& ind, int n);
} /* namespace hku */
#endif /* INDICATOR_CRT_REF_H_ */