mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
31 lines
488 B
C++
31 lines
488 B
C++
/*
|
||
* Ema.h
|
||
*
|
||
* Created on: 2013-4-10
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#ifndef EMA_H_
|
||
#define EMA_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/*
|
||
* 指数移动平均线(Exponential Moving Average)
|
||
* 参数: n: 计算均值的周期窗口,必须为大于0的整数
|
||
* 抛弃数 = 0
|
||
*/
|
||
class Ema: public IndicatorImp {
|
||
INDICATOR_IMP(Ema)
|
||
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
||
|
||
public:
|
||
Ema();
|
||
virtual ~Ema();
|
||
};
|
||
|
||
} /* namespace hku */
|
||
#endif /* EMA_H_ */
|