mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
34 lines
666 B
C++
34 lines
666 B
C++
/*
|
||
* 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_ */
|