mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
29 lines
395 B
C++
29 lines
395 B
C++
/*
|
|
* Diff.h
|
|
*
|
|
* Created on: 2013-4-18
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#ifndef DIFF_H_
|
|
#define DIFF_H_
|
|
|
|
#include "../Indicator.h"
|
|
|
|
namespace hku {
|
|
|
|
/*
|
|
* 差分指标,即 a[i] - a[i-1]
|
|
*/
|
|
class Diff: public hku::IndicatorImp {
|
|
INDICATOR_IMP(Diff)
|
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
|
|
public:
|
|
Diff();
|
|
virtual ~Diff();
|
|
};
|
|
|
|
} /* namespace hku */
|
|
#endif /* DIFF_H_ */
|