hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/DEVSQ.h
2019-05-16 22:40:56 +08:00

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

/*
* DEVSQ.h
*
* Copyright (c) 2019, hikyuu.org
*
* Created on: 2013-4-18
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_DEVSQ_H_
#define INDICATOR_CRT_DEVSQ_H_
#include "../Indicator.h"
namespace hku {
/**
* 数据偏差平方和求X的N日数据偏差平方和
* @param n N日时间窗口
* @ingroup Indicator
*/
Indicator HKU_API DEVSQ(int n = 10);
Indicator DEVSQ(const Indicator& data, int n = 10);
inline Indicator DEVSQ(const Indicator& data, int n) {
return DEVSQ(n)(data);
}
} /* namespace */
#endif /* INDICATOR_CRT_DEVSQ_H_ */