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

31 lines
438 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

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.

/*
* DIFF.h
*
* Created on: 2013-4-18
* Author: fasiondog
*/
#ifndef DIFF_H_
#define DIFF_H_
#include "../Indicator.h"
namespace hku {
/**
* 差分指标即data[i] - data[i-1]
* @ingroup Indicator
*/
Indicator HKU_API DIFF();
/**
* 差分指标即data[i] - data[i-1]
* @param data 待计算数据
* @ingroup Indicator
*/
Indicator HKU_API DIFF(const Indicator& data);
} /* namespace */
#endif /* DIFF_H_ */