hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/EMA.h
2019-03-15 23:35:09 +08:00

33 lines
620 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.

/*
* EMA.h
*
* Created on: 2013-4-10
* Author: fasiondog
*/
#ifndef EMA_H_
#define EMA_H_
#include "../Indicator.h"
namespace hku {
/**
* 指数移动平均线(Exponential Moving Average)
* @param n 计算均值的周期窗口必须为大于0的整数
* @ingroup Indicator
*/
Indicator HKU_API EMA(int n = 22);
/**
* 指数移动平均线(Exponential Moving Average)
* @param data 待计算的源数据
* @param n 计算均值的周期窗口必须为大于0的整数
* @ingroup Indicator
*/
Indicator HKU_API EMA(const Indicator& data, int n = 22);
} /* namespace */
#endif /* EMA_H_ */