hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/MA.h
2019-05-15 23:22:19 +08:00

28 lines
429 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.

/*
* MA.h
*
* Created on: 2013-2-14
* Author: fasiondog
*/
#ifndef MA_H_
#define MA_H_
#include "../Indicator.h"
namespace hku {
/**
* 简单移动平均
* @param data 待计算的数据
* @param n 计算均值的周期窗口必须为大于0的整数
* @ingroup Indicator
*/
Indicator HKU_API MA(int n = 22);
Indicator HKU_API MA(const Indicator& data, int n = 22);
} /* namespace */
#endif /* MA_H_ */