hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/ATR.h

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

/*
* ATR.h
*
* Created on: 2016年5月4日
* Author: Administrator
*/
#ifndef INDICATOR_CRT_ATR_H_
#define INDICATOR_CRT_ATR_H_
#include "../Indicator.h"
namespace hku {
/**
* 平均真实波幅(Average True Range)
* @param n 计算均值的周期窗口必须为大于1的整数
* @ingroup Indicator
*/
Indicator HKU_API ATR(int n = 14);
/**
* 平均真实波幅(Average True Range)
* @param data 待计算的源数据
* @param n 计算均值的周期窗口必须为大于1的整数
* @ingroup Indicator
*/
Indicator HKU_API ATR(const Indicator& data, int n = 14);
} /* namespace */
#endif /* INDICATOR_CRT_ATR_H_ */