hikyuu2/hikyuu_cpp/hikyuu/indicator/imp/Ama.h
2019-11-10 23:31:41 +08:00

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

/*
* Ama.h
*
* Created on: 2013-4-7
* Author: fasiondog
*/
#pragma once
#ifndef AMA_H_
#define AMA_H_
#include "../Indicator.h"
namespace hku {
/*
* 佩里.J.考夫曼Perry J.Kaufman自适应移动平均参见《精明交易者》2006年 广东经济出版社)
* 参数: n: 计算均值的周期窗口必须为大于2的整数
* fast_n: 快速趋势的周期一般为2不用改变
* slow_n: 对应慢速EMA线的N值考夫曼一般设为30不过当超过60左右该指标会收敛不会有太大的影响
*/
class Ama : public IndicatorImp {
INDICATOR_IMP(Ama)
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
public:
Ama();
virtual ~Ama();
};
} /* namespace hku */
#endif /* AMA_H_ */