hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/VIGOR.h
2019-03-30 23:13:37 +08:00

34 lines
677 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 {
/**
* 亚历山大 艾尔德力度指数
* @details
* <pre>
* 参见《走进我的交易室》2007年 地震出版社) (Alexander Elder) P131
* 计算公式:(收盘价今-收盘价昨)*成交量今
* 一般可以再使用EMA或MA进行平滑
* </pre>
* @param kdata 待计算的K线数据
* @param n EMA平滑窗口必须大于等于1
* @ingroup Indicator
*/
Indicator HKU_API VIGOR(const KData& kdata, int n = 2);
Indicator HKU_API VIGOR(int n = 2);
} /* namespace */
#endif /* VIGOR_H_ */