hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/STDP.h
2019-04-18 23:14:58 +08:00

31 lines
497 B
C++

/*
* STD.h
*
* Created on: 2013-4-18
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_STDP_H_
#define INDICATOR_CRT_STDP_H_
#include "../Indicator.h"
namespace hku {
/**
* 计算N周期内总体标准差
* @param n N日时间窗口
* @ingroup Indicator
*/
Indicator HKU_API STDP(int n = 10);
Indicator STDP(const Indicator& data, int n = 10);
inline Indicator STDP(const Indicator& data, int n) {
return STDP(n)(data);
}
} /* namespace */
#endif /* INDICATOR_CRT_STDP_H_ */