hikyuu2/hikyuu_cpp/hikyuu/indicator/imp/Vigor.h
2019-04-10 22:48:42 +08:00

34 lines
666 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.

/*
* Vigor.h
*
* Created on: 2013-4-12
* Author: fasiondog
*/
#ifndef VIGOR_H_
#define VIGOR_H_
#include "../Indicator.h"
namespace hku {
/*
* 亚历山大.艾尔德力度指数
* 参见《走进我的交易室》2007年 地震出版社) (Alexander Elder) P131
* 计算公式:(收盘价今-收盘价昨)*成交量今
* n: 用于EMA平滑的周期窗口必须为大于0的整数
*/
class Vigor: public IndicatorImp {
INDICATOR_IMP(Vigor)
INDICATOR_NEED_CONTEXT
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
public:
Vigor();
Vigor(int n);
virtual ~Vigor();
};
} /* namespace hku */
#endif /* VIGOR_H_ */